From 86eeaaae7bbe809d1d4651b3417e6899a6792e6c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:28:13 +0000 Subject: [PATCH] feat: add DataProfilePubSubMessage supporting pub/sub integration (#855) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 438616324 Source-Link: https://github.com/googleapis/googleapis/commit/52df4b4b80054775ca40c71f74af765db65fdbdf Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8fba06130654b838a38ae2e8b9b5c21191f9e12 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhmYmEwNjEzMDY1NGI4MzhhMzhhZTJlOGI5YjVjMjExOTFmOWUxMiJ9 --- .../privacy/dlp/v2/DataProfileAction.java | 3757 ++++++++++ .../dlp/v2/DataProfileActionOrBuilder.java | 101 + .../dlp/v2/DataProfileConfigSnapshot.java | 1024 +++ .../DataProfileConfigSnapshotOrBuilder.java | 98 + .../privacy/dlp/v2/DataProfileJobConfig.java | 1874 +++++ .../dlp/v2/DataProfileJobConfigOrBuilder.java | 240 + .../privacy/dlp/v2/DataProfileLocation.java | 799 +++ .../dlp/v2/DataProfileLocationOrBuilder.java | 77 + .../dlp/v2/DataProfilePubSubCondition.java | 3485 +++++++++ .../DataProfilePubSubConditionOrBuilder.java | 64 + .../dlp/v2/DataProfilePubSubMessage.java | 922 +++ .../v2/DataProfilePubSubMessageOrBuilder.java | 91 + .../google/privacy/dlp/v2/DataRiskLevel.java | 808 +++ .../dlp/v2/DataRiskLevelOrBuilder.java | 50 + .../com/google/privacy/dlp/v2/DlpProto.java | 1214 ++-- .../privacy/dlp/v2/EncryptionStatus.java | 176 + .../privacy/dlp/v2/InfoTypeSummary.java | 728 ++ .../dlp/v2/InfoTypeSummaryOrBuilder.java | 60 + .../privacy/dlp/v2/OtherInfoTypeSummary.java | 728 ++ .../dlp/v2/OtherInfoTypeSummaryOrBuilder.java | 60 + .../google/privacy/dlp/v2/ProfileStatus.java | 966 +++ .../dlp/v2/ProfileStatusOrBuilder.java | 95 + .../privacy/dlp/v2/ResourceVisibility.java | 179 + .../privacy/dlp/v2/SensitivityScore.java | 808 +++ .../dlp/v2/SensitivityScoreOrBuilder.java | 50 + .../privacy/dlp/v2/TableDataProfile.java | 6272 +++++++++++++++++ .../dlp/v2/TableDataProfileOrBuilder.java | 774 ++ .../proto/google/privacy/dlp/v2/dlp.proto | 399 ++ 28 files changed, 25462 insertions(+), 437 deletions(-) create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileActionOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfigOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocationOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubConditionOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessageOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevelOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatusOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java new file mode 100644 index 00000000..9d2f6e0a --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java @@ -0,0 +1,3757 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + * + * + *
+ * A task to execute when a data profile has been generated. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction} + */ +public final class DataProfileAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction) + DataProfileActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileAction.newBuilder() to construct. + private DataProfileAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfileAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfileAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.DataProfileAction.Export.Builder subBuilder = null; + if (actionCase_ == 1) { + subBuilder = + ((com.google.privacy.dlp.v2.DataProfileAction.Export) action_).toBuilder(); + } + action_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfileAction.Export.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.DataProfileAction.Export) action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 1; + break; + } + case 18: + { + com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder subBuilder = + null; + if (actionCase_ == 2) { + subBuilder = + ((com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_) + .toBuilder(); + } + action_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfileAction.class, + com.google.privacy.dlp.v2.DataProfileAction.Builder.class); + } + + /** + * + * + *
+ * Types of event that can trigger an action. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.DataProfileAction.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ EVENT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * New profile (not a re-profile). + *+ * + *
NEW_PROFILE = 1;
+ */
+ NEW_PROFILE(1),
+ /**
+ *
+ *
+ * + * Changed one of the following profile metrics: + * * Table data risk score + * * Table sensitivity score + * * Table resource visibility + * * Table encryption type + * * Table predicted infoTypes + * * Table other infoTypes + *+ * + *
CHANGED_PROFILE = 2;
+ */
+ CHANGED_PROFILE(2),
+ /**
+ *
+ *
+ * + * Table data risk score or sensitivity score increased. + *+ * + *
SCORE_INCREASED = 3;
+ */
+ SCORE_INCREASED(3),
+ /**
+ *
+ *
+ * + * A user (non-internal) error occurred. + *+ * + *
ERROR_CHANGED = 4;
+ */
+ ERROR_CHANGED(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * New profile (not a re-profile). + *+ * + *
NEW_PROFILE = 1;
+ */
+ public static final int NEW_PROFILE_VALUE = 1;
+ /**
+ *
+ *
+ * + * Changed one of the following profile metrics: + * * Table data risk score + * * Table sensitivity score + * * Table resource visibility + * * Table encryption type + * * Table predicted infoTypes + * * Table other infoTypes + *+ * + *
CHANGED_PROFILE = 2;
+ */
+ public static final int CHANGED_PROFILE_VALUE = 2;
+ /**
+ *
+ *
+ * + * Table data risk score or sensitivity score increased. + *+ * + *
SCORE_INCREASED = 3;
+ */
+ public static final int SCORE_INCREASED_VALUE = 3;
+ /**
+ *
+ *
+ * + * A user (non-internal) error occurred. + *+ * + *
ERROR_CHANGED = 4;
+ */
+ public static final int ERROR_CHANGED_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_TYPE_UNSPECIFIED;
+ case 1:
+ return NEW_PROFILE;
+ case 2:
+ return CHANGED_PROFILE;
+ case 3:
+ return SCORE_INCREASED;
+ case 4:
+ return ERROR_CHANGED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return Whether the profileTable field is set.
+ */
+ boolean hasProfileTable();
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return The profileTable.
+ */
+ com.google.privacy.dlp.v2.BigQueryTable getProfileTable();
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * If set, the detailed data profiles will be persisted to the location + * of your choice whenever updated. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.Export} + */ + public static final class Export extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.Export) + ExportOrBuilder { + private static final long serialVersionUID = 0L; + // Use Export.newBuilder() to construct. + private Export(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Export() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Export(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Export( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.BigQueryTable.Builder subBuilder = null; + if (profileTable_ != null) { + subBuilder = profileTable_.toBuilder(); + } + profileTable_ = + input.readMessage( + com.google.privacy.dlp.v2.BigQueryTable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profileTable_); + profileTable_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_Export_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfileAction.Export.class, + com.google.privacy.dlp.v2.DataProfileAction.Export.Builder.class); + } + + public static final int PROFILE_TABLE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.BigQueryTable profileTable_; + /** + * + * + *
+ * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return Whether the profileTable field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfileTable() {
+ return profileTable_ != null;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return The profileTable.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTable getProfileTable() {
+ return profileTable_ == null
+ ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance()
+ : profileTable_;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder() {
+ return getProfileTable();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (profileTable_ != null) {
+ output.writeMessage(1, getProfileTable());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (profileTable_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfileTable());
+ }
+ 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.DataProfileAction.Export)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileAction.Export other =
+ (com.google.privacy.dlp.v2.DataProfileAction.Export) obj;
+
+ if (hasProfileTable() != other.hasProfileTable()) return false;
+ if (hasProfileTable()) {
+ if (!getProfileTable().equals(other.getProfileTable())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasProfileTable()) {
+ hash = (37 * hash) + PROFILE_TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getProfileTable().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export 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.DataProfileAction.Export parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export 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.DataProfileAction.Export parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export 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.DataProfileAction.Export parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export 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.DataProfileAction.Export parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export 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.DataProfileAction.Export 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.DataProfileAction.Export 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.DataProfileAction.Export 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;
+ }
+ /**
+ *
+ *
+ * + * If set, the detailed data profiles will be persisted to the location + * of your choice whenever updated. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.Export} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return Whether the profileTable field is set.
+ */
+ public boolean hasProfileTable() {
+ return profileTableBuilder_ != null || profileTable_ != null;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ *
+ * @return The profileTable.
+ */
+ public com.google.privacy.dlp.v2.BigQueryTable getProfileTable() {
+ if (profileTableBuilder_ == null) {
+ return profileTable_ == null
+ ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance()
+ : profileTable_;
+ } else {
+ return profileTableBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public Builder setProfileTable(com.google.privacy.dlp.v2.BigQueryTable value) {
+ if (profileTableBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ profileTable_ = value;
+ onChanged();
+ } else {
+ profileTableBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public Builder setProfileTable(
+ com.google.privacy.dlp.v2.BigQueryTable.Builder builderForValue) {
+ if (profileTableBuilder_ == null) {
+ profileTable_ = builderForValue.build();
+ onChanged();
+ } else {
+ profileTableBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public Builder mergeProfileTable(com.google.privacy.dlp.v2.BigQueryTable value) {
+ if (profileTableBuilder_ == null) {
+ if (profileTable_ != null) {
+ profileTable_ =
+ com.google.privacy.dlp.v2.BigQueryTable.newBuilder(profileTable_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ profileTable_ = value;
+ }
+ onChanged();
+ } else {
+ profileTableBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public Builder clearProfileTable() {
+ if (profileTableBuilder_ == null) {
+ profileTable_ = null;
+ onChanged();
+ } else {
+ profileTable_ = null;
+ profileTableBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public com.google.privacy.dlp.v2.BigQueryTable.Builder getProfileTableBuilder() {
+
+ onChanged();
+ return getProfileTableFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getProfileTableOrBuilder() {
+ if (profileTableBuilder_ != null) {
+ return profileTableBuilder_.getMessageOrBuilder();
+ } else {
+ return profileTable_ == null
+ ? com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance()
+ : profileTable_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Store all table and column profiles in an existing table or a new table + * in an existing dataset. Each re-generation will result in a new row in + * BigQuery. + *+ * + *
.google.privacy.dlp.v2.BigQueryTable profile_table = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.BigQueryTable,
+ com.google.privacy.dlp.v2.BigQueryTable.Builder,
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder>
+ getProfileTableFieldBuilder() {
+ if (profileTableBuilder_ == null) {
+ profileTableBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.BigQueryTable,
+ com.google.privacy.dlp.v2.BigQueryTable.Builder,
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder>(
+ getProfileTable(), getParentForChildren(), isClean());
+ profileTable_ = null;
+ }
+ return profileTableBuilder_;
+ }
+
+ @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.DataProfileAction.Export)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.Export)
+ private static final com.google.privacy.dlp.v2.DataProfileAction.Export DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.Export();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.Export getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The topic.
+ */
+ java.lang.String getTopic();
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The bytes for topic.
+ */
+ com.google.protobuf.ByteString getTopicBytes();
+
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ int getEventValue();
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent();
+
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return Whether the pubsubCondition field is set.
+ */
+ boolean hasPubsubCondition();
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return The pubsubCondition.
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition();
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder getPubsubConditionOrBuilder();
+
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for detailOfMessage.
+ */
+ int getDetailOfMessageValue();
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The detailOfMessage.
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel getDetailOfMessage();
+ }
+ /**
+ *
+ *
+ * + * Send a Pub/Sub message into the given Pub/Sub topic to connect other + * systems to data profile generation. The message payload data will + * be the byte serialization of `DataProfilePubSubMessage`. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification} + */ + public static final class PubSubNotification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileAction.PubSubNotification) + PubSubNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSubNotification.newBuilder() to construct. + private PubSubNotification(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PubSubNotification() { + topic_ = ""; + event_ = 0; + detailOfMessage_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSubNotification(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubSubNotification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + event_ = rawValue; + break; + } + case 26: + { + com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder subBuilder = null; + if (pubsubCondition_ != null) { + subBuilder = pubsubCondition_.toBuilder(); + } + pubsubCondition_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pubsubCondition_); + pubsubCondition_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + detailOfMessage_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.class, + com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder.class); + } + + /** + * + * + *
+ * The levels of detail that can be included in the Pub/Sub message. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel} + */ + public enum DetailLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
DETAIL_LEVEL_UNSPECIFIED = 0;
+ */
+ DETAIL_LEVEL_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The full table data profile. + *+ * + *
TABLE_PROFILE = 1;
+ */
+ TABLE_PROFILE(1),
+ /**
+ *
+ *
+ * + * The resource name of the table. + *+ * + *
RESOURCE_NAME = 2;
+ */
+ RESOURCE_NAME(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
DETAIL_LEVEL_UNSPECIFIED = 0;
+ */
+ public static final int DETAIL_LEVEL_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The full table data profile. + *+ * + *
TABLE_PROFILE = 1;
+ */
+ public static final int TABLE_PROFILE_VALUE = 1;
+ /**
+ *
+ *
+ * + * The resource name of the table. + *+ * + *
RESOURCE_NAME = 2;
+ */
+ public static final int RESOURCE_NAME_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DetailLevel valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DetailLevel forNumber(int value) {
+ switch (value) {
+ case 0:
+ return DETAIL_LEVEL_UNSPECIFIED;
+ case 1:
+ return TABLE_PROFILE;
+ case 2:
+ return RESOURCE_NAME;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The topic.
+ */
+ @java.lang.Override
+ public java.lang.String getTopic() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topic_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The bytes for topic.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTopicBytes() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ topic_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EVENT_FIELD_NUMBER = 2;
+ private int event_;
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override
+ public int getEventValue() {
+ return event_;
+ }
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.EventType result =
+ com.google.privacy.dlp.v2.DataProfileAction.EventType.valueOf(event_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int PUBSUB_CONDITION_FIELD_NUMBER = 3;
+ private com.google.privacy.dlp.v2.DataProfilePubSubCondition pubsubCondition_;
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return Whether the pubsubCondition field is set.
+ */
+ @java.lang.Override
+ public boolean hasPubsubCondition() {
+ return pubsubCondition_ != null;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return The pubsubCondition.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition() {
+ return pubsubCondition_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance()
+ : pubsubCondition_;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder
+ getPubsubConditionOrBuilder() {
+ return getPubsubCondition();
+ }
+
+ public static final int DETAIL_OF_MESSAGE_FIELD_NUMBER = 4;
+ private int detailOfMessage_;
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for detailOfMessage.
+ */
+ @java.lang.Override
+ public int getDetailOfMessageValue() {
+ return detailOfMessage_;
+ }
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The detailOfMessage.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel
+ getDetailOfMessage() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel result =
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.valueOf(
+ detailOfMessage_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
+ }
+ if (event_
+ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, event_);
+ }
+ if (pubsubCondition_ != null) {
+ output.writeMessage(3, getPubsubCondition());
+ }
+ if (detailOfMessage_
+ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel
+ .DETAIL_LEVEL_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, detailOfMessage_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
+ }
+ if (event_
+ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, event_);
+ }
+ if (pubsubCondition_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPubsubCondition());
+ }
+ if (detailOfMessage_
+ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel
+ .DETAIL_LEVEL_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, detailOfMessage_);
+ }
+ 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.DataProfileAction.PubSubNotification)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification other =
+ (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) obj;
+
+ if (!getTopic().equals(other.getTopic())) return false;
+ if (event_ != other.event_) return false;
+ if (hasPubsubCondition() != other.hasPubsubCondition()) return false;
+ if (hasPubsubCondition()) {
+ if (!getPubsubCondition().equals(other.getPubsubCondition())) return false;
+ }
+ if (detailOfMessage_ != other.detailOfMessage_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TOPIC_FIELD_NUMBER;
+ hash = (53 * hash) + getTopic().hashCode();
+ hash = (37 * hash) + EVENT_FIELD_NUMBER;
+ hash = (53 * hash) + event_;
+ if (hasPubsubCondition()) {
+ hash = (37 * hash) + PUBSUB_CONDITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPubsubCondition().hashCode();
+ }
+ hash = (37 * hash) + DETAIL_OF_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + detailOfMessage_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification 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.DataProfileAction.PubSubNotification 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;
+ }
+ /**
+ *
+ *
+ * + * Send a Pub/Sub message into the given Pub/Sub topic to connect other + * systems to data profile generation. The message payload data will + * be the byte serialization of `DataProfilePubSubMessage`. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction.PubSubNotification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The topic.
+ */
+ public java.lang.String getTopic() {
+ java.lang.Object ref = topic_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topic_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return The bytes for topic.
+ */
+ public com.google.protobuf.ByteString getTopicBytes() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ topic_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @param value The topic to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopic(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ topic_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTopic() {
+
+ topic_ = getDefaultInstance().getTopic();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + *+ * + *
string topic = 1;
+ *
+ * @param value The bytes for topic to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ topic_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int event_ = 0;
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override
+ public int getEventValue() {
+ return event_;
+ }
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @param value The enum numeric value on the wire for event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventValue(int value) {
+
+ event_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.EventType result =
+ com.google.privacy.dlp.v2.DataProfileAction.EventType.valueOf(event_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @param value The event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvent(com.google.privacy.dlp.v2.DataProfileAction.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ event_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEvent() {
+
+ event_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.privacy.dlp.v2.DataProfilePubSubCondition pubsubCondition_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder>
+ pubsubConditionBuilder_;
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return Whether the pubsubCondition field is set.
+ */
+ public boolean hasPubsubCondition() {
+ return pubsubConditionBuilder_ != null || pubsubCondition_ != null;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ *
+ * @return The pubsubCondition.
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition getPubsubCondition() {
+ if (pubsubConditionBuilder_ == null) {
+ return pubsubCondition_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance()
+ : pubsubCondition_;
+ } else {
+ return pubsubConditionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public Builder setPubsubCondition(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition value) {
+ if (pubsubConditionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pubsubCondition_ = value;
+ onChanged();
+ } else {
+ pubsubConditionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public Builder setPubsubCondition(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder builderForValue) {
+ if (pubsubConditionBuilder_ == null) {
+ pubsubCondition_ = builderForValue.build();
+ onChanged();
+ } else {
+ pubsubConditionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public Builder mergePubsubCondition(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition value) {
+ if (pubsubConditionBuilder_ == null) {
+ if (pubsubCondition_ != null) {
+ pubsubCondition_ =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.newBuilder(pubsubCondition_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ pubsubCondition_ = value;
+ }
+ onChanged();
+ } else {
+ pubsubConditionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public Builder clearPubsubCondition() {
+ if (pubsubConditionBuilder_ == null) {
+ pubsubCondition_ = null;
+ onChanged();
+ } else {
+ pubsubCondition_ = null;
+ pubsubConditionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder
+ getPubsubConditionBuilder() {
+
+ onChanged();
+ return getPubsubConditionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder
+ getPubsubConditionOrBuilder() {
+ if (pubsubConditionBuilder_ != null) {
+ return pubsubConditionBuilder_.getMessageOrBuilder();
+ } else {
+ return pubsubCondition_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.getDefaultInstance()
+ : pubsubCondition_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder>
+ getPubsubConditionFieldBuilder() {
+ if (pubsubConditionBuilder_ == null) {
+ pubsubConditionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubConditionOrBuilder>(
+ getPubsubCondition(), getParentForChildren(), isClean());
+ pubsubCondition_ = null;
+ }
+ return pubsubConditionBuilder_;
+ }
+
+ private int detailOfMessage_ = 0;
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for detailOfMessage.
+ */
+ @java.lang.Override
+ public int getDetailOfMessageValue() {
+ return detailOfMessage_;
+ }
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @param value The enum numeric value on the wire for detailOfMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDetailOfMessageValue(int value) {
+
+ detailOfMessage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return The detailOfMessage.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel
+ getDetailOfMessage() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel result =
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel.valueOf(
+ detailOfMessage_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @param value The detailOfMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDetailOfMessage(
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ detailOfMessage_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + *+ * + *
+ * .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDetailOfMessage() {
+
+ detailOfMessage_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileAction.PubSubNotification)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction.PubSubNotification)
+ private static final com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return Whether the exportData field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportData() {
+ return actionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return The exportData.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.Export getExportData() {
+ if (actionCase_ == 1) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder getExportDataOrBuilder() {
+ if (actionCase_ == 1) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ }
+
+ public static final int PUB_SUB_NOTIFICATION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return Whether the pubSubNotification field is set.
+ */
+ @java.lang.Override
+ public boolean hasPubSubNotification() {
+ return actionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return The pubSubNotification.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getPubSubNotification() {
+ if (actionCase_ == 2) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder
+ getPubSubNotificationOrBuilder() {
+ if (actionCase_ == 2) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (actionCase_ == 1) {
+ output.writeMessage(1, (com.google.privacy.dlp.v2.DataProfileAction.Export) action_);
+ }
+ if (actionCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (actionCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.privacy.dlp.v2.DataProfileAction.Export) action_);
+ }
+ if (actionCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_);
+ }
+ 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.DataProfileAction)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileAction other =
+ (com.google.privacy.dlp.v2.DataProfileAction) obj;
+
+ if (!getActionCase().equals(other.getActionCase())) return false;
+ switch (actionCase_) {
+ case 1:
+ if (!getExportData().equals(other.getExportData())) return false;
+ break;
+ case 2:
+ if (!getPubSubNotification().equals(other.getPubSubNotification())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (actionCase_) {
+ case 1:
+ hash = (37 * hash) + EXPORT_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getExportData().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + PUB_SUB_NOTIFICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getPubSubNotification().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction 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.DataProfileAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction 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.DataProfileAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction 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.DataProfileAction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction 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.DataProfileAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction 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.DataProfileAction 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.DataProfileAction 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.DataProfileAction prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A task to execute when a data profile has been generated. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return Whether the exportData field is set.
+ */
+ @java.lang.Override
+ public boolean hasExportData() {
+ return actionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return The exportData.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.Export getExportData() {
+ if (exportDataBuilder_ == null) {
+ if (actionCase_ == 1) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ } else {
+ if (actionCase_ == 1) {
+ return exportDataBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ public Builder setExportData(com.google.privacy.dlp.v2.DataProfileAction.Export value) {
+ if (exportDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ exportDataBuilder_.setMessage(value);
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ public Builder setExportData(
+ com.google.privacy.dlp.v2.DataProfileAction.Export.Builder builderForValue) {
+ if (exportDataBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ exportDataBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ public Builder mergeExportData(com.google.privacy.dlp.v2.DataProfileAction.Export value) {
+ if (exportDataBuilder_ == null) {
+ if (actionCase_ == 1
+ && action_ != com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance()) {
+ action_ =
+ com.google.privacy.dlp.v2.DataProfileAction.Export.newBuilder(
+ (com.google.privacy.dlp.v2.DataProfileAction.Export) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 1) {
+ exportDataBuilder_.mergeFrom(value);
+ }
+ exportDataBuilder_.setMessage(value);
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ public Builder clearExportData() {
+ if (exportDataBuilder_ == null) {
+ if (actionCase_ == 1) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 1) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ exportDataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction.Export.Builder getExportDataBuilder() {
+ return getExportDataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder getExportDataOrBuilder() {
+ if ((actionCase_ == 1) && (exportDataBuilder_ != null)) {
+ return exportDataBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 1) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.Export) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileAction.Export,
+ com.google.privacy.dlp.v2.DataProfileAction.Export.Builder,
+ com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder>
+ getExportDataFieldBuilder() {
+ if (exportDataBuilder_ == null) {
+ if (!(actionCase_ == 1)) {
+ action_ = com.google.privacy.dlp.v2.DataProfileAction.Export.getDefaultInstance();
+ }
+ exportDataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileAction.Export,
+ com.google.privacy.dlp.v2.DataProfileAction.Export.Builder,
+ com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder>(
+ (com.google.privacy.dlp.v2.DataProfileAction.Export) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 1;
+ onChanged();
+ ;
+ return exportDataBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder>
+ pubSubNotificationBuilder_;
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return Whether the pubSubNotification field is set.
+ */
+ @java.lang.Override
+ public boolean hasPubSubNotification() {
+ return actionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return The pubSubNotification.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getPubSubNotification() {
+ if (pubSubNotificationBuilder_ == null) {
+ if (actionCase_ == 2) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ } else {
+ if (actionCase_ == 2) {
+ return pubSubNotificationBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ public Builder setPubSubNotification(
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification value) {
+ if (pubSubNotificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ pubSubNotificationBuilder_.setMessage(value);
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ public Builder setPubSubNotification(
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder builderForValue) {
+ if (pubSubNotificationBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ pubSubNotificationBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ public Builder mergePubSubNotification(
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification value) {
+ if (pubSubNotificationBuilder_ == null) {
+ if (actionCase_ == 2
+ && action_
+ != com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification
+ .getDefaultInstance()) {
+ action_ =
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.newBuilder(
+ (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 2) {
+ pubSubNotificationBuilder_.mergeFrom(value);
+ }
+ pubSubNotificationBuilder_.setMessage(value);
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ public Builder clearPubSubNotification() {
+ if (pubSubNotificationBuilder_ == null) {
+ if (actionCase_ == 2) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 2) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ pubSubNotificationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder
+ getPubSubNotificationBuilder() {
+ return getPubSubNotificationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder
+ getPubSubNotificationOrBuilder() {
+ if ((actionCase_ == 2) && (pubSubNotificationBuilder_ != null)) {
+ return pubSubNotificationBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 2) {
+ return (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_;
+ }
+ return com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder>
+ getPubSubNotificationFieldBuilder() {
+ if (pubSubNotificationBuilder_ == null) {
+ if (!(actionCase_ == 2)) {
+ action_ =
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.getDefaultInstance();
+ }
+ pubSubNotificationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.Builder,
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder>(
+ (com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 2;
+ onChanged();
+ ;
+ return pubSubNotificationBuilder_;
+ }
+
+ @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.DataProfileAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileAction)
+ private static final com.google.privacy.dlp.v2.DataProfileAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileAction();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return Whether the exportData field is set.
+ */
+ boolean hasExportData();
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ *
+ * @return The exportData.
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.Export getExportData();
+ /**
+ *
+ *
+ * + * Export data profiles into a provided location. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.Export export_data = 1;
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.ExportOrBuilder getExportDataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return Whether the pubSubNotification field is set.
+ */
+ boolean hasPubSubNotification();
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ *
+ * @return The pubSubNotification.
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotification getPubSubNotification();
+ /**
+ *
+ *
+ * + * Publish a message into the Pub/Sub topic. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2;
+ *
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationOrBuilder
+ getPubSubNotificationOrBuilder();
+
+ public com.google.privacy.dlp.v2.DataProfileAction.ActionCase getActionCase();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java
new file mode 100644
index 00000000..782e4f5f
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java
@@ -0,0 +1,1024 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * Snapshot of the configurations used to generate the profile. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileConfigSnapshot} + */ +public final class DataProfileConfigSnapshot extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileConfigSnapshot) + DataProfileConfigSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileConfigSnapshot.newBuilder() to construct. + private DataProfileConfigSnapshot(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfileConfigSnapshot() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileConfigSnapshot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfileConfigSnapshot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.privacy.dlp.v2.InspectConfig.Builder subBuilder = null; + if (inspectConfig_ != null) { + subBuilder = inspectConfig_.toBuilder(); + } + inspectConfig_ = + input.readMessage( + com.google.privacy.dlp.v2.InspectConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inspectConfig_); + inspectConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.privacy.dlp.v2.DataProfileJobConfig.Builder subBuilder = null; + if (dataProfileJob_ != null) { + subBuilder = dataProfileJob_.toBuilder(); + } + dataProfileJob_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfileJobConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataProfileJob_); + dataProfileJob_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.class, + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder.class); + } + + public static final int INSPECT_CONFIG_FIELD_NUMBER = 2; + private com.google.privacy.dlp.v2.InspectConfig inspectConfig_; + /** + * + * + *
+ * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return Whether the inspectConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasInspectConfig() {
+ return inspectConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return The inspectConfig.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InspectConfig getInspectConfig() {
+ return inspectConfig_ == null
+ ? com.google.privacy.dlp.v2.InspectConfig.getDefaultInstance()
+ : inspectConfig_;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilder() {
+ return getInspectConfig();
+ }
+
+ public static final int DATA_PROFILE_JOB_FIELD_NUMBER = 3;
+ private com.google.privacy.dlp.v2.DataProfileJobConfig dataProfileJob_;
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return Whether the dataProfileJob field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataProfileJob() {
+ return dataProfileJob_ != null;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return The dataProfileJob.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() {
+ return dataProfileJob_ == null
+ ? com.google.privacy.dlp.v2.DataProfileJobConfig.getDefaultInstance()
+ : dataProfileJob_;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder() {
+ return getDataProfileJob();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (inspectConfig_ != null) {
+ output.writeMessage(2, getInspectConfig());
+ }
+ if (dataProfileJob_ != null) {
+ output.writeMessage(3, getDataProfileJob());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (inspectConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInspectConfig());
+ }
+ if (dataProfileJob_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataProfileJob());
+ }
+ 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.DataProfileConfigSnapshot)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot other =
+ (com.google.privacy.dlp.v2.DataProfileConfigSnapshot) obj;
+
+ if (hasInspectConfig() != other.hasInspectConfig()) return false;
+ if (hasInspectConfig()) {
+ if (!getInspectConfig().equals(other.getInspectConfig())) return false;
+ }
+ if (hasDataProfileJob() != other.hasDataProfileJob()) return false;
+ if (hasDataProfileJob()) {
+ if (!getDataProfileJob().equals(other.getDataProfileJob())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInspectConfig()) {
+ hash = (37 * hash) + INSPECT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getInspectConfig().hashCode();
+ }
+ if (hasDataProfileJob()) {
+ hash = (37 * hash) + DATA_PROFILE_JOB_FIELD_NUMBER;
+ hash = (53 * hash) + getDataProfileJob().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot 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.DataProfileConfigSnapshot 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;
+ }
+ /**
+ *
+ *
+ * + * Snapshot of the configurations used to generate the profile. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileConfigSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return Whether the inspectConfig field is set.
+ */
+ public boolean hasInspectConfig() {
+ return inspectConfigBuilder_ != null || inspectConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return The inspectConfig.
+ */
+ public com.google.privacy.dlp.v2.InspectConfig getInspectConfig() {
+ if (inspectConfigBuilder_ == null) {
+ return inspectConfig_ == null
+ ? com.google.privacy.dlp.v2.InspectConfig.getDefaultInstance()
+ : inspectConfig_;
+ } else {
+ return inspectConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public Builder setInspectConfig(com.google.privacy.dlp.v2.InspectConfig value) {
+ if (inspectConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inspectConfig_ = value;
+ onChanged();
+ } else {
+ inspectConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public Builder setInspectConfig(
+ com.google.privacy.dlp.v2.InspectConfig.Builder builderForValue) {
+ if (inspectConfigBuilder_ == null) {
+ inspectConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ inspectConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public Builder mergeInspectConfig(com.google.privacy.dlp.v2.InspectConfig value) {
+ if (inspectConfigBuilder_ == null) {
+ if (inspectConfig_ != null) {
+ inspectConfig_ =
+ com.google.privacy.dlp.v2.InspectConfig.newBuilder(inspectConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ inspectConfig_ = value;
+ }
+ onChanged();
+ } else {
+ inspectConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public Builder clearInspectConfig() {
+ if (inspectConfigBuilder_ == null) {
+ inspectConfig_ = null;
+ onChanged();
+ } else {
+ inspectConfig_ = null;
+ inspectConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public com.google.privacy.dlp.v2.InspectConfig.Builder getInspectConfigBuilder() {
+
+ onChanged();
+ return getInspectConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilder() {
+ if (inspectConfigBuilder_ != null) {
+ return inspectConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return inspectConfig_ == null
+ ? com.google.privacy.dlp.v2.InspectConfig.getDefaultInstance()
+ : inspectConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InspectConfig,
+ com.google.privacy.dlp.v2.InspectConfig.Builder,
+ com.google.privacy.dlp.v2.InspectConfigOrBuilder>
+ getInspectConfigFieldBuilder() {
+ if (inspectConfigBuilder_ == null) {
+ inspectConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InspectConfig,
+ com.google.privacy.dlp.v2.InspectConfig.Builder,
+ com.google.privacy.dlp.v2.InspectConfigOrBuilder>(
+ getInspectConfig(), getParentForChildren(), isClean());
+ inspectConfig_ = null;
+ }
+ return inspectConfigBuilder_;
+ }
+
+ private com.google.privacy.dlp.v2.DataProfileJobConfig dataProfileJob_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileJobConfig,
+ com.google.privacy.dlp.v2.DataProfileJobConfig.Builder,
+ com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder>
+ dataProfileJobBuilder_;
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return Whether the dataProfileJob field is set.
+ */
+ public boolean hasDataProfileJob() {
+ return dataProfileJobBuilder_ != null || dataProfileJob_ != null;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return The dataProfileJob.
+ */
+ public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() {
+ if (dataProfileJobBuilder_ == null) {
+ return dataProfileJob_ == null
+ ? com.google.privacy.dlp.v2.DataProfileJobConfig.getDefaultInstance()
+ : dataProfileJob_;
+ } else {
+ return dataProfileJobBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public Builder setDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfig value) {
+ if (dataProfileJobBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataProfileJob_ = value;
+ onChanged();
+ } else {
+ dataProfileJobBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public Builder setDataProfileJob(
+ com.google.privacy.dlp.v2.DataProfileJobConfig.Builder builderForValue) {
+ if (dataProfileJobBuilder_ == null) {
+ dataProfileJob_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataProfileJobBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public Builder mergeDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfig value) {
+ if (dataProfileJobBuilder_ == null) {
+ if (dataProfileJob_ != null) {
+ dataProfileJob_ =
+ com.google.privacy.dlp.v2.DataProfileJobConfig.newBuilder(dataProfileJob_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ dataProfileJob_ = value;
+ }
+ onChanged();
+ } else {
+ dataProfileJobBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public Builder clearDataProfileJob() {
+ if (dataProfileJobBuilder_ == null) {
+ dataProfileJob_ = null;
+ onChanged();
+ } else {
+ dataProfileJob_ = null;
+ dataProfileJobBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public com.google.privacy.dlp.v2.DataProfileJobConfig.Builder getDataProfileJobBuilder() {
+
+ onChanged();
+ return getDataProfileJobFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder() {
+ if (dataProfileJobBuilder_ != null) {
+ return dataProfileJobBuilder_.getMessageOrBuilder();
+ } else {
+ return dataProfileJob_ == null
+ ? com.google.privacy.dlp.v2.DataProfileJobConfig.getDefaultInstance()
+ : dataProfileJob_;
+ }
+ }
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileJobConfig,
+ com.google.privacy.dlp.v2.DataProfileJobConfig.Builder,
+ com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder>
+ getDataProfileJobFieldBuilder() {
+ if (dataProfileJobBuilder_ == null) {
+ dataProfileJobBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileJobConfig,
+ com.google.privacy.dlp.v2.DataProfileJobConfig.Builder,
+ com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder>(
+ getDataProfileJob(), getParentForChildren(), isClean());
+ dataProfileJob_ = null;
+ }
+ return dataProfileJobBuilder_;
+ }
+
+ @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.DataProfileConfigSnapshot)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileConfigSnapshot)
+ private static final com.google.privacy.dlp.v2.DataProfileConfigSnapshot DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileConfigSnapshot();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileConfigSnapshot getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return Whether the inspectConfig field is set.
+ */
+ boolean hasInspectConfig();
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ *
+ * @return The inspectConfig.
+ */
+ com.google.privacy.dlp.v2.InspectConfig getInspectConfig();
+ /**
+ *
+ *
+ * + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + *+ * + *
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
+ */
+ com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return Whether the dataProfileJob field is set.
+ */
+ boolean hasDataProfileJob();
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ *
+ * @return The dataProfileJob.
+ */
+ com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob();
+ /**
+ *
+ *
+ * + * A copy of the configuration used to generate this profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;
+ */
+ com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java
new file mode 100644
index 00000000..f2672ce8
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java
@@ -0,0 +1,1874 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * Configuration for setting up a job to scan resources for profile generation. + * Only one data profile configuration may exist per organization, folder, + * or project. + * The generated data profiles are retained according to the + * [data retention policy] + * (https://cloud.google.com/dlp/docs/data-profiles#retention). + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileJobConfig} + */ +public final class DataProfileJobConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileJobConfig) + DataProfileJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileJobConfig.newBuilder() to construct. + private DataProfileJobConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfileJobConfig() { + projectId_ = ""; + inspectTemplates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + dataProfileActions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileJobConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfileJobConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.DataProfileLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfileLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + dataProfileActions_ = + new java.util.ArrayList
+ * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return Whether the location field is set.
+ */
+ @java.lang.Override
+ public boolean hasLocation() {
+ return location_ != null;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return The location.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileLocation getLocation() {
+ return location_ == null
+ ? com.google.privacy.dlp.v2.DataProfileLocation.getDefaultInstance()
+ : location_;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileLocationOrBuilder getLocationOrBuilder() {
+ return getLocation();
+ }
+
+ public static final int PROJECT_ID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object projectId_;
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSPECT_TEMPLATES_FIELD_NUMBER = 7;
+ private com.google.protobuf.LazyStringList inspectTemplates_;
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return A list containing the inspectTemplates.
+ */
+ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() {
+ return inspectTemplates_;
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return The count of inspectTemplates.
+ */
+ public int getInspectTemplatesCount() {
+ return inspectTemplates_.size();
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The inspectTemplates at the given index.
+ */
+ public java.lang.String getInspectTemplates(int index) {
+ return inspectTemplates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the inspectTemplates at the given index.
+ */
+ public com.google.protobuf.ByteString getInspectTemplatesBytes(int index) {
+ return inspectTemplates_.getByteString(index);
+ }
+
+ public static final int DATA_PROFILE_ACTIONS_FIELD_NUMBER = 6;
+ private java.util.List+ * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ @java.lang.Override
+ public java.util.List+ * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.DataProfileActionOrBuilder>
+ getDataProfileActionsOrBuilderList() {
+ return dataProfileActions_;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ @java.lang.Override
+ public int getDataProfileActionsCount() {
+ return dataProfileActions_.size();
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction getDataProfileActions(int index) {
+ return dataProfileActions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileActionOrBuilder getDataProfileActionsOrBuilder(
+ int index) {
+ return dataProfileActions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (location_ != null) {
+ output.writeMessage(1, getLocation());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, projectId_);
+ }
+ for (int i = 0; i < dataProfileActions_.size(); i++) {
+ output.writeMessage(6, dataProfileActions_.get(i));
+ }
+ for (int i = 0; i < inspectTemplates_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inspectTemplates_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (location_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocation());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, projectId_);
+ }
+ for (int i = 0; i < dataProfileActions_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, dataProfileActions_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < inspectTemplates_.size(); i++) {
+ dataSize += computeStringSizeNoTag(inspectTemplates_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getInspectTemplatesList().size();
+ }
+ 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.DataProfileJobConfig)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileJobConfig other =
+ (com.google.privacy.dlp.v2.DataProfileJobConfig) obj;
+
+ if (hasLocation() != other.hasLocation()) return false;
+ if (hasLocation()) {
+ if (!getLocation().equals(other.getLocation())) return false;
+ }
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getInspectTemplatesList().equals(other.getInspectTemplatesList())) return false;
+ if (!getDataProfileActionsList().equals(other.getDataProfileActionsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasLocation()) {
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ }
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ if (getInspectTemplatesCount() > 0) {
+ hash = (37 * hash) + INSPECT_TEMPLATES_FIELD_NUMBER;
+ hash = (53 * hash) + getInspectTemplatesList().hashCode();
+ }
+ if (getDataProfileActionsCount() > 0) {
+ hash = (37 * hash) + DATA_PROFILE_ACTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDataProfileActionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig 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.DataProfileJobConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig 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.DataProfileJobConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig 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.DataProfileJobConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig 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.DataProfileJobConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileJobConfig 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.DataProfileJobConfig 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.DataProfileJobConfig 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.DataProfileJobConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Configuration for setting up a job to scan resources for profile generation. + * Only one data profile configuration may exist per organization, folder, + * or project. + * The generated data profiles are retained according to the + * [data retention policy] + * (https://cloud.google.com/dlp/docs/data-profiles#retention). + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileJobConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return Whether the location field is set.
+ */
+ public boolean hasLocation() {
+ return locationBuilder_ != null || location_ != null;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return The location.
+ */
+ public com.google.privacy.dlp.v2.DataProfileLocation getLocation() {
+ if (locationBuilder_ == null) {
+ return location_ == null
+ ? com.google.privacy.dlp.v2.DataProfileLocation.getDefaultInstance()
+ : location_;
+ } else {
+ return locationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public Builder setLocation(com.google.privacy.dlp.v2.DataProfileLocation value) {
+ if (locationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ location_ = value;
+ onChanged();
+ } else {
+ locationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public Builder setLocation(
+ com.google.privacy.dlp.v2.DataProfileLocation.Builder builderForValue) {
+ if (locationBuilder_ == null) {
+ location_ = builderForValue.build();
+ onChanged();
+ } else {
+ locationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public Builder mergeLocation(com.google.privacy.dlp.v2.DataProfileLocation value) {
+ if (locationBuilder_ == null) {
+ if (location_ != null) {
+ location_ =
+ com.google.privacy.dlp.v2.DataProfileLocation.newBuilder(location_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ location_ = value;
+ }
+ onChanged();
+ } else {
+ locationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public Builder clearLocation() {
+ if (locationBuilder_ == null) {
+ location_ = null;
+ onChanged();
+ } else {
+ location_ = null;
+ locationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public com.google.privacy.dlp.v2.DataProfileLocation.Builder getLocationBuilder() {
+
+ onChanged();
+ return getLocationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ public com.google.privacy.dlp.v2.DataProfileLocationOrBuilder getLocationOrBuilder() {
+ if (locationBuilder_ != null) {
+ return locationBuilder_.getMessageOrBuilder();
+ } else {
+ return location_ == null
+ ? com.google.privacy.dlp.v2.DataProfileLocation.getDefaultInstance()
+ : location_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileLocation,
+ com.google.privacy.dlp.v2.DataProfileLocation.Builder,
+ com.google.privacy.dlp.v2.DataProfileLocationOrBuilder>
+ getLocationFieldBuilder() {
+ if (locationBuilder_ == null) {
+ locationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileLocation,
+ com.google.privacy.dlp.v2.DataProfileLocation.Builder,
+ com.google.privacy.dlp.v2.DataProfileLocationOrBuilder>(
+ getLocation(), getParentForChildren(), isClean());
+ location_ = null;
+ }
+ return locationBuilder_;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ projectId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+
+ projectId_ = getDefaultInstance().getProjectId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ projectId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList inspectTemplates_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureInspectTemplatesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ inspectTemplates_ = new com.google.protobuf.LazyStringArrayList(inspectTemplates_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return A list containing the inspectTemplates.
+ */
+ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() {
+ return inspectTemplates_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return The count of inspectTemplates.
+ */
+ public int getInspectTemplatesCount() {
+ return inspectTemplates_.size();
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The inspectTemplates at the given index.
+ */
+ public java.lang.String getInspectTemplates(int index) {
+ return inspectTemplates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the inspectTemplates at the given index.
+ */
+ public com.google.protobuf.ByteString getInspectTemplatesBytes(int index) {
+ return inspectTemplates_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index to set the value at.
+ * @param value The inspectTemplates to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInspectTemplates(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInspectTemplatesIsMutable();
+ inspectTemplates_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param value The inspectTemplates to add.
+ * @return This builder for chaining.
+ */
+ public Builder addInspectTemplates(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInspectTemplatesIsMutable();
+ inspectTemplates_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param values The inspectTemplates to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllInspectTemplates(java.lang.Iterable+ * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInspectTemplates() {
+ inspectTemplates_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param value The bytes of the inspectTemplates to add.
+ * @return This builder for chaining.
+ */
+ public Builder addInspectTemplatesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureInspectTemplatesIsMutable();
+ inspectTemplates_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public java.util.List+ * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public int getDataProfileActionsCount() {
+ if (dataProfileActionsBuilder_ == null) {
+ return dataProfileActions_.size();
+ } else {
+ return dataProfileActionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction getDataProfileActions(int index) {
+ if (dataProfileActionsBuilder_ == null) {
+ return dataProfileActions_.get(index);
+ } else {
+ return dataProfileActionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder setDataProfileActions(
+ int index, com.google.privacy.dlp.v2.DataProfileAction value) {
+ if (dataProfileActionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.set(index, value);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder setDataProfileActions(
+ int index, com.google.privacy.dlp.v2.DataProfileAction.Builder builderForValue) {
+ if (dataProfileActionsBuilder_ == null) {
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder addDataProfileActions(com.google.privacy.dlp.v2.DataProfileAction value) {
+ if (dataProfileActionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.add(value);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder addDataProfileActions(
+ int index, com.google.privacy.dlp.v2.DataProfileAction value) {
+ if (dataProfileActionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.add(index, value);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder addDataProfileActions(
+ com.google.privacy.dlp.v2.DataProfileAction.Builder builderForValue) {
+ if (dataProfileActionsBuilder_ == null) {
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder addDataProfileActions(
+ int index, com.google.privacy.dlp.v2.DataProfileAction.Builder builderForValue) {
+ if (dataProfileActionsBuilder_ == null) {
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder addAllDataProfileActions(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.DataProfileAction> values) {
+ if (dataProfileActionsBuilder_ == null) {
+ ensureDataProfileActionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataProfileActions_);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder clearDataProfileActions() {
+ if (dataProfileActionsBuilder_ == null) {
+ dataProfileActions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public Builder removeDataProfileActions(int index) {
+ if (dataProfileActionsBuilder_ == null) {
+ ensureDataProfileActionsIsMutable();
+ dataProfileActions_.remove(index);
+ onChanged();
+ } else {
+ dataProfileActionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction.Builder getDataProfileActionsBuilder(
+ int index) {
+ return getDataProfileActionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public com.google.privacy.dlp.v2.DataProfileActionOrBuilder getDataProfileActionsOrBuilder(
+ int index) {
+ if (dataProfileActionsBuilder_ == null) {
+ return dataProfileActions_.get(index);
+ } else {
+ return dataProfileActionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.DataProfileActionOrBuilder>
+ getDataProfileActionsOrBuilderList() {
+ if (dataProfileActionsBuilder_ != null) {
+ return dataProfileActionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dataProfileActions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction.Builder addDataProfileActionsBuilder() {
+ return getDataProfileActionsFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.DataProfileAction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public com.google.privacy.dlp.v2.DataProfileAction.Builder addDataProfileActionsBuilder(
+ int index) {
+ return getDataProfileActionsFieldBuilder()
+ .addBuilder(index, com.google.privacy.dlp.v2.DataProfileAction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ public java.util.List+ * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return Whether the location field is set.
+ */
+ boolean hasLocation();
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ *
+ * @return The location.
+ */
+ com.google.privacy.dlp.v2.DataProfileLocation getLocation();
+ /**
+ *
+ *
+ * + * The data to scan. + *+ * + *
.google.privacy.dlp.v2.DataProfileLocation location = 1;
+ */
+ com.google.privacy.dlp.v2.DataProfileLocationOrBuilder getLocationOrBuilder();
+
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the Cloud DLP API must be enabled. + *+ * + *
string project_id = 5;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return A list containing the inspectTemplates.
+ */
+ java.util.List+ * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @return The count of inspectTemplates.
+ */
+ int getInspectTemplatesCount();
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the element to return.
+ * @return The inspectTemplates at the given index.
+ */
+ java.lang.String getInspectTemplates(int index);
+ /**
+ *
+ *
+ * + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/dlp/docs/data-profiles#data_residency. + *+ * + *
repeated string inspect_templates = 7;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the inspectTemplates at the given index.
+ */
+ com.google.protobuf.ByteString getInspectTemplatesBytes(int index);
+
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ java.util.List+ * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ com.google.privacy.dlp.v2.DataProfileAction getDataProfileActions(int index);
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ int getDataProfileActionsCount();
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ java.util.List extends com.google.privacy.dlp.v2.DataProfileActionOrBuilder>
+ getDataProfileActionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Actions to execute at the completion of the job. + *+ * + *
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
+ */
+ com.google.privacy.dlp.v2.DataProfileActionOrBuilder getDataProfileActionsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java
new file mode 100644
index 00000000..43855703
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java
@@ -0,0 +1,799 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * The data that will be profiled. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileLocation} + */ +public final class DataProfileLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfileLocation) + DataProfileLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileLocation.newBuilder() to construct. + private DataProfileLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfileLocation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileLocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfileLocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + locationCase_ = 1; + location_ = input.readInt64(); + break; + } + case 16: + { + locationCase_ = 2; + location_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfileLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfileLocation.class, + com.google.privacy.dlp.v2.DataProfileLocation.Builder.class); + } + + private int locationCase_ = 0; + private java.lang.Object location_; + + public enum LocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORGANIZATION_ID(1), + FOLDER_ID(2), + LOCATION_NOT_SET(0); + private final int value; + + private LocationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LocationCase valueOf(int value) { + return forNumber(value); + } + + public static LocationCase forNumber(int value) { + switch (value) { + case 1: + return ORGANIZATION_ID; + case 2: + return FOLDER_ID; + case 0: + return LOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + /** + * + * + *
+ * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return Whether the organizationId field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrganizationId() {
+ return locationCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return The organizationId.
+ */
+ @java.lang.Override
+ public long getOrganizationId() {
+ if (locationCase_ == 1) {
+ return (java.lang.Long) location_;
+ }
+ return 0L;
+ }
+
+ public static final int FOLDER_ID_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return Whether the folderId field is set.
+ */
+ @java.lang.Override
+ public boolean hasFolderId() {
+ return locationCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return The folderId.
+ */
+ @java.lang.Override
+ public long getFolderId() {
+ if (locationCase_ == 2) {
+ return (java.lang.Long) location_;
+ }
+ return 0L;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (locationCase_ == 1) {
+ output.writeInt64(1, (long) ((java.lang.Long) location_));
+ }
+ if (locationCase_ == 2) {
+ output.writeInt64(2, (long) ((java.lang.Long) location_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (locationCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 1, (long) ((java.lang.Long) location_));
+ }
+ if (locationCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 2, (long) ((java.lang.Long) location_));
+ }
+ 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.DataProfileLocation)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfileLocation other =
+ (com.google.privacy.dlp.v2.DataProfileLocation) obj;
+
+ if (!getLocationCase().equals(other.getLocationCase())) return false;
+ switch (locationCase_) {
+ case 1:
+ if (getOrganizationId() != other.getOrganizationId()) return false;
+ break;
+ case 2:
+ if (getFolderId() != other.getFolderId()) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (locationCase_) {
+ case 1:
+ hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrganizationId());
+ break;
+ case 2:
+ hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFolderId());
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation 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.DataProfileLocation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation 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.DataProfileLocation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation 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.DataProfileLocation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation 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.DataProfileLocation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation 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.DataProfileLocation 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.DataProfileLocation 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.DataProfileLocation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The data that will be profiled. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfileLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return Whether the organizationId field is set.
+ */
+ public boolean hasOrganizationId() {
+ return locationCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return The organizationId.
+ */
+ public long getOrganizationId() {
+ if (locationCase_ == 1) {
+ return (java.lang.Long) location_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @param value The organizationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrganizationId(long value) {
+ locationCase_ = 1;
+ location_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOrganizationId() {
+ if (locationCase_ == 1) {
+ locationCase_ = 0;
+ location_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return Whether the folderId field is set.
+ */
+ public boolean hasFolderId() {
+ return locationCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return The folderId.
+ */
+ public long getFolderId() {
+ if (locationCase_ == 2) {
+ return (java.lang.Long) location_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @param value The folderId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFolderId(long value) {
+ locationCase_ = 2;
+ location_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFolderId() {
+ if (locationCase_ == 2) {
+ locationCase_ = 0;
+ location_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfileLocation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfileLocation)
+ private static final com.google.privacy.dlp.v2.DataProfileLocation DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfileLocation();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfileLocation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return Whether the organizationId field is set.
+ */
+ boolean hasOrganizationId();
+ /**
+ *
+ *
+ * + * The ID of an organization to scan. + *+ * + *
int64 organization_id = 1;
+ *
+ * @return The organizationId.
+ */
+ long getOrganizationId();
+
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return Whether the folderId field is set.
+ */
+ boolean hasFolderId();
+ /**
+ *
+ *
+ * + * The ID of the Folder within an organization to scan. + *+ * + *
int64 folder_id = 2;
+ *
+ * @return The folderId.
+ */
+ long getFolderId();
+
+ public com.google.privacy.dlp.v2.DataProfileLocation.LocationCase getLocationCase();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java
new file mode 100644
index 00000000..71071197
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java
@@ -0,0 +1,3485 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * A condition for determining whether a PubSub should be triggered. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition} + */ +public final class DataProfilePubSubCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfilePubSubCondition) + DataProfilePubSubConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfilePubSubCondition.newBuilder() to construct. + private DataProfilePubSubCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfilePubSubCondition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfilePubSubCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfilePubSubCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder + subBuilder = null; + if (expressions_ != null) { + subBuilder = expressions_.toBuilder(); + } + expressions_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expressions_); + expressions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.class, + com.google.privacy.dlp.v2.DataProfilePubSubCondition.Builder.class); + } + + /** + * + * + *
+ * Various score levels for resources. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket} + */ + public enum ProfileScoreBucket implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
PROFILE_SCORE_BUCKET_UNSPECIFIED = 0;
+ */
+ PROFILE_SCORE_BUCKET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * High risk/sensitivity detected. + *+ * + *
HIGH = 1;
+ */
+ HIGH(1),
+ /**
+ *
+ *
+ * + * Medium or high risk/sensitivity detected. + *+ * + *
MEDIUM_OR_HIGH = 2;
+ */
+ MEDIUM_OR_HIGH(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
PROFILE_SCORE_BUCKET_UNSPECIFIED = 0;
+ */
+ public static final int PROFILE_SCORE_BUCKET_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * High risk/sensitivity detected. + *+ * + *
HIGH = 1;
+ */
+ public static final int HIGH_VALUE = 1;
+ /**
+ *
+ *
+ * + * Medium or high risk/sensitivity detected. + *+ * + *
MEDIUM_OR_HIGH = 2;
+ */
+ public static final int MEDIUM_OR_HIGH_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ProfileScoreBucket valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ProfileScoreBucket forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PROFILE_SCORE_BUCKET_UNSPECIFIED;
+ case 1:
+ return HIGH;
+ case 2:
+ return MEDIUM_OR_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return Whether the minimumRiskScore field is set.
+ */
+ boolean hasMinimumRiskScore();
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumRiskScore.
+ */
+ int getMinimumRiskScoreValue();
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The minimumRiskScore.
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket getMinimumRiskScore();
+
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return Whether the minimumSensitivityScore field is set.
+ */
+ boolean hasMinimumSensitivityScore();
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumSensitivityScore.
+ */
+ int getMinimumSensitivityScoreValue();
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The minimumSensitivityScore.
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ getMinimumSensitivityScore();
+
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.ValueCase
+ getValueCase();
+ }
+ /**
+ *
+ *
+ * + * A condition consisting of a value. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition} + */ + public static final class PubSubCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition) + PubSubConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSubCondition.newBuilder() to construct. + private PubSubCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PubSubCondition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSubCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubSubCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + valueCase_ = 1; + value_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + valueCase_ = 2; + value_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.class, + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MINIMUM_RISK_SCORE(1), + MINIMUM_SENSITIVITY_SCORE(2), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return MINIMUM_RISK_SCORE; + case 2: + return MINIMUM_SENSITIVITY_SCORE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int MINIMUM_RISK_SCORE_FIELD_NUMBER = 1; + /** + * + * + *
+ * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return Whether the minimumRiskScore field is set.
+ */
+ public boolean hasMinimumRiskScore() {
+ return valueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumRiskScore.
+ */
+ public int getMinimumRiskScoreValue() {
+ if (valueCase_ == 1) {
+ return (java.lang.Integer) value_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The minimumRiskScore.
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ getMinimumRiskScore() {
+ if (valueCase_ == 1) {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.valueOf(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.UNRECOGNIZED
+ : result;
+ }
+ return com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ .PROFILE_SCORE_BUCKET_UNSPECIFIED;
+ }
+
+ public static final int MINIMUM_SENSITIVITY_SCORE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return Whether the minimumSensitivityScore field is set.
+ */
+ public boolean hasMinimumSensitivityScore() {
+ return valueCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumSensitivityScore.
+ */
+ public int getMinimumSensitivityScoreValue() {
+ if (valueCase_ == 2) {
+ return (java.lang.Integer) value_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The minimumSensitivityScore.
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ getMinimumSensitivityScore() {
+ if (valueCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.valueOf(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.UNRECOGNIZED
+ : result;
+ }
+ return com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ .PROFILE_SCORE_BUCKET_UNSPECIFIED;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (valueCase_ == 1) {
+ output.writeEnum(1, ((java.lang.Integer) value_));
+ }
+ if (valueCase_ == 2) {
+ output.writeEnum(2, ((java.lang.Integer) value_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valueCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) value_));
+ }
+ if (valueCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) value_));
+ }
+ 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.DataProfilePubSubCondition.PubSubCondition)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition other =
+ (com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition) obj;
+
+ if (!getValueCase().equals(other.getValueCase())) return false;
+ switch (valueCase_) {
+ case 1:
+ if (getMinimumRiskScoreValue() != other.getMinimumRiskScoreValue()) return false;
+ break;
+ case 2:
+ if (getMinimumSensitivityScoreValue() != other.getMinimumSensitivityScoreValue())
+ return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (valueCase_) {
+ case 1:
+ hash = (37 * hash) + MINIMUM_RISK_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + getMinimumRiskScoreValue();
+ break;
+ case 2:
+ hash = (37 * hash) + MINIMUM_SENSITIVITY_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + getMinimumSensitivityScoreValue();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition
+ 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.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition 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.DataProfilePubSubCondition.PubSubCondition prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A condition consisting of a value. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return Whether the minimumRiskScore field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinimumRiskScore() {
+ return valueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumRiskScore.
+ */
+ @java.lang.Override
+ public int getMinimumRiskScoreValue() {
+ if (valueCase_ == 1) {
+ return ((java.lang.Integer) value_).intValue();
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @param value The enum numeric value on the wire for minimumRiskScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinimumRiskScoreValue(int value) {
+ valueCase_ = 1;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return The minimumRiskScore.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ getMinimumRiskScore() {
+ if (valueCase_ == 1) {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.valueOf(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.UNRECOGNIZED
+ : result;
+ }
+ return com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ .PROFILE_SCORE_BUCKET_UNSPECIFIED;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @param value The minimumRiskScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinimumRiskScore(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCase_ = 1;
+ value_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum data risk score that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMinimumRiskScore() {
+ if (valueCase_ == 1) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return Whether the minimumSensitivityScore field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinimumSensitivityScore() {
+ return valueCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for minimumSensitivityScore.
+ */
+ @java.lang.Override
+ public int getMinimumSensitivityScoreValue() {
+ if (valueCase_ == 2) {
+ return ((java.lang.Integer) value_).intValue();
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @param value The enum numeric value on the wire for minimumSensitivityScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinimumSensitivityScoreValue(int value) {
+ valueCase_ = 2;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return The minimumSensitivityScore.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ getMinimumSensitivityScore() {
+ if (valueCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.valueOf(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket.UNRECOGNIZED
+ : result;
+ }
+ return com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket
+ .PROFILE_SCORE_BUCKET_UNSPECIFIED;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @param value The minimumSensitivityScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinimumSensitivityScore(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCase_ = 2;
+ value_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The minimum sensitivity level that triggers the condition. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMinimumSensitivityScore() {
+ if (valueCase_ == 2) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition)
+ private static final com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for logicalOperator.
+ */
+ int getLogicalOperatorValue();
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The logicalOperator.
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator
+ getLogicalOperator();
+
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ java.util.List+ * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition getConditions(int index);
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ int getConditionsCount();
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ java.util.List<
+ ? extends com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder>
+ getConditionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder
+ getConditionsOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ * + * An expression, consisting of an operator and conditions. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions} + */ + public static final class PubSubExpressions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions) + PubSubExpressionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSubExpressions.newBuilder() to construct. + private PubSubExpressions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PubSubExpressions() { + logicalOperator_ = 0; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSubExpressions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubSubExpressions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + logicalOperator_ = rawValue; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + conditions_ = + new java.util.ArrayList< + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition>(); + mutable_bitField0_ |= 0x00000001; + } + conditions_.add( + input.readMessage( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.class, + com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder.class); + } + + /** + * + * + *
+ * Logical operators for conditional checks. + *+ * + * Protobuf enum {@code + * google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator} + */ + public enum PubSubLogicalOperator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
LOGICAL_OPERATOR_UNSPECIFIED = 0;
+ */
+ LOGICAL_OPERATOR_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Conditional OR. + *+ * + *
OR = 1;
+ */
+ OR(1),
+ /**
+ *
+ *
+ * + * Conditional AND. + *+ * + *
AND = 2;
+ */
+ AND(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
LOGICAL_OPERATOR_UNSPECIFIED = 0;
+ */
+ public static final int LOGICAL_OPERATOR_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Conditional OR. + *+ * + *
OR = 1;
+ */
+ public static final int OR_VALUE = 1;
+ /**
+ *
+ *
+ * + * Conditional AND. + *+ * + *
AND = 2;
+ */
+ public static final int AND_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PubSubLogicalOperator valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static PubSubLogicalOperator forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LOGICAL_OPERATOR_UNSPECIFIED;
+ case 1:
+ return OR;
+ case 2:
+ return AND;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for logicalOperator.
+ */
+ @java.lang.Override
+ public int getLogicalOperatorValue() {
+ return logicalOperator_;
+ }
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The logicalOperator.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator
+ getLogicalOperator() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator
+ result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.valueOf(logicalOperator_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int CONDITIONS_FIELD_NUMBER = 2;
+ private java.util.List+ * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder>
+ getConditionsOrBuilderList() {
+ return conditions_;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ @java.lang.Override
+ public int getConditionsCount() {
+ return conditions_.size();
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition getConditions(
+ int index) {
+ return conditions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder
+ getConditionsOrBuilder(int index) {
+ return conditions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (logicalOperator_
+ != com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.LOGICAL_OPERATOR_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, logicalOperator_);
+ }
+ for (int i = 0; i < conditions_.size(); i++) {
+ output.writeMessage(2, conditions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (logicalOperator_
+ != com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.LOGICAL_OPERATOR_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, logicalOperator_);
+ }
+ for (int i = 0; i < conditions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, conditions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions other =
+ (com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions) obj;
+
+ if (logicalOperator_ != other.logicalOperator_) return false;
+ if (!getConditionsList().equals(other.getConditionsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LOGICAL_OPERATOR_FIELD_NUMBER;
+ hash = (53 * hash) + logicalOperator_;
+ if (getConditionsCount() > 0) {
+ hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getConditionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ 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.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions 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.DataProfilePubSubCondition.PubSubExpressions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * An expression, consisting of an operator and conditions. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for logicalOperator.
+ */
+ @java.lang.Override
+ public int getLogicalOperatorValue() {
+ return logicalOperator_;
+ }
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @param value The enum numeric value on the wire for logicalOperator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogicalOperatorValue(int value) {
+
+ logicalOperator_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return The logicalOperator.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator
+ getLogicalOperator() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator
+ result =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.valueOf(logicalOperator_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @param value The logicalOperator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogicalOperator(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .PubSubLogicalOperator
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ logicalOperator_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operator to apply to the collection of conditions. + *+ * + *
+ * .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogicalOperator() {
+
+ logicalOperator_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public java.util.List+ * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public int getConditionsCount() {
+ if (conditionsBuilder_ == null) {
+ return conditions_.size();
+ } else {
+ return conditionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition getConditions(
+ int index) {
+ if (conditionsBuilder_ == null) {
+ return conditions_.get(index);
+ } else {
+ return conditionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder setConditions(
+ int index, com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition value) {
+ if (conditionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConditionsIsMutable();
+ conditions_.set(index, value);
+ onChanged();
+ } else {
+ conditionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder setConditions(
+ int index,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ builderForValue) {
+ if (conditionsBuilder_ == null) {
+ ensureConditionsIsMutable();
+ conditions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ conditionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder addConditions(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition value) {
+ if (conditionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConditionsIsMutable();
+ conditions_.add(value);
+ onChanged();
+ } else {
+ conditionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder addConditions(
+ int index, com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition value) {
+ if (conditionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConditionsIsMutable();
+ conditions_.add(index, value);
+ onChanged();
+ } else {
+ conditionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder addConditions(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ builderForValue) {
+ if (conditionsBuilder_ == null) {
+ ensureConditionsIsMutable();
+ conditions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ conditionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder addConditions(
+ int index,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ builderForValue) {
+ if (conditionsBuilder_ == null) {
+ ensureConditionsIsMutable();
+ conditions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ conditionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder addAllConditions(
+ java.lang.Iterable<
+ ? extends com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition>
+ values) {
+ if (conditionsBuilder_ == null) {
+ ensureConditionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);
+ onChanged();
+ } else {
+ conditionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder clearConditions() {
+ if (conditionsBuilder_ == null) {
+ conditions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ conditionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public Builder removeConditions(int index) {
+ if (conditionsBuilder_ == null) {
+ ensureConditionsIsMutable();
+ conditions_.remove(index);
+ onChanged();
+ } else {
+ conditionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ getConditionsBuilder(int index) {
+ return getConditionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder
+ getConditionsOrBuilder(int index) {
+ if (conditionsBuilder_ == null) {
+ return conditions_.get(index);
+ } else {
+ return conditionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder>
+ getConditionsOrBuilderList() {
+ if (conditionsBuilder_ != null) {
+ return conditionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(conditions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ addConditionsBuilder() {
+ return getConditionsFieldBuilder()
+ .addBuilder(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder
+ addConditionsBuilder(int index) {
+ return getConditionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Conditions to apply to the expression. + *+ * + *
+ * repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
+ *
+ */
+ public java.util.List<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder>
+ getConditionsBuilderList() {
+ return getConditionsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder>
+ getConditionsFieldBuilder() {
+ if (conditionsBuilder_ == null) {
+ conditionsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubConditionOrBuilder>(
+ conditions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ conditions_ = null;
+ }
+ return conditionsBuilder_;
+ }
+
+ @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.DataProfilePubSubCondition.PubSubExpressions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions)
+ private static final com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return Whether the expressions field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpressions() {
+ return expressions_ != null;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return The expressions.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions getExpressions() {
+ return expressions_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .getDefaultInstance()
+ : expressions_;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressionsOrBuilder
+ getExpressionsOrBuilder() {
+ return getExpressions();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (expressions_ != null) {
+ output.writeMessage(1, getExpressions());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (expressions_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpressions());
+ }
+ 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.DataProfilePubSubCondition)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition other =
+ (com.google.privacy.dlp.v2.DataProfilePubSubCondition) obj;
+
+ if (hasExpressions() != other.hasExpressions()) return false;
+ if (hasExpressions()) {
+ if (!getExpressions().equals(other.getExpressions())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasExpressions()) {
+ hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExpressions().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition 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.DataProfilePubSubCondition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition 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.DataProfilePubSubCondition parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition 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.DataProfilePubSubCondition parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition 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.DataProfilePubSubCondition parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition 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.DataProfilePubSubCondition 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.DataProfilePubSubCondition 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.DataProfilePubSubCondition prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A condition for determining whether a PubSub should be triggered. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return Whether the expressions field is set.
+ */
+ public boolean hasExpressions() {
+ return expressionsBuilder_ != null || expressions_ != null;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return The expressions.
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions getExpressions() {
+ if (expressionsBuilder_ == null) {
+ return expressions_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .getDefaultInstance()
+ : expressions_;
+ } else {
+ return expressionsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public Builder setExpressions(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expressions_ = value;
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public Builder setExpressions(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder
+ builderForValue) {
+ if (expressionsBuilder_ == null) {
+ expressions_ = builderForValue.build();
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public Builder mergeExpressions(
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions value) {
+ if (expressionsBuilder_ == null) {
+ if (expressions_ != null) {
+ expressions_ =
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.newBuilder(
+ expressions_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expressions_ = value;
+ }
+ onChanged();
+ } else {
+ expressionsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public Builder clearExpressions() {
+ if (expressionsBuilder_ == null) {
+ expressions_ = null;
+ onChanged();
+ } else {
+ expressions_ = null;
+ expressionsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder
+ getExpressionsBuilder() {
+
+ onChanged();
+ return getExpressionsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ public com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressionsOrBuilder
+ getExpressionsOrBuilder() {
+ if (expressionsBuilder_ != null) {
+ return expressionsBuilder_.getMessageOrBuilder();
+ } else {
+ return expressions_ == null
+ ? com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions
+ .getDefaultInstance()
+ : expressions_;
+ }
+ }
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressionsOrBuilder>
+ getExpressionsFieldBuilder() {
+ if (expressionsBuilder_ == null) {
+ expressionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.Builder,
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressionsOrBuilder>(
+ getExpressions(), getParentForChildren(), isClean());
+ expressions_ = null;
+ }
+ return expressionsBuilder_;
+ }
+
+ @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.DataProfilePubSubCondition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfilePubSubCondition)
+ private static final com.google.privacy.dlp.v2.DataProfilePubSubCondition DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfilePubSubCondition();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubCondition getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return Whether the expressions field is set.
+ */
+ boolean hasExpressions();
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ *
+ * @return The expressions.
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions getExpressions();
+ /**
+ *
+ *
+ * + * An expression. + *+ * + *
.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1;
+ *
+ */
+ com.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressionsOrBuilder
+ getExpressionsOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java
new file mode 100644
index 00000000..b9c12873
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java
@@ -0,0 +1,922 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * The message that will be published to a Pub/Sub topic. + * To receive a message of protocol buffer schema type, convert the message data + * to an object of this proto class. + * https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubMessage} + */ +public final class DataProfilePubSubMessage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataProfilePubSubMessage) + DataProfilePubSubMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfilePubSubMessage.newBuilder() to construct. + private DataProfilePubSubMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataProfilePubSubMessage() { + event_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfilePubSubMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataProfilePubSubMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.TableDataProfile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.privacy.dlp.v2.TableDataProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + int rawValue = input.readEnum(); + + event_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataProfilePubSubMessage.class, + com.google.privacy.dlp.v2.DataProfilePubSubMessage.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.TableDataProfile profile_; + /** + * + * + *
+ * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return Whether the profile field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfile() {
+ return profile_ != null;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return The profile.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TableDataProfile getProfile() {
+ return profile_ == null
+ ? com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance()
+ : profile_;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder() {
+ return getProfile();
+ }
+
+ public static final int EVENT_FIELD_NUMBER = 2;
+ private int event_;
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override
+ public int getEventValue() {
+ return event_;
+ }
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.EventType result =
+ com.google.privacy.dlp.v2.DataProfileAction.EventType.valueOf(event_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (profile_ != null) {
+ output.writeMessage(1, getProfile());
+ }
+ if (event_
+ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, event_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (profile_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile());
+ }
+ if (event_
+ != com.google.privacy.dlp.v2.DataProfileAction.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, event_);
+ }
+ 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.DataProfilePubSubMessage)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataProfilePubSubMessage other =
+ (com.google.privacy.dlp.v2.DataProfilePubSubMessage) obj;
+
+ if (hasProfile() != other.hasProfile()) return false;
+ if (hasProfile()) {
+ if (!getProfile().equals(other.getProfile())) return false;
+ }
+ if (event_ != other.event_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasProfile()) {
+ hash = (37 * hash) + PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getProfile().hashCode();
+ }
+ hash = (37 * hash) + EVENT_FIELD_NUMBER;
+ hash = (53 * hash) + event_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage 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.DataProfilePubSubMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage 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.DataProfilePubSubMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage 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.DataProfilePubSubMessage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage 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.DataProfilePubSubMessage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage 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.DataProfilePubSubMessage 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.DataProfilePubSubMessage 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.DataProfilePubSubMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The message that will be published to a Pub/Sub topic. + * To receive a message of protocol buffer schema type, convert the message data + * to an object of this proto class. + * https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return Whether the profile field is set.
+ */
+ public boolean hasProfile() {
+ return profileBuilder_ != null || profile_ != null;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return The profile.
+ */
+ public com.google.privacy.dlp.v2.TableDataProfile getProfile() {
+ if (profileBuilder_ == null) {
+ return profile_ == null
+ ? com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance()
+ : profile_;
+ } else {
+ return profileBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public Builder setProfile(com.google.privacy.dlp.v2.TableDataProfile value) {
+ if (profileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ profile_ = value;
+ onChanged();
+ } else {
+ profileBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public Builder setProfile(com.google.privacy.dlp.v2.TableDataProfile.Builder builderForValue) {
+ if (profileBuilder_ == null) {
+ profile_ = builderForValue.build();
+ onChanged();
+ } else {
+ profileBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public Builder mergeProfile(com.google.privacy.dlp.v2.TableDataProfile value) {
+ if (profileBuilder_ == null) {
+ if (profile_ != null) {
+ profile_ =
+ com.google.privacy.dlp.v2.TableDataProfile.newBuilder(profile_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ profile_ = value;
+ }
+ onChanged();
+ } else {
+ profileBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public Builder clearProfile() {
+ if (profileBuilder_ == null) {
+ profile_ = null;
+ onChanged();
+ } else {
+ profile_ = null;
+ profileBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public com.google.privacy.dlp.v2.TableDataProfile.Builder getProfileBuilder() {
+
+ onChanged();
+ return getProfileFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder() {
+ if (profileBuilder_ != null) {
+ return profileBuilder_.getMessageOrBuilder();
+ } else {
+ return profile_ == null
+ ? com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance()
+ : profile_;
+ }
+ }
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TableDataProfile,
+ com.google.privacy.dlp.v2.TableDataProfile.Builder,
+ com.google.privacy.dlp.v2.TableDataProfileOrBuilder>
+ getProfileFieldBuilder() {
+ if (profileBuilder_ == null) {
+ profileBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TableDataProfile,
+ com.google.privacy.dlp.v2.TableDataProfile.Builder,
+ com.google.privacy.dlp.v2.TableDataProfileOrBuilder>(
+ getProfile(), getParentForChildren(), isClean());
+ profile_ = null;
+ }
+ return profileBuilder_;
+ }
+
+ private int event_ = 0;
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override
+ public int getEventValue() {
+ return event_;
+ }
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @param value The enum numeric value on the wire for event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventValue(int value) {
+
+ event_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataProfileAction.EventType result =
+ com.google.privacy.dlp.v2.DataProfileAction.EventType.valueOf(event_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataProfileAction.EventType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @param value The event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvent(com.google.privacy.dlp.v2.DataProfileAction.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ event_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEvent() {
+
+ event_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataProfilePubSubMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataProfilePubSubMessage)
+ private static final com.google.privacy.dlp.v2.DataProfilePubSubMessage DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataProfilePubSubMessage();
+ }
+
+ public static com.google.privacy.dlp.v2.DataProfilePubSubMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return Whether the profile field is set.
+ */
+ boolean hasProfile();
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ *
+ * @return The profile.
+ */
+ com.google.privacy.dlp.v2.TableDataProfile getProfile();
+ /**
+ *
+ *
+ * + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile profile = 1;
+ */
+ com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder();
+
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The enum numeric value on the wire for event.
+ */
+ int getEventValue();
+ /**
+ *
+ *
+ * + * The event that caused the Pub/Sub message to be sent. + *+ * + *
.google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
+ *
+ * @return The event.
+ */
+ com.google.privacy.dlp.v2.DataProfileAction.EventType getEvent();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java
new file mode 100644
index 00000000..0f0c73da
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java
@@ -0,0 +1,808 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * Score is a summary of all elements in the data profile. + * A higher number means more risky. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataRiskLevel} + */ +public final class DataRiskLevel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataRiskLevel) + DataRiskLevelOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRiskLevel.newBuilder() to construct. + private DataRiskLevel(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataRiskLevel() { + score_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRiskLevel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataRiskLevel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + score_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataRiskLevel.class, + com.google.privacy.dlp.v2.DataRiskLevel.Builder.class); + } + + /** + * + * + *
+ * Various score levels for resources. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore} + */ + public enum DataRiskLevelScore implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
RISK_SCORE_UNSPECIFIED = 0;
+ */
+ RISK_SCORE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Low risk - Lower indication of sensitive data that appears to have + * additional access restrictions in place or no indication of sensitive + * data found. + *+ * + *
RISK_LOW = 10;
+ */
+ RISK_LOW(10),
+ /**
+ *
+ *
+ * + * Medium risk - Sensitive data may be present but additional access or fine + * grain access restrictions appears to be present. Consider limiting + * access even further or transforming data to mask. + *+ * + *
RISK_MODERATE = 20;
+ */
+ RISK_MODERATE(20),
+ /**
+ *
+ *
+ * + * High risk – SPII may be present. Access controls may include public + * ACLs. Exfiltration of data may lead to user data loss. Re-identification + * of users may be possible. Consider limiting usage and or removing SPII. + *+ * + *
RISK_HIGH = 30;
+ */
+ RISK_HIGH(30),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
RISK_SCORE_UNSPECIFIED = 0;
+ */
+ public static final int RISK_SCORE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Low risk - Lower indication of sensitive data that appears to have + * additional access restrictions in place or no indication of sensitive + * data found. + *+ * + *
RISK_LOW = 10;
+ */
+ public static final int RISK_LOW_VALUE = 10;
+ /**
+ *
+ *
+ * + * Medium risk - Sensitive data may be present but additional access or fine + * grain access restrictions appears to be present. Consider limiting + * access even further or transforming data to mask. + *+ * + *
RISK_MODERATE = 20;
+ */
+ public static final int RISK_MODERATE_VALUE = 20;
+ /**
+ *
+ *
+ * + * High risk – SPII may be present. Access controls may include public + * ACLs. Exfiltration of data may lead to user data loss. Re-identification + * of users may be possible. Consider limiting usage and or removing SPII. + *+ * + *
RISK_HIGH = 30;
+ */
+ public static final int RISK_HIGH_VALUE = 30;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DataRiskLevelScore valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DataRiskLevelScore forNumber(int value) {
+ switch (value) {
+ case 0:
+ return RISK_SCORE_UNSPECIFIED;
+ case 10:
+ return RISK_LOW;
+ case 20:
+ return RISK_MODERATE;
+ case 30:
+ return RISK_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ @java.lang.Override
+ public int getScoreValue() {
+ return score_;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore getScore() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore result =
+ com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.valueOf(score_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (score_
+ != com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.RISK_SCORE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, score_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (score_
+ != com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.RISK_SCORE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, score_);
+ }
+ 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.DataRiskLevel)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.DataRiskLevel other = (com.google.privacy.dlp.v2.DataRiskLevel) obj;
+
+ if (score_ != other.score_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + score_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel 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.DataRiskLevel parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel 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.DataRiskLevel parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel 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.DataRiskLevel parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel 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.DataRiskLevel parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel 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.DataRiskLevel 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.DataRiskLevel 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.DataRiskLevel 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;
+ }
+ /**
+ *
+ *
+ * + * Score is a summary of all elements in the data profile. + * A higher number means more risky. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.DataRiskLevel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ @java.lang.Override
+ public int getScoreValue() {
+ return score_;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @param value The enum numeric value on the wire for score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScoreValue(int value) {
+
+ score_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore getScore() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore result =
+ com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.valueOf(score_);
+ return result == null
+ ? com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @param value The score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScore(com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ score_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearScore() {
+
+ score_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DataRiskLevel)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataRiskLevel)
+ private static final com.google.privacy.dlp.v2.DataRiskLevel DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataRiskLevel();
+ }
+
+ public static com.google.privacy.dlp.v2.DataRiskLevel getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ int getScoreValue();
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;
+ *
+ * @return The score.
+ */
+ com.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore getScore();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
index 80349dff..1ae86763 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
@@ -603,6 +603,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_InspectJobConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileAction_Export_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileJobConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileLocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_DlpJob_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -727,6 +747,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -1419,415 +1487,523 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "onfig\030\002 \001(\0132$.google.privacy.dlp.v2.Insp"
+ "ectConfig\022\035\n\025inspect_template_name\030\003 \001(\t"
+ "\022.\n\007actions\030\004 \003(\0132\035.google.privacy.dlp.v"
- + "2.Action\"\353\005\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022/\n\004typ"
- + "e\030\002 \001(\0162!.google.privacy.dlp.v2.DlpJobTy"
- + "pe\0225\n\005state\030\003 \001(\0162&.google.privacy.dlp.v"
- + "2.DlpJob.JobState\022K\n\014risk_details\030\004 \001(\0132"
- + "3.google.privacy.dlp.v2.AnalyzeDataSourc"
- + "eRiskDetailsH\000\022J\n\017inspect_details\030\005 \001(\0132"
- + "/.google.privacy.dlp.v2.InspectDataSourc"
- + "eDetailsH\000\022/\n\013create_time\030\006 \001(\0132\032.google"
- + ".protobuf.Timestamp\022.\n\nstart_time\030\007 \001(\0132"
- + "\032.google.protobuf.Timestamp\022,\n\010end_time\030"
- + "\010 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020job"
- + "_trigger_name\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.go"
- + "ogle.privacy.dlp.v2.Error\"o\n\010JobState\022\031\n"
- + "\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n"
- + "\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006FA"
- + "ILED\020\005\022\n\n\006ACTIVE\020\006:\177\352A|\n\031dlp.googleapis."
- + "com/DlpJob\022$projects/{project}/dlpJobs/{"
- + "dlp_job}\0229projects/{project}/locations/{"
- + "location}/dlpJobs/{dlp_job}B\t\n\007details\"C"
- + "\n\020GetDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033"
- + "\n\031dlp.googleapis.com/DlpJob\"\326\001\n\022ListDlpJ"
- + "obsRequest\0221\n\006parent\030\004 \001(\tB!\340A\002\372A\033\022\031dlp."
- + "googleapis.com/DlpJob\022\016\n\006filter\030\001 \001(\t\022\021\n"
- + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n\004"
- + "type\030\005 \001(\0162!.google.privacy.dlp.v2.DlpJo"
- + "bType\022\020\n\010order_by\030\006 \001(\t\022\023\n\013location_id\030\007"
- + " \001(\t\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003("
- + "\0132\035.google.privacy.dlp.v2.DlpJob\022\027\n\017next"
- + "_page_token\030\002 \001(\t\"F\n\023CancelDlpJobRequest"
- + "\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.c"
- + "om/DlpJob\"F\n\023FinishDlpJobRequest\022/\n\004name"
- + "\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJo"
- + "b\"F\n\023DeleteDlpJobRequest\022/\n\004name\030\001 \001(\tB!"
- + "\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"\327\001\n\037Cr"
- + "eateDeidentifyTemplateRequest\022=\n\006parent\030"
- + "\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapis.com/Deiden"
- + "tifyTemplate\022K\n\023deidentify_template\030\002 \001("
- + "\0132).google.privacy.dlp.v2.DeidentifyTemp"
- + "lateB\003\340A\002\022\023\n\013template_id\030\003 \001(\t\022\023\n\013locati"
- + "on_id\030\004 \001(\t\"\327\001\n\037UpdateDeidentifyTemplate"
- + "Request\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.googl"
- + "eapis.com/DeidentifyTemplate\022F\n\023deidenti"
- + "fy_template\030\002 \001(\0132).google.privacy.dlp.v"
- + "2.DeidentifyTemplate\022/\n\013update_mask\030\003 \001("
- + "\0132\032.google.protobuf.FieldMask\"[\n\034GetDeid"
- + "entifyTemplateRequest\022;\n\004name\030\001 \001(\tB-\340A\002"
- + "\372A\'\n%dlp.googleapis.com/DeidentifyTempla"
- + "te\"\255\001\n\036ListDeidentifyTemplatesRequest\022=\n"
- + "\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapis.co"
- + "m/DeidentifyTemplate\022\022\n\npage_token\030\002 \001(\t"
- + "\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n"
- + "\013location_id\030\005 \001(\t\"\203\001\n\037ListDeidentifyTem"
- + "platesResponse\022G\n\024deidentify_templates\030\001"
- + " \003(\0132).google.privacy.dlp.v2.DeidentifyT"
- + "emplate\022\027\n\017next_page_token\030\002 \001(\t\"^\n\037Dele"
- + "teDeidentifyTemplateRequest\022;\n\004name\030\001 \001("
- + "\tB-\340A\002\372A\'\n%dlp.googleapis.com/Deidentify"
- + "Template\"\364\001\n\033LargeCustomDictionaryConfig"
- + "\022<\n\013output_path\030\001 \001(\0132\'.google.privacy.d"
- + "lp.v2.CloudStoragePath\022L\n\026cloud_storage_"
- + "file_set\030\002 \001(\0132*.google.privacy.dlp.v2.C"
- + "loudStorageFileSetH\000\022?\n\017big_query_field\030"
- + "\003 \001(\0132$.google.privacy.dlp.v2.BigQueryFi"
- + "eldH\000B\010\n\006source\"8\n\032LargeCustomDictionary"
- + "Stats\022\032\n\022approx_num_phrases\030\001 \001(\003\"\246\002\n\024St"
- + "oredInfoTypeConfig\022\024\n\014display_name\030\001 \001(\t"
- + "\022\023\n\013description\030\002 \001(\t\022U\n\027large_custom_di"
- + "ctionary\030\003 \001(\01322.google.privacy.dlp.v2.L"
- + "argeCustomDictionaryConfigH\000\022F\n\ndictiona"
- + "ry\030\004 \001(\01320.google.privacy.dlp.v2.CustomI"
- + "nfoType.DictionaryH\000\022<\n\005regex\030\005 \001(\0132+.go"
- + "ogle.privacy.dlp.v2.CustomInfoType.Regex"
- + "H\000B\006\n\004type\"s\n\023StoredInfoTypeStats\022T\n\027lar"
- + "ge_custom_dictionary\030\001 \001(\01321.google.priv"
- + "acy.dlp.v2.LargeCustomDictionaryStatsH\000B"
- + "\006\n\004type\"\251\002\n\025StoredInfoTypeVersion\022;\n\006con"
- + "fig\030\001 \001(\0132+.google.privacy.dlp.v2.Stored"
- + "InfoTypeConfig\022/\n\013create_time\030\002 \001(\0132\032.go"
- + "ogle.protobuf.Timestamp\0229\n\005state\030\003 \001(\0162*"
- + ".google.privacy.dlp.v2.StoredInfoTypeSta"
- + "te\022,\n\006errors\030\004 \003(\0132\034.google.privacy.dlp."
- + "v2.Error\0229\n\005stats\030\005 \001(\0132*.google.privacy"
- + ".dlp.v2.StoredInfoTypeStats\"\361\003\n\016StoredIn"
- + "foType\022\014\n\004name\030\001 \001(\t\022E\n\017current_version\030"
- + "\002 \001(\0132,.google.privacy.dlp.v2.StoredInfo"
- + "TypeVersion\022F\n\020pending_versions\030\003 \003(\0132,."
- + "google.privacy.dlp.v2.StoredInfoTypeVers"
- + "ion:\301\002\352A\275\002\n!dlp.googleapis.com/StoredInf"
- + "oType\022?organizations/{organization}/stor"
- + "edInfoTypes/{stored_info_type}\0225projects"
- + "/{project}/storedInfoTypes/{stored_info_"
- + "type}\022Torganizations/{organization}/loca"
- + "tions/{location}/storedInfoTypes/{stored"
- + "_info_type}\022Jprojects/{project}/location"
- + "s/{location}/storedInfoTypes/{stored_inf"
- + "o_type}\"\314\001\n\033CreateStoredInfoTypeRequest\022"
- + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp.googleapis."
- + "com/StoredInfoType\022@\n\006config\030\002 \001(\0132+.goo"
- + "gle.privacy.dlp.v2.StoredInfoTypeConfigB"
- + "\003\340A\002\022\033\n\023stored_info_type_id\030\003 \001(\t\022\023\n\013loc"
- + "ation_id\030\004 \001(\t\"\304\001\n\033UpdateStoredInfoTypeR"
- + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.google"
- + "apis.com/StoredInfoType\022;\n\006config\030\002 \001(\0132"
- + "+.google.privacy.dlp.v2.StoredInfoTypeCo"
- + "nfig\022/\n\013update_mask\030\003 \001(\0132\032.google.proto"
- + "buf.FieldMask\"S\n\030GetStoredInfoTypeReques"
- + "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.googleapis."
- + "com/StoredInfoType\"\245\001\n\032ListStoredInfoTyp"
- + "esRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp.g"
- + "oogleapis.com/StoredInfoType\022\022\n\npage_tok"
- + "en\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030"
- + "\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"x\n\033ListStored"
- + "InfoTypesResponse\022@\n\021stored_info_types\030\001"
- + " \003(\0132%.google.privacy.dlp.v2.StoredInfoT"
- + "ype\022\027\n\017next_page_token\030\002 \001(\t\"V\n\033DeleteSt"
- + "oredInfoTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A"
- + "#\n!dlp.googleapis.com/StoredInfoType\"\224\001\n",
- "\036HybridInspectJobTriggerRequest\0223\n\004name\030"
- + "\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobTri"
- + "gger\022=\n\013hybrid_item\030\003 \001(\0132(.google.priva"
- + "cy.dlp.v2.HybridContentItem\"\214\001\n\032HybridIn"
- + "spectDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033"
- + "\n\031dlp.googleapis.com/DlpJob\022=\n\013hybrid_it"
- + "em\030\003 \001(\0132(.google.privacy.dlp.v2.HybridC"
- + "ontentItem\"\213\001\n\021HybridContentItem\0220\n\004item"
- + "\030\001 \001(\0132\".google.privacy.dlp.v2.ContentIt"
- + "em\022D\n\017finding_details\030\002 \001(\0132+.google.pri"
- + "vacy.dlp.v2.HybridFindingDetails\"\260\002\n\024Hyb"
- + "ridFindingDetails\022;\n\021container_details\030\001"
- + " \001(\0132 .google.privacy.dlp.v2.Container\022\023"
- + "\n\013file_offset\030\002 \001(\003\022\022\n\nrow_offset\030\003 \001(\003\022"
- + ":\n\rtable_options\030\004 \001(\0132#.google.privacy."
- + "dlp.v2.TableOptions\022G\n\006labels\030\005 \003(\01327.go"
- + "ogle.privacy.dlp.v2.HybridFindingDetails"
- + ".LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t"
- + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\027\n\025HybridInspectResp"
- + "onse*\273\001\n\022RelationalOperator\022#\n\037RELATIONA"
- + "L_OPERATOR_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\tLE"
- + "SS_THAN\020\004\022\032\n\026GREATER_THAN_OR_EQUALS\020\005\022\027\n"
- + "\023LESS_THAN_OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014M"
- + "atchingType\022\035\n\031MATCHING_TYPE_UNSPECIFIED"
- + "\020\000\022\034\n\030MATCHING_TYPE_FULL_MATCH\020\001\022\037\n\033MATC"
- + "HING_TYPE_PARTIAL_MATCH\020\002\022\037\n\033MATCHING_TY"
- + "PE_INVERSE_MATCH\020\003*M\n\rContentOption\022\027\n\023C"
- + "ONTENT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021"
- + "\n\rCONTENT_IMAGE\020\002*B\n\014MetadataType\022\034\n\030MET"
- + "ADATATYPE_UNSPECIFIED\020\000\022\024\n\020STORAGE_METAD"
- + "ATA\020\002*P\n\023InfoTypeSupportedBy\022\031\n\025ENUM_TYP"
- + "E_UNSPECIFIED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANA"
- + "LYSIS\020\002*R\n\nDlpJobType\022\034\n\030DLP_JOB_TYPE_UN"
- + "SPECIFIED\020\000\022\017\n\013INSPECT_JOB\020\001\022\025\n\021RISK_ANA"
- + "LYSIS_JOB\020\002*n\n\023StoredInfoTypeState\022&\n\"ST"
- + "ORED_INFO_TYPE_STATE_UNSPECIFIED\020\000\022\013\n\007PE"
- + "NDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALI"
- + "D\020\0042\240L\n\nDlpService\022\333\001\n\016InspectContent\022,."
- + "google.privacy.dlp.v2.InspectContentRequ"
- + "est\032-.google.privacy.dlp.v2.InspectConte"
- + "ntResponse\"l\202\323\344\223\002f\"\'/v2/{parent=projects"
- + "/*}/content:inspect:\001*Z8\"3/v2/{parent=pr"
- + "ojects/*/locations/*}/content:inspect:\001*"
- + "\022\314\001\n\013RedactImage\022).google.privacy.dlp.v2"
- + ".RedactImageRequest\032*.google.privacy.dlp"
- + ".v2.RedactImageResponse\"f\202\323\344\223\002`\"$/v2/{pa"
- + "rent=projects/*}/image:redact:\001*Z5\"0/v2/"
- + "{parent=projects/*/locations/*}/image:re"
- + "dact:\001*\022\352\001\n\021DeidentifyContent\022/.google.p"
- + "rivacy.dlp.v2.DeidentifyContentRequest\0320"
- + ".google.privacy.dlp.v2.DeidentifyContent"
- + "Response\"r\202\323\344\223\002l\"*/v2/{parent=projects/*"
- + "}/content:deidentify:\001*Z;\"6/v2/{parent=p"
- + "rojects/*/locations/*}/content:deidentif"
- + "y:\001*\022\352\001\n\021ReidentifyContent\022/.google.priv"
- + "acy.dlp.v2.ReidentifyContentRequest\0320.go"
- + "ogle.privacy.dlp.v2.ReidentifyContentRes"
- + "ponse\"r\202\323\344\223\002l\"*/v2/{parent=projects/*}/c"
- + "ontent:reidentify:\001*Z;\"6/v2/{parent=proj"
- + "ects/*/locations/*}/content:reidentify:\001"
- + "*\022\260\001\n\rListInfoTypes\022+.google.privacy.dlp"
- + ".v2.ListInfoTypesRequest\032,.google.privac"
- + "y.dlp.v2.ListInfoTypesResponse\"D\202\323\344\223\0025\022\r"
- + "/v2/infoTypesZ$\022\"/v2/{parent=locations/*"
- + "}/infoTypes\332A\006parent\022\364\002\n\025CreateInspectTe"
- + "mplate\0223.google.privacy.dlp.v2.CreateIns"
- + "pectTemplateRequest\032&.google.privacy.dlp"
- + ".v2.InspectTemplate\"\375\001\202\323\344\223\002\334\001\"-/v2/{pare"
- + "nt=organizations/*}/inspectTemplates:\001*Z"
- + ">\"9/v2/{parent=organizations/*/locations"
- + "/*}/inspectTemplates:\001*Z-\"(/v2/{parent=p"
- + "rojects/*}/inspectTemplates:\001*Z9\"4/v2/{p"
- + "arent=projects/*/locations/*}/inspectTem"
- + "plates:\001*\332A\027parent,inspect_template\022\376\002\n\025"
- + "UpdateInspectTemplate\0223.google.privacy.d"
- + "lp.v2.UpdateInspectTemplateRequest\032&.goo"
- + "gle.privacy.dlp.v2.InspectTemplate\"\207\002\202\323\344"
- + "\223\002\334\0012-/v2/{name=organizations/*/inspectT"
- + "emplates/*}:\001*Z>29/v2/{name=organization"
- + "s/*/locations/*/inspectTemplates/*}:\001*Z-"
- + "2(/v2/{name=projects/*/inspectTemplates/"
- + "*}:\001*Z924/v2/{name=projects/*/locations/"
- + "*/inspectTemplates/*}:\001*\332A!name,inspect_"
- + "template,update_mask\022\317\002\n\022GetInspectTempl"
- + "ate\0220.google.privacy.dlp.v2.GetInspectTe"
- + "mplateRequest\032&.google.privacy.dlp.v2.In"
- + "spectTemplate\"\336\001\202\323\344\223\002\320\001\022-/v2/{name=organ"
- + "izations/*/inspectTemplates/*}Z;\0229/v2/{n"
- + "ame=organizations/*/locations/*/inspectT"
- + "emplates/*}Z*\022(/v2/{name=projects/*/insp"
- + "ectTemplates/*}Z6\0224/v2/{name=projects/*/"
- + "locations/*/inspectTemplates/*}\332A\004name\022\342"
- + "\002\n\024ListInspectTemplates\0222.google.privacy"
- + ".dlp.v2.ListInspectTemplatesRequest\0323.go"
- + "ogle.privacy.dlp.v2.ListInspectTemplates"
- + "Response\"\340\001\202\323\344\223\002\320\001\022-/v2/{parent=organiza"
- + "tions/*}/inspectTemplatesZ;\0229/v2/{parent"
- + "=organizations/*/locations/*}/inspectTem"
- + "platesZ*\022(/v2/{parent=projects/*}/inspec"
- + "tTemplatesZ6\0224/v2/{parent=projects/*/loc"
- + "ations/*}/inspectTemplates\332A\006parent\022\305\002\n\025"
- + "DeleteInspectTemplate\0223.google.privacy.d"
- + "lp.v2.DeleteInspectTemplateRequest\032\026.goo"
- + "gle.protobuf.Empty\"\336\001\202\323\344\223\002\320\001*-/v2/{name="
- + "organizations/*/inspectTemplates/*}Z;*9/"
+ + "2.Action\"\355\005\n\021DataProfileAction\022F\n\013export"
+ + "_data\030\001 \001(\0132/.google.privacy.dlp.v2.Data"
+ + "ProfileAction.ExportH\000\022[\n\024pub_sub_notifi"
+ + "cation\030\002 \001(\0132;.google.privacy.dlp.v2.Dat"
+ + "aProfileAction.PubSubNotificationH\000\032E\n\006E"
+ + "xport\022;\n\rprofile_table\030\001 \001(\0132$.google.pr"
+ + "ivacy.dlp.v2.BigQueryTable\032\352\002\n\022PubSubNot"
+ + "ification\022\r\n\005topic\030\001 \001(\t\022A\n\005event\030\002 \001(\0162"
+ + "2.google.privacy.dlp.v2.DataProfileActio"
+ + "n.EventType\022K\n\020pubsub_condition\030\003 \001(\01321."
+ + "google.privacy.dlp.v2.DataProfilePubSubC"
+ + "ondition\022b\n\021detail_of_message\030\004 \001(\0162G.go"
+ + "ogle.privacy.dlp.v2.DataProfileAction.Pu"
+ + "bSubNotification.DetailLevel\"Q\n\013DetailLe"
+ + "vel\022\034\n\030DETAIL_LEVEL_UNSPECIFIED\020\000\022\021\n\rTAB"
+ + "LE_PROFILE\020\001\022\021\n\rRESOURCE_NAME\020\002\"u\n\tEvent"
+ + "Type\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022\017\n\013NEW_"
+ + "PROFILE\020\001\022\023\n\017CHANGED_PROFILE\020\002\022\023\n\017SCORE_"
+ + "INCREASED\020\003\022\021\n\rERROR_CHANGED\020\004B\010\n\006action"
+ + "\"\313\001\n\024DataProfileJobConfig\022<\n\010location\030\001 "
+ + "\001(\0132*.google.privacy.dlp.v2.DataProfileL"
+ + "ocation\022\022\n\nproject_id\030\005 \001(\t\022\031\n\021inspect_t"
+ + "emplates\030\007 \003(\t\022F\n\024data_profile_actions\030\006"
+ + " \003(\0132(.google.privacy.dlp.v2.DataProfile"
+ + "Action\"Q\n\023DataProfileLocation\022\031\n\017organiz"
+ + "ation_id\030\001 \001(\003H\000\022\023\n\tfolder_id\030\002 \001(\003H\000B\n\n"
+ + "\010location\"\353\005\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022/\n\004ty"
+ + "pe\030\002 \001(\0162!.google.privacy.dlp.v2.DlpJobT"
+ + "ype\0225\n\005state\030\003 \001(\0162&.google.privacy.dlp."
+ + "v2.DlpJob.JobState\022K\n\014risk_details\030\004 \001(\013"
+ + "23.google.privacy.dlp.v2.AnalyzeDataSour"
+ + "ceRiskDetailsH\000\022J\n\017inspect_details\030\005 \001(\013"
+ + "2/.google.privacy.dlp.v2.InspectDataSour"
+ + "ceDetailsH\000\022/\n\013create_time\030\006 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\022.\n\nstart_time\030\007 \001(\013"
+ + "2\032.google.protobuf.Timestamp\022,\n\010end_time"
+ + "\030\010 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020jo"
+ + "b_trigger_name\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.g"
+ + "oogle.privacy.dlp.v2.Error\"o\n\010JobState\022\031"
+ + "\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013"
+ + "\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006F"
+ + "AILED\020\005\022\n\n\006ACTIVE\020\006:\177\352A|\n\031dlp.googleapis"
+ + ".com/DlpJob\022$projects/{project}/dlpJobs/"
+ + "{dlp_job}\0229projects/{project}/locations/"
+ + "{location}/dlpJobs/{dlp_job}B\t\n\007details\""
+ + "C\n\020GetDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A"
+ + "\033\n\031dlp.googleapis.com/DlpJob\"\326\001\n\022ListDlp"
+ + "JobsRequest\0221\n\006parent\030\004 \001(\tB!\340A\002\372A\033\022\031dlp"
+ + ".googleapis.com/DlpJob\022\016\n\006filter\030\001 \001(\t\022\021"
+ + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n"
+ + "\004type\030\005 \001(\0162!.google.privacy.dlp.v2.DlpJ"
+ + "obType\022\020\n\010order_by\030\006 \001(\t\022\023\n\013location_id\030"
+ + "\007 \001(\t\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003"
+ + "(\0132\035.google.privacy.dlp.v2.DlpJob\022\027\n\017nex"
+ + "t_page_token\030\002 \001(\t\"F\n\023CancelDlpJobReques"
+ + "t\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis."
+ + "com/DlpJob\"F\n\023FinishDlpJobRequest\022/\n\004nam"
+ + "e\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJ"
+ + "ob\"F\n\023DeleteDlpJobRequest\022/\n\004name\030\001 \001(\tB"
+ + "!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"\327\001\n\037C"
+ + "reateDeidentifyTemplateRequest\022=\n\006parent"
+ + "\030\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapis.com/Deide"
+ + "ntifyTemplate\022K\n\023deidentify_template\030\002 \001"
+ + "(\0132).google.privacy.dlp.v2.DeidentifyTem"
+ + "plateB\003\340A\002\022\023\n\013template_id\030\003 \001(\t\022\023\n\013locat"
+ + "ion_id\030\004 \001(\t\"\327\001\n\037UpdateDeidentifyTemplat"
+ + "eRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.goog"
+ + "leapis.com/DeidentifyTemplate\022F\n\023deident"
+ + "ify_template\030\002 \001(\0132).google.privacy.dlp."
+ + "v2.DeidentifyTemplate\022/\n\013update_mask\030\003 \001"
+ + "(\0132\032.google.protobuf.FieldMask\"[\n\034GetDei"
+ + "dentifyTemplateRequest\022;\n\004name\030\001 \001(\tB-\340A"
+ + "\002\372A\'\n%dlp.googleapis.com/DeidentifyTempl"
+ + "ate\"\255\001\n\036ListDeidentifyTemplatesRequest\022="
+ + "\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapis.c"
+ + "om/DeidentifyTemplate\022\022\n\npage_token\030\002 \001("
+ + "\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023"
+ + "\n\013location_id\030\005 \001(\t\"\203\001\n\037ListDeidentifyTe"
+ + "mplatesResponse\022G\n\024deidentify_templates\030"
+ + "\001 \003(\0132).google.privacy.dlp.v2.Deidentify"
+ + "Template\022\027\n\017next_page_token\030\002 \001(\t\"^\n\037Del"
+ + "eteDeidentifyTemplateRequest\022;\n\004name\030\001 \001"
+ + "(\tB-\340A\002\372A\'\n%dlp.googleapis.com/Deidentif"
+ + "yTemplate\"\364\001\n\033LargeCustomDictionaryConfi"
+ + "g\022<\n\013output_path\030\001 \001(\0132\'.google.privacy."
+ + "dlp.v2.CloudStoragePath\022L\n\026cloud_storage"
+ + "_file_set\030\002 \001(\0132*.google.privacy.dlp.v2."
+ + "CloudStorageFileSetH\000\022?\n\017big_query_field"
+ + "\030\003 \001(\0132$.google.privacy.dlp.v2.BigQueryF"
+ + "ieldH\000B\010\n\006source\"8\n\032LargeCustomDictionar"
+ + "yStats\022\032\n\022approx_num_phrases\030\001 \001(\003\"\246\002\n\024S"
+ + "toredInfoTypeConfig\022\024\n\014display_name\030\001 \001("
+ + "\t\022\023\n\013description\030\002 \001(\t\022U\n\027large_custom_d"
+ + "ictionary\030\003 \001(\01322.google.privacy.dlp.v2."
+ + "LargeCustomDictionaryConfigH\000\022F\n\ndiction"
+ + "ary\030\004 \001(\01320.google.privacy.dlp.v2.Custom"
+ + "InfoType.DictionaryH\000\022<\n\005regex\030\005 \001(\0132+.g"
+ + "oogle.privacy.dlp.v2.CustomInfoType.Rege"
+ + "xH\000B\006\n\004type\"s\n\023StoredInfoTypeStats\022T\n\027la"
+ + "rge_custom_dictionary\030\001 \001(\01321.google.pri"
+ + "vacy.dlp.v2.LargeCustomDictionaryStatsH\000"
+ + "B\006\n\004type\"\251\002\n\025StoredInfoTypeVersion\022;\n\006co"
+ + "nfig\030\001 \001(\0132+.google.privacy.dlp.v2.Store"
+ + "dInfoTypeConfig\022/\n\013create_time\030\002 \001(\0132\032.g"
+ + "oogle.protobuf.Timestamp\0229\n\005state\030\003 \001(\0162"
+ + "*.google.privacy.dlp.v2.StoredInfoTypeSt"
+ + "ate\022,\n\006errors\030\004 \003(\0132\034.google.privacy.dlp"
+ + ".v2.Error\0229\n\005stats\030\005 \001(\0132*.google.privac"
+ + "y.dlp.v2.StoredInfoTypeStats\"\361\003\n\016StoredI"
+ + "nfoType\022\014\n\004name\030\001 \001(\t\022E\n\017current_version"
+ + "\030\002 \001(\0132,.google.privacy.dlp.v2.StoredInf"
+ + "oTypeVersion\022F\n\020pending_versions\030\003 \003(\0132,"
+ + ".google.privacy.dlp.v2.StoredInfoTypeVer"
+ + "sion:\301\002\352A\275\002\n!dlp.googleapis.com/StoredIn"
+ + "foType\022?organizations/{organization}/sto"
+ + "redInfoTypes/{stored_info_type}\0225project"
+ + "s/{project}/storedInfoTypes/{stored_info",
+ "_type}\022Torganizations/{organization}/loc"
+ + "ations/{location}/storedInfoTypes/{store"
+ + "d_info_type}\022Jprojects/{project}/locatio"
+ + "ns/{location}/storedInfoTypes/{stored_in"
+ + "fo_type}\"\314\001\n\033CreateStoredInfoTypeRequest"
+ + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp.googleapis"
+ + ".com/StoredInfoType\022@\n\006config\030\002 \001(\0132+.go"
+ + "ogle.privacy.dlp.v2.StoredInfoTypeConfig"
+ + "B\003\340A\002\022\033\n\023stored_info_type_id\030\003 \001(\t\022\023\n\013lo"
+ + "cation_id\030\004 \001(\t\"\304\001\n\033UpdateStoredInfoType"
+ + "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.googl"
+ + "eapis.com/StoredInfoType\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\"S\n\030GetStoredInfoTypeReque"
+ + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.googleapis"
+ + ".com/StoredInfoType\"\245\001\n\032ListStoredInfoTy"
+ + "pesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp."
+ + "googleapis.com/StoredInfoType\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\023\n\013location_id\030\005 \001(\t\"x\n\033ListStore"
+ + "dInfoTypesResponse\022@\n\021stored_info_types\030"
+ + "\001 \003(\0132%.google.privacy.dlp.v2.StoredInfo"
+ + "Type\022\027\n\017next_page_token\030\002 \001(\t\"V\n\033DeleteS"
+ + "toredInfoTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372"
+ + "A#\n!dlp.googleapis.com/StoredInfoType\"\224\001"
+ + "\n\036HybridInspectJobTriggerRequest\0223\n\004name"
+ + "\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobTr"
+ + "igger\022=\n\013hybrid_item\030\003 \001(\0132(.google.priv"
+ + "acy.dlp.v2.HybridContentItem\"\214\001\n\032HybridI"
+ + "nspectDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A"
+ + "\033\n\031dlp.googleapis.com/DlpJob\022=\n\013hybrid_i"
+ + "tem\030\003 \001(\0132(.google.privacy.dlp.v2.Hybrid"
+ + "ContentItem\"\213\001\n\021HybridContentItem\0220\n\004ite"
+ + "m\030\001 \001(\0132\".google.privacy.dlp.v2.ContentI"
+ + "tem\022D\n\017finding_details\030\002 \001(\0132+.google.pr"
+ + "ivacy.dlp.v2.HybridFindingDetails\"\260\002\n\024Hy"
+ + "bridFindingDetails\022;\n\021container_details\030"
+ + "\001 \001(\0132 .google.privacy.dlp.v2.Container\022"
+ + "\023\n\013file_offset\030\002 \001(\003\022\022\n\nrow_offset\030\003 \001(\003"
+ + "\022:\n\rtable_options\030\004 \001(\0132#.google.privacy"
+ + ".dlp.v2.TableOptions\022G\n\006labels\030\005 \003(\01327.g"
+ + "oogle.privacy.dlp.v2.HybridFindingDetail"
+ + "s.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
+ + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\027\n\025HybridInspectRes"
+ + "ponse\"\341\001\n\020SensitivityScore\022L\n\005score\030\001 \001("
+ + "\0162=.google.privacy.dlp.v2.SensitivitySco"
+ + "re.SensitivityScoreLevel\"\177\n\025SensitivityS"
+ + "coreLevel\022!\n\035SENSITIVITY_SCORE_UNSPECIFI"
+ + "ED\020\000\022\023\n\017SENSITIVITY_LOW\020\n\022\030\n\024SENSITIVITY"
+ + "_MODERATE\020\024\022\024\n\020SENSITIVITY_HIGH\020\036\"\271\001\n\rDa"
+ + "taRiskLevel\022F\n\005score\030\001 \001(\01627.google.priv"
+ + "acy.dlp.v2.DataRiskLevel.DataRiskLevelSc"
+ + "ore\"`\n\022DataRiskLevelScore\022\032\n\026RISK_SCORE_"
+ + "UNSPECIFIED\020\000\022\014\n\010RISK_LOW\020\n\022\021\n\rRISK_MODE"
+ + "RATE\020\024\022\r\n\tRISK_HIGH\020\036\"\240\001\n\031DataProfileCon"
+ + "figSnapshot\022<\n\016inspect_config\030\002 \001(\0132$.go"
+ + "ogle.privacy.dlp.v2.InspectConfig\022E\n\020dat"
+ + "a_profile_job\030\003 \001(\0132+.google.privacy.dlp"
+ + ".v2.DataProfileJobConfig\"\232\n\n\020TableDataPr"
+ + "ofile\022\014\n\004name\030\001 \001(\t\022\034\n\024project_data_prof"
+ + "ile\030\002 \001(\t\022\032\n\022dataset_project_id\030\030 \001(\t\022\030\n"
+ + "\020dataset_location\030\035 \001(\t\022\022\n\ndataset_id\030\031 "
+ + "\001(\t\022\020\n\010table_id\030\032 \001(\t\022\025\n\rfull_resource\030\003"
+ + " \001(\t\022<\n\016profile_status\030\025 \001(\0132$.google.pr"
+ + "ivacy.dlp.v2.ProfileStatus\022<\n\005state\030\026 \001("
+ + "\0162-.google.privacy.dlp.v2.TableDataProfi"
+ + "le.State\022B\n\021sensitivity_score\030\005 \001(\0132\'.go"
+ + "ogle.privacy.dlp.v2.SensitivityScore\022=\n\017"
+ + "data_risk_level\030\006 \001(\0132$.google.privacy.d"
+ + "lp.v2.DataRiskLevel\022D\n\024predicted_info_ty"
+ + "pes\030\033 \003(\0132&.google.privacy.dlp.v2.InfoTy"
+ + "peSummary\022E\n\020other_info_types\030\034 \003(\0132+.go"
+ + "ogle.privacy.dlp.v2.OtherInfoTypeSummary"
+ + "\022I\n\017config_snapshot\030\007 \001(\01320.google.priva"
+ + "cy.dlp.v2.DataProfileConfigSnapshot\0226\n\022l"
+ + "ast_modified_time\030\010 \001(\0132\032.google.protobu"
+ + "f.Timestamp\0223\n\017expiration_time\030\t \001(\0132\032.g"
+ + "oogle.protobuf.Timestamp\022\034\n\024scanned_colu"
+ + "mn_count\030\n \001(\003\022\033\n\023failed_column_count\030\013 "
+ + "\001(\003\022\030\n\020table_size_bytes\030\014 \001(\003\022\021\n\trow_cou"
+ + "nt\030\r \001(\003\022B\n\021encryption_status\030\016 \001(\0162\'.go"
+ + "ogle.privacy.dlp.v2.EncryptionStatus\022F\n\023"
+ + "resource_visibility\030\017 \001(\0162).google.priva"
+ + "cy.dlp.v2.ResourceVisibility\022:\n\026profile_"
+ + "last_generated\030\020 \001(\0132\032.google.protobuf.T"
+ + "imestamp\022T\n\017resource_labels\030\021 \003(\0132;.goog"
+ + "le.privacy.dlp.v2.TableDataProfile.Resou"
+ + "rceLabelsEntry\022/\n\013create_time\030\027 \001(\0132\032.go"
+ + "ogle.protobuf.Timestamp\0325\n\023ResourceLabel"
+ + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5"
+ + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNIN"
+ + "G\020\001\022\010\n\004DONE\020\002\"b\n\rProfileStatus\022\"\n\006status"
+ + "\030\001 \001(\0132\022.google.rpc.Status\022-\n\ttimestamp\030"
+ + "\003 \001(\0132\032.google.protobuf.Timestamp\"E\n\017Inf"
+ + "oTypeSummary\0222\n\tinfo_type\030\001 \001(\0132\037.google"
+ + ".privacy.dlp.v2.InfoType\"J\n\024OtherInfoTyp"
+ + "eSummary\0222\n\tinfo_type\030\001 \001(\0132\037.google.pri"
+ + "vacy.dlp.v2.InfoType\"\352\005\n\032DataProfilePubS"
+ + "ubCondition\022X\n\013expressions\030\001 \001(\0132C.googl"
+ + "e.privacy.dlp.v2.DataProfilePubSubCondit"
+ + "ion.PubSubExpressions\032\351\001\n\017PubSubConditio"
+ + "n\022b\n\022minimum_risk_score\030\001 \001(\0162D.google.p"
+ + "rivacy.dlp.v2.DataProfilePubSubCondition"
+ + ".ProfileScoreBucketH\000\022i\n\031minimum_sensiti"
+ + "vity_score\030\002 \001(\0162D.google.privacy.dlp.v2"
+ + ".DataProfilePubSubCondition.ProfileScore"
+ + "BucketH\000B\007\n\005value\032\253\002\n\021PubSubExpressions\022"
+ + "s\n\020logical_operator\030\001 \001(\0162Y.google.priva"
+ + "cy.dlp.v2.DataProfilePubSubCondition.Pub"
+ + "SubExpressions.PubSubLogicalOperator\022U\n\n"
+ + "conditions\030\002 \003(\0132A.google.privacy.dlp.v2"
+ + ".DataProfilePubSubCondition.PubSubCondit"
+ + "ion\"J\n\025PubSubLogicalOperator\022 \n\034LOGICAL_"
+ + "OPERATOR_UNSPECIFIED\020\000\022\006\n\002OR\020\001\022\007\n\003AND\020\002\""
+ + "X\n\022ProfileScoreBucket\022$\n PROFILE_SCORE_B"
+ + "UCKET_UNSPECIFIED\020\000\022\010\n\004HIGH\020\001\022\022\n\016MEDIUM_"
+ + "OR_HIGH\020\002\"\227\001\n\030DataProfilePubSubMessage\0228"
+ + "\n\007profile\030\001 \001(\0132\'.google.privacy.dlp.v2."
+ + "TableDataProfile\022A\n\005event\030\002 \001(\01622.google"
+ + ".privacy.dlp.v2.DataProfileAction.EventT"
+ + "ype*\273\001\n\022RelationalOperator\022#\n\037RELATIONAL"
+ + "_OPERATOR_UNSPECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n"
+ + "\014NOT_EQUAL_TO\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLES"
+ + "S_THAN\020\004\022\032\n\026GREATER_THAN_OR_EQUALS\020\005\022\027\n\023"
+ + "LESS_THAN_OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014Ma"
+ + "tchingType\022\035\n\031MATCHING_TYPE_UNSPECIFIED\020"
+ + "\000\022\034\n\030MATCHING_TYPE_FULL_MATCH\020\001\022\037\n\033MATCH"
+ + "ING_TYPE_PARTIAL_MATCH\020\002\022\037\n\033MATCHING_TYP"
+ + "E_INVERSE_MATCH\020\003*M\n\rContentOption\022\027\n\023CO"
+ + "NTENT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n"
+ + "\rCONTENT_IMAGE\020\002*B\n\014MetadataType\022\034\n\030META"
+ + "DATATYPE_UNSPECIFIED\020\000\022\024\n\020STORAGE_METADA"
+ + "TA\020\002*P\n\023InfoTypeSupportedBy\022\031\n\025ENUM_TYPE"
+ + "_UNSPECIFIED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANAL"
+ + "YSIS\020\002*R\n\nDlpJobType\022\034\n\030DLP_JOB_TYPE_UNS"
+ + "PECIFIED\020\000\022\017\n\013INSPECT_JOB\020\001\022\025\n\021RISK_ANAL"
+ + "YSIS_JOB\020\002*n\n\023StoredInfoTypeState\022&\n\"STO"
+ + "RED_INFO_TYPE_STATE_UNSPECIFIED\020\000\022\013\n\007PEN"
+ + "DING\020\001\022\t\n\005READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALID"
+ + "\020\004*}\n\022ResourceVisibility\022#\n\037RESOURCE_VIS"
+ + "IBILITY_UNSPECIFIED\020\000\022\036\n\032RESOURCE_VISIBI"
+ + "LITY_PUBLIC\020\n\022\"\n\036RESOURCE_VISIBILITY_RES"
+ + "TRICTED\020\024*u\n\020EncryptionStatus\022!\n\035ENCRYPT"
+ + "ION_STATUS_UNSPECIFIED\020\000\022\035\n\031ENCRYPTION_G"
+ + "OOGLE_MANAGED\020\001\022\037\n\033ENCRYPTION_CUSTOMER_M"
+ + "ANAGED\020\0022\240L\n\nDlpService\022\333\001\n\016InspectConte"
+ + "nt\022,.google.privacy.dlp.v2.InspectConten"
+ + "tRequest\032-.google.privacy.dlp.v2.Inspect"
+ + "ContentResponse\"l\202\323\344\223\002f\"\'/v2/{parent=pro"
+ + "jects/*}/content:inspect:\001*Z8\"3/v2/{pare"
+ + "nt=projects/*/locations/*}/content:inspe"
+ + "ct:\001*\022\314\001\n\013RedactImage\022).google.privacy.d"
+ + "lp.v2.RedactImageRequest\032*.google.privac"
+ + "y.dlp.v2.RedactImageResponse\"f\202\323\344\223\002`\"$/v"
+ + "2/{parent=projects/*}/image:redact:\001*Z5\""
+ + "0/v2/{parent=projects/*/locations/*}/ima"
+ + "ge:redact:\001*\022\352\001\n\021DeidentifyContent\022/.goo"
+ + "gle.privacy.dlp.v2.DeidentifyContentRequ"
+ + "est\0320.google.privacy.dlp.v2.DeidentifyCo"
+ + "ntentResponse\"r\202\323\344\223\002l\"*/v2/{parent=proje"
+ + "cts/*}/content:deidentify:\001*Z;\"6/v2/{par"
+ + "ent=projects/*/locations/*}/content:deid"
+ + "entify:\001*\022\352\001\n\021ReidentifyContent\022/.google"
+ + ".privacy.dlp.v2.ReidentifyContentRequest"
+ + "\0320.google.privacy.dlp.v2.ReidentifyConte"
+ + "ntResponse\"r\202\323\344\223\002l\"*/v2/{parent=projects"
+ + "/*}/content:reidentify:\001*Z;\"6/v2/{parent"
+ + "=projects/*/locations/*}/content:reident"
+ + "ify:\001*\022\260\001\n\rListInfoTypes\022+.google.privac"
+ + "y.dlp.v2.ListInfoTypesRequest\032,.google.p"
+ + "rivacy.dlp.v2.ListInfoTypesResponse\"D\202\323\344"
+ + "\223\0025\022\r/v2/infoTypesZ$\022\"/v2/{parent=locati"
+ + "ons/*}/infoTypes\332A\006parent\022\364\002\n\025CreateInsp"
+ + "ectTemplate\0223.google.privacy.dlp.v2.Crea"
+ + "teInspectTemplateRequest\032&.google.privac"
+ + "y.dlp.v2.InspectTemplate\"\375\001\202\323\344\223\002\334\001\"-/v2/"
+ + "{parent=organizations/*}/inspectTemplate"
+ + "s:\001*Z>\"9/v2/{parent=organizations/*/loca"
+ + "tions/*}/inspectTemplates:\001*Z-\"(/v2/{par"
+ + "ent=projects/*}/inspectTemplates:\001*Z9\"4/"
+ + "v2/{parent=projects/*/locations/*}/inspe"
+ + "ctTemplates:\001*\332A\027parent,inspect_template"
+ + "\022\376\002\n\025UpdateInspectTemplate\0223.google.priv"
+ + "acy.dlp.v2.UpdateInspectTemplateRequest\032"
+ + "&.google.privacy.dlp.v2.InspectTemplate\""
+ + "\207\002\202\323\344\223\002\334\0012-/v2/{name=organizations/*/ins"
+ + "pectTemplates/*}:\001*Z>29/v2/{name=organiz"
+ + "ations/*/locations/*/inspectTemplates/*}"
+ + ":\001*Z-2(/v2/{name=projects/*/inspectTempl"
+ + "ates/*}:\001*Z924/v2/{name=projects/*/locat"
+ + "ions/*/inspectTemplates/*}:\001*\332A!name,ins"
+ + "pect_template,update_mask\022\317\002\n\022GetInspect"
+ + "Template\0220.google.privacy.dlp.v2.GetInsp"
+ + "ectTemplateRequest\032&.google.privacy.dlp."
+ + "v2.InspectTemplate\"\336\001\202\323\344\223\002\320\001\022-/v2/{name="
+ + "organizations/*/inspectTemplates/*}Z;\0229/"
+ "v2/{name=organizations/*/locations/*/ins"
- + "pectTemplates/*}Z**(/v2/{name=projects/*"
- + "/inspectTemplates/*}Z6*4/v2/{name=projec"
+ + "pectTemplates/*}Z*\022(/v2/{name=projects/*"
+ + "/inspectTemplates/*}Z6\0224/v2/{name=projec"
+ "ts/*/locations/*/inspectTemplates/*}\332A\004n"
- + "ame\022\214\003\n\030CreateDeidentifyTemplate\0226.googl"
- + "e.privacy.dlp.v2.CreateDeidentifyTemplat"
- + "eRequest\032).google.privacy.dlp.v2.Deident"
- + "ifyTemplate\"\214\002\202\323\344\223\002\350\001\"0/v2/{parent=organ"
- + "izations/*}/deidentifyTemplates:\001*ZA\"\022\022*"
- + "\"9/"
- + "v2/{name=projects/*/locations/*/dlpJobs/"
- + "*}:hybridInspect:\001*\332A\004name\022\221\001\n\014FinishDlp"
- + "Job\022*.google.privacy.dlp.v2.FinishDlpJob"
- + "Request\032\026.google.protobuf.Empty\"=\202\323\344\223\0027\""
- + "2/v2/{name=projects/*/locations/*/dlpJob"
- + "s/*}:finish:\001*\032F\312A\022dlp.googleapis.com\322A."
- + "https://www.googleapis.com/auth/cloud-pl"
- + "atformB\372\002\n\031com.google.privacy.dlp.v2B\010Dl"
- + "pProtoP\001Z8google.golang.org/genproto/goo"
- + "gleapis/privacy/dlp/v2;dlp\252\002\023Google.Clou"
- + "d.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Google:"
- + ":Cloud::Dlp::V2\352Ar\n\035dlp.googleapis.com/D"
- + "lpContent\022\035projects/{project}/dlpContent"
- + "\0222projects/{project}/locations/{location"
- + "}/dlpContent\352A\\\n\'dlp.googleapis.com/Orga"
- + "nizationLocation\0221organizations/{organiz"
- + "ation}/locations/{location}b\006proto3"
+ + "ame\022\342\002\n\024ListInspectTemplates\0222.google.pr"
+ + "ivacy.dlp.v2.ListInspectTemplatesRequest"
+ + "\0323.google.privacy.dlp.v2.ListInspectTemp"
+ + "latesResponse\"\340\001\202\323\344\223\002\320\001\022-/v2/{parent=org"
+ + "anizations/*}/inspectTemplatesZ;\0229/v2/{p"
+ + "arent=organizations/*/locations/*}/inspe"
+ + "ctTemplatesZ*\022(/v2/{parent=projects/*}/i"
+ + "nspectTemplatesZ6\0224/v2/{parent=projects/"
+ + "*/locations/*}/inspectTemplates\332A\006parent"
+ + "\022\305\002\n\025DeleteInspectTemplate\0223.google.priv"
+ + "acy.dlp.v2.DeleteInspectTemplateRequest\032"
+ + "\026.google.protobuf.Empty\"\336\001\202\323\344\223\002\320\001*-/v2/{"
+ + "name=organizations/*/inspectTemplates/*}"
+ + "Z;*9/v2/{name=organizations/*/locations/"
+ + "*/inspectTemplates/*}Z**(/v2/{name=proje"
+ + "cts/*/inspectTemplates/*}Z6*4/v2/{name=p"
+ + "rojects/*/locations/*/inspectTemplates/*"
+ + "}\332A\004name\022\214\003\n\030CreateDeidentifyTemplate\0226."
+ + "google.privacy.dlp.v2.CreateDeidentifyTe"
+ + "mplateRequest\032).google.privacy.dlp.v2.De"
+ + "identifyTemplate\"\214\002\202\323\344\223\002\350\001\"0/v2/{parent="
+ + "organizations/*}/deidentifyTemplates:\001*Z"
+ + "A\""
+ + "\022\022*\"9/v2/{name=projects/*/locations/*/dlp"
+ + "Jobs/*}:hybridInspect:\001*\332A\004name\022\221\001\n\014Fini"
+ + "shDlpJob\022*.google.privacy.dlp.v2.FinishD"
+ + "lpJobRequest\032\026.google.protobuf.Empty\"=\202\323"
+ + "\344\223\0027\"2/v2/{name=projects/*/locations/*/d"
+ + "lpJobs/*}:finish:\001*\032F\312A\022dlp.googleapis.c"
+ + "om\322A.https://www.googleapis.com/auth/clo"
+ + "ud-platformB\372\002\n\031com.google.privacy.dlp.v"
+ + "2B\010DlpProtoP\001Z8google.golang.org/genprot"
+ + "o/googleapis/privacy/dlp/v2;dlp\252\002\023Google"
+ + ".Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Go"
+ + "ogle::Cloud::Dlp::V2\352Ar\n\035dlp.googleapis."
+ + "com/DlpContent\022\035projects/{project}/dlpCo"
+ + "ntent\0222projects/{project}/locations/{loc"
+ + "ation}/dlpContent\352A\\\n\'dlp.googleapis.com"
+ + "/OrganizationLocation\0221organizations/{or"
+ + "ganization}/locations/{location}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -3160,8 +3336,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"StorageConfig", "InspectConfig", "InspectTemplateName", "Actions",
});
- internal_static_google_privacy_dlp_v2_DlpJob_descriptor =
+ internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor =
getDescriptor().getMessageTypes().get(95);
+ internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor,
+ new java.lang.String[] {
+ "ExportData", "PubSubNotification", "Action",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor =
+ internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor.getNestedTypes().get(0);
+ internal_static_google_privacy_dlp_v2_DataProfileAction_Export_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileAction_Export_descriptor,
+ new java.lang.String[] {
+ "ProfileTable",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor =
+ internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor.getNestedTypes().get(1);
+ internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileAction_PubSubNotification_descriptor,
+ new java.lang.String[] {
+ "Topic", "Event", "PubsubCondition", "DetailOfMessage",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor =
+ getDescriptor().getMessageTypes().get(96);
+ internal_static_google_privacy_dlp_v2_DataProfileJobConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor,
+ new java.lang.String[] {
+ "Location", "ProjectId", "InspectTemplates", "DataProfileActions",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor =
+ getDescriptor().getMessageTypes().get(97);
+ internal_static_google_privacy_dlp_v2_DataProfileLocation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor,
+ new java.lang.String[] {
+ "OrganizationId", "FolderId", "Location",
+ });
+ internal_static_google_privacy_dlp_v2_DlpJob_descriptor =
+ getDescriptor().getMessageTypes().get(98);
internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_DlpJob_descriptor,
@@ -3179,7 +3395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Details",
});
internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(96);
+ getDescriptor().getMessageTypes().get(99);
internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor,
@@ -3187,7 +3403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor =
- getDescriptor().getMessageTypes().get(97);
+ getDescriptor().getMessageTypes().get(100);
internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor,
@@ -3195,7 +3411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Filter", "PageSize", "PageToken", "Type", "OrderBy", "LocationId",
});
internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor =
- getDescriptor().getMessageTypes().get(98);
+ getDescriptor().getMessageTypes().get(101);
internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor,
@@ -3203,7 +3419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Jobs", "NextPageToken",
});
internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(99);
+ getDescriptor().getMessageTypes().get(102);
internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor,
@@ -3211,7 +3427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(100);
+ getDescriptor().getMessageTypes().get(103);
internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor,
@@ -3219,7 +3435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(101);
+ getDescriptor().getMessageTypes().get(104);
internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor,
@@ -3227,7 +3443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor =
- getDescriptor().getMessageTypes().get(102);
+ getDescriptor().getMessageTypes().get(105);
internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor,
@@ -3235,7 +3451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "DeidentifyTemplate", "TemplateId", "LocationId",
});
internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor =
- getDescriptor().getMessageTypes().get(103);
+ getDescriptor().getMessageTypes().get(106);
internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor,
@@ -3243,7 +3459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "DeidentifyTemplate", "UpdateMask",
});
internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor =
- getDescriptor().getMessageTypes().get(104);
+ getDescriptor().getMessageTypes().get(107);
internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor,
@@ -3251,7 +3467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor =
- getDescriptor().getMessageTypes().get(105);
+ getDescriptor().getMessageTypes().get(108);
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor,
@@ -3259,7 +3475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageToken", "PageSize", "OrderBy", "LocationId",
});
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor =
- getDescriptor().getMessageTypes().get(106);
+ getDescriptor().getMessageTypes().get(109);
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor,
@@ -3267,7 +3483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DeidentifyTemplates", "NextPageToken",
});
internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor =
- getDescriptor().getMessageTypes().get(107);
+ getDescriptor().getMessageTypes().get(110);
internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor,
@@ -3275,7 +3491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor =
- getDescriptor().getMessageTypes().get(108);
+ getDescriptor().getMessageTypes().get(111);
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor,
@@ -3283,7 +3499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"OutputPath", "CloudStorageFileSet", "BigQueryField", "Source",
});
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor =
- getDescriptor().getMessageTypes().get(109);
+ getDescriptor().getMessageTypes().get(112);
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor,
@@ -3291,7 +3507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ApproxNumPhrases",
});
internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor =
- getDescriptor().getMessageTypes().get(110);
+ getDescriptor().getMessageTypes().get(113);
internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor,
@@ -3299,7 +3515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DisplayName", "Description", "LargeCustomDictionary", "Dictionary", "Regex", "Type",
});
internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor =
- getDescriptor().getMessageTypes().get(111);
+ getDescriptor().getMessageTypes().get(114);
internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor,
@@ -3307,7 +3523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"LargeCustomDictionary", "Type",
});
internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor =
- getDescriptor().getMessageTypes().get(112);
+ getDescriptor().getMessageTypes().get(115);
internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor,
@@ -3315,7 +3531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Config", "CreateTime", "State", "Errors", "Stats",
});
internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor =
- getDescriptor().getMessageTypes().get(113);
+ getDescriptor().getMessageTypes().get(116);
internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor,
@@ -3323,7 +3539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "CurrentVersion", "PendingVersions",
});
internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor =
- getDescriptor().getMessageTypes().get(114);
+ getDescriptor().getMessageTypes().get(117);
internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor,
@@ -3331,7 +3547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Config", "StoredInfoTypeId", "LocationId",
});
internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor =
- getDescriptor().getMessageTypes().get(115);
+ getDescriptor().getMessageTypes().get(118);
internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor,
@@ -3339,7 +3555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "Config", "UpdateMask",
});
internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor =
- getDescriptor().getMessageTypes().get(116);
+ getDescriptor().getMessageTypes().get(119);
internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor,
@@ -3347,7 +3563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor =
- getDescriptor().getMessageTypes().get(117);
+ getDescriptor().getMessageTypes().get(120);
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor,
@@ -3355,7 +3571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageToken", "PageSize", "OrderBy", "LocationId",
});
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor =
- getDescriptor().getMessageTypes().get(118);
+ getDescriptor().getMessageTypes().get(121);
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor,
@@ -3363,7 +3579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"StoredInfoTypes", "NextPageToken",
});
internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor =
- getDescriptor().getMessageTypes().get(119);
+ getDescriptor().getMessageTypes().get(122);
internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor,
@@ -3371,7 +3587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor =
- getDescriptor().getMessageTypes().get(120);
+ getDescriptor().getMessageTypes().get(123);
internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor,
@@ -3379,7 +3595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "HybridItem",
});
internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(121);
+ getDescriptor().getMessageTypes().get(124);
internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor,
@@ -3387,7 +3603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "HybridItem",
});
internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor =
- getDescriptor().getMessageTypes().get(122);
+ getDescriptor().getMessageTypes().get(125);
internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor,
@@ -3395,7 +3611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Item", "FindingDetails",
});
internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor =
- getDescriptor().getMessageTypes().get(123);
+ getDescriptor().getMessageTypes().get(126);
internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor,
@@ -3413,11 +3629,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor =
- getDescriptor().getMessageTypes().get(124);
+ getDescriptor().getMessageTypes().get(127);
internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor,
new java.lang.String[] {});
+ internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor =
+ getDescriptor().getMessageTypes().get(128);
+ internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor,
+ new java.lang.String[] {
+ "Score",
+ });
+ internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor =
+ getDescriptor().getMessageTypes().get(129);
+ internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor,
+ new java.lang.String[] {
+ "Score",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor =
+ getDescriptor().getMessageTypes().get(130);
+ internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor,
+ new java.lang.String[] {
+ "InspectConfig", "DataProfileJob",
+ });
+ internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor =
+ getDescriptor().getMessageTypes().get(131);
+ internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor,
+ new java.lang.String[] {
+ "Name",
+ "ProjectDataProfile",
+ "DatasetProjectId",
+ "DatasetLocation",
+ "DatasetId",
+ "TableId",
+ "FullResource",
+ "ProfileStatus",
+ "State",
+ "SensitivityScore",
+ "DataRiskLevel",
+ "PredictedInfoTypes",
+ "OtherInfoTypes",
+ "ConfigSnapshot",
+ "LastModifiedTime",
+ "ExpirationTime",
+ "ScannedColumnCount",
+ "FailedColumnCount",
+ "TableSizeBytes",
+ "RowCount",
+ "EncryptionStatus",
+ "ResourceVisibility",
+ "ProfileLastGenerated",
+ "ResourceLabels",
+ "CreateTime",
+ });
+ internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_descriptor =
+ internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor.getNestedTypes().get(0);
+ internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor =
+ getDescriptor().getMessageTypes().get(132);
+ internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor,
+ new java.lang.String[] {
+ "Status", "Timestamp",
+ });
+ internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor =
+ getDescriptor().getMessageTypes().get(133);
+ internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor,
+ new java.lang.String[] {
+ "InfoType",
+ });
+ internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor =
+ getDescriptor().getMessageTypes().get(134);
+ internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor,
+ new java.lang.String[] {
+ "InfoType",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor =
+ getDescriptor().getMessageTypes().get(135);
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor,
+ new java.lang.String[] {
+ "Expressions",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_descriptor =
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubCondition_descriptor,
+ new java.lang.String[] {
+ "MinimumRiskScore", "MinimumSensitivityScore", "Value",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_descriptor =
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_PubSubExpressions_descriptor,
+ new java.lang.String[] {
+ "LogicalOperator", "Conditions",
+ });
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor =
+ getDescriptor().getMessageTypes().get(136);
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor,
+ new java.lang.String[] {
+ "Profile", "Event",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java
new file mode 100644
index 00000000..afc71279
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java
@@ -0,0 +1,176 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * How a resource is encrypted. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.EncryptionStatus} + */ +public enum EncryptionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
ENCRYPTION_STATUS_UNSPECIFIED = 0;
+ */
+ ENCRYPTION_STATUS_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Google manages server-side encryption keys on your behalf. + *+ * + *
ENCRYPTION_GOOGLE_MANAGED = 1;
+ */
+ ENCRYPTION_GOOGLE_MANAGED(1),
+ /**
+ *
+ *
+ * + * Customer provides the key. + *+ * + *
ENCRYPTION_CUSTOMER_MANAGED = 2;
+ */
+ ENCRYPTION_CUSTOMER_MANAGED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
ENCRYPTION_STATUS_UNSPECIFIED = 0;
+ */
+ public static final int ENCRYPTION_STATUS_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Google manages server-side encryption keys on your behalf. + *+ * + *
ENCRYPTION_GOOGLE_MANAGED = 1;
+ */
+ public static final int ENCRYPTION_GOOGLE_MANAGED_VALUE = 1;
+ /**
+ *
+ *
+ * + * Customer provides the key. + *+ * + *
ENCRYPTION_CUSTOMER_MANAGED = 2;
+ */
+ public static final int ENCRYPTION_CUSTOMER_MANAGED_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EncryptionStatus valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EncryptionStatus forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ENCRYPTION_STATUS_UNSPECIFIED;
+ case 1:
+ return ENCRYPTION_GOOGLE_MANAGED;
+ case 2:
+ return ENCRYPTION_CUSTOMER_MANAGED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The infoType details for this column. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.InfoTypeSummary} + */ +public final class InfoTypeSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InfoTypeSummary) + InfoTypeSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use InfoTypeSummary.newBuilder() to construct. + private InfoTypeSummary(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private InfoTypeSummary() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InfoTypeSummary(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InfoTypeSummary( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.InfoType.Builder subBuilder = null; + if (infoType_ != null) { + subBuilder = infoType_.toBuilder(); + } + infoType_ = + input.readMessage(com.google.privacy.dlp.v2.InfoType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(infoType_); + infoType_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.InfoTypeSummary.class, + com.google.privacy.dlp.v2.InfoTypeSummary.Builder.class); + } + + public static final int INFO_TYPE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.InfoType infoType_; + /** + * + * + *
+ * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ @java.lang.Override
+ public boolean hasInfoType() {
+ return infoType_ != null;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ return getInfoType();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (infoType_ != null) {
+ output.writeMessage(1, getInfoType());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (infoType_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.InfoTypeSummary)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.InfoTypeSummary other =
+ (com.google.privacy.dlp.v2.InfoTypeSummary) obj;
+
+ if (hasInfoType() != other.hasInfoType()) return false;
+ if (hasInfoType()) {
+ if (!getInfoType().equals(other.getInfoType())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInfoType()) {
+ hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getInfoType().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary 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.InfoTypeSummary parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary 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.InfoTypeSummary parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary 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.InfoTypeSummary parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary 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.InfoTypeSummary parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary 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.InfoTypeSummary 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.InfoTypeSummary 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.InfoTypeSummary prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The infoType details for this column. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.InfoTypeSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ public boolean hasInfoType() {
+ return infoTypeBuilder_ != null || infoType_ != null;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ if (infoTypeBuilder_ == null) {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ } else {
+ return infoTypeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ infoType_ = value;
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = builderForValue.build();
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (infoType_ != null) {
+ infoType_ =
+ com.google.privacy.dlp.v2.InfoType.newBuilder(infoType_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ infoType_ = value;
+ }
+ onChanged();
+ } else {
+ infoTypeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder clearInfoType() {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = null;
+ onChanged();
+ } else {
+ infoType_ = null;
+ infoTypeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() {
+
+ onChanged();
+ return getInfoTypeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ if (infoTypeBuilder_ != null) {
+ return infoTypeBuilder_.getMessageOrBuilder();
+ } else {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypeFieldBuilder() {
+ if (infoTypeBuilder_ == null) {
+ infoTypeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>(
+ getInfoType(), getParentForChildren(), isClean());
+ infoType_ = null;
+ }
+ return infoTypeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.InfoTypeSummary)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InfoTypeSummary)
+ private static final com.google.privacy.dlp.v2.InfoTypeSummary DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.InfoTypeSummary();
+ }
+
+ public static com.google.privacy.dlp.v2.InfoTypeSummary getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ boolean hasInfoType();
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ com.google.privacy.dlp.v2.InfoType getInfoType();
+ /**
+ *
+ *
+ * + * The infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java
new file mode 100644
index 00000000..e8f78aef
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java
@@ -0,0 +1,728 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * Infotype details for other infoTypes found within a column. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.OtherInfoTypeSummary} + */ +public final class OtherInfoTypeSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.OtherInfoTypeSummary) + OtherInfoTypeSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use OtherInfoTypeSummary.newBuilder() to construct. + private OtherInfoTypeSummary(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private OtherInfoTypeSummary() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OtherInfoTypeSummary(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OtherInfoTypeSummary( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.InfoType.Builder subBuilder = null; + if (infoType_ != null) { + subBuilder = infoType_.toBuilder(); + } + infoType_ = + input.readMessage(com.google.privacy.dlp.v2.InfoType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(infoType_); + infoType_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.OtherInfoTypeSummary.class, + com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder.class); + } + + public static final int INFO_TYPE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.InfoType infoType_; + /** + * + * + *
+ * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ @java.lang.Override
+ public boolean hasInfoType() {
+ return infoType_ != null;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ return getInfoType();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (infoType_ != null) {
+ output.writeMessage(1, getInfoType());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (infoType_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.OtherInfoTypeSummary)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.OtherInfoTypeSummary other =
+ (com.google.privacy.dlp.v2.OtherInfoTypeSummary) obj;
+
+ if (hasInfoType() != other.hasInfoType()) return false;
+ if (hasInfoType()) {
+ if (!getInfoType().equals(other.getInfoType())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInfoType()) {
+ hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getInfoType().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary 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.OtherInfoTypeSummary parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary 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.OtherInfoTypeSummary parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary 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.OtherInfoTypeSummary parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary 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.OtherInfoTypeSummary parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary 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.OtherInfoTypeSummary 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.OtherInfoTypeSummary 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.OtherInfoTypeSummary 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;
+ }
+ /**
+ *
+ *
+ * + * Infotype details for other infoTypes found within a column. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.OtherInfoTypeSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ public boolean hasInfoType() {
+ return infoTypeBuilder_ != null || infoType_ != null;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ if (infoTypeBuilder_ == null) {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ } else {
+ return infoTypeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ infoType_ = value;
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = builderForValue.build();
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (infoType_ != null) {
+ infoType_ =
+ com.google.privacy.dlp.v2.InfoType.newBuilder(infoType_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ infoType_ = value;
+ }
+ onChanged();
+ } else {
+ infoTypeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public Builder clearInfoType() {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = null;
+ onChanged();
+ } else {
+ infoType_ = null;
+ infoTypeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() {
+
+ onChanged();
+ return getInfoTypeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ if (infoTypeBuilder_ != null) {
+ return infoTypeBuilder_.getMessageOrBuilder();
+ } else {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypeFieldBuilder() {
+ if (infoTypeBuilder_ == null) {
+ infoTypeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>(
+ getInfoType(), getParentForChildren(), isClean());
+ infoType_ = null;
+ }
+ return infoTypeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.OtherInfoTypeSummary)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.OtherInfoTypeSummary)
+ private static final com.google.privacy.dlp.v2.OtherInfoTypeSummary DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.OtherInfoTypeSummary();
+ }
+
+ public static com.google.privacy.dlp.v2.OtherInfoTypeSummary getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return Whether the infoType field is set.
+ */
+ boolean hasInfoType();
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ *
+ * @return The infoType.
+ */
+ com.google.privacy.dlp.v2.InfoType getInfoType();
+ /**
+ *
+ *
+ * + * The other infoType. + *+ * + *
.google.privacy.dlp.v2.InfoType info_type = 1;
+ */
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java
new file mode 100644
index 00000000..b95eb2d5
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java
@@ -0,0 +1,966 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/** Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} */
+public final class ProfileStatus extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ProfileStatus)
+ ProfileStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProfileStatus.newBuilder() to construct.
+ private ProfileStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ProfileStatus() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ProfileStatus();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ProfileStatus(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.rpc.Status.Builder subBuilder = null;
+ if (status_ != null) {
+ subBuilder = status_.toBuilder();
+ }
+ status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(status_);
+ status_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (timestamp_ != null) {
+ subBuilder = timestamp_.toBuilder();
+ }
+ timestamp_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timestamp_);
+ timestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.ProfileStatus.class,
+ com.google.privacy.dlp.v2.ProfileStatus.Builder.class);
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 1;
+ private com.google.rpc.Status status_;
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return getStatus();
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp timestamp_;
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return Whether the timestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestamp() {
+ return timestamp_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return The timestamp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimestamp() {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ return getTimestamp();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (status_ != null) {
+ output.writeMessage(1, getStatus());
+ }
+ if (timestamp_ != null) {
+ output.writeMessage(3, getTimestamp());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus());
+ }
+ if (timestamp_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimestamp());
+ }
+ 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.ProfileStatus)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ProfileStatus other = (com.google.privacy.dlp.v2.ProfileStatus) obj;
+
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus().equals(other.getStatus())) return false;
+ }
+ if (hasTimestamp() != other.hasTimestamp()) return false;
+ if (hasTimestamp()) {
+ if (!getTimestamp().equals(other.getTimestamp())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ if (hasTimestamp()) {
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getTimestamp().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus 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.ProfileStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus 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.ProfileStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus 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.ProfileStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus 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.ProfileStatus parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus 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.ProfileStatus 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.ProfileStatus 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.ProfileStatus prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return statusBuilder_ != null || status_ != null;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (status_ != null) {
+ status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+ } else {
+ status_ = value;
+ }
+ onChanged();
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder clearStatus() {
+ if (statusBuilder_ == null) {
+ status_ = null;
+ onChanged();
+ } else {
+ status_ = null;
+ statusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp timestamp_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ timestampBuilder_;
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return Whether the timestamp field is set.
+ */
+ public boolean hasTimestamp() {
+ return timestampBuilder_ != null || timestamp_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return The timestamp.
+ */
+ public com.google.protobuf.Timestamp getTimestamp() {
+ if (timestampBuilder_ == null) {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ } else {
+ return timestampBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timestamp_ = value;
+ onChanged();
+ } else {
+ timestampBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timestampBuilder_ == null) {
+ timestamp_ = builderForValue.build();
+ onChanged();
+ } else {
+ timestampBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (timestamp_ != null) {
+ timestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
+ } else {
+ timestamp_ = value;
+ }
+ onChanged();
+ } else {
+ timestampBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public Builder clearTimestamp() {
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ onChanged();
+ } else {
+ timestamp_ = null;
+ timestampBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
+
+ onChanged();
+ return getTimestampFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ if (timestampBuilder_ != null) {
+ return timestampBuilder_.getMessageOrBuilder();
+ } else {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getTimestampFieldBuilder() {
+ if (timestampBuilder_ == null) {
+ timestampBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getTimestamp(), getParentForChildren(), isClean());
+ timestamp_ = null;
+ }
+ return timestampBuilder_;
+ }
+
+ @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.ProfileStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ProfileStatus)
+ private static final com.google.privacy.dlp.v2.ProfileStatus DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ProfileStatus();
+ }
+
+ public static com.google.privacy.dlp.v2.ProfileStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ *
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ *
+ *
+ * + * Profiling status code and optional message + *+ * + *
.google.rpc.Status status = 1;
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return Whether the timestamp field is set.
+ */
+ boolean hasTimestamp();
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ *
+ * @return The timestamp.
+ */
+ com.google.protobuf.Timestamp getTimestamp();
+ /**
+ *
+ *
+ * + * Time when the profile generation status was updated + *+ * + *
.google.protobuf.Timestamp timestamp = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java
new file mode 100644
index 00000000..29266524
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java
@@ -0,0 +1,179 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * How broadly a resource has been shared. New items may be added over time. + * A higher number means more restricted. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.ResourceVisibility} + */ +public enum ResourceVisibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
RESOURCE_VISIBILITY_UNSPECIFIED = 0;
+ */
+ RESOURCE_VISIBILITY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Visible to any user. + *+ * + *
RESOURCE_VISIBILITY_PUBLIC = 10;
+ */
+ RESOURCE_VISIBILITY_PUBLIC(10),
+ /**
+ *
+ *
+ * + * Visible only to specific users. + *+ * + *
RESOURCE_VISIBILITY_RESTRICTED = 20;
+ */
+ RESOURCE_VISIBILITY_RESTRICTED(20),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
RESOURCE_VISIBILITY_UNSPECIFIED = 0;
+ */
+ public static final int RESOURCE_VISIBILITY_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Visible to any user. + *+ * + *
RESOURCE_VISIBILITY_PUBLIC = 10;
+ */
+ public static final int RESOURCE_VISIBILITY_PUBLIC_VALUE = 10;
+ /**
+ *
+ *
+ * + * Visible only to specific users. + *+ * + *
RESOURCE_VISIBILITY_RESTRICTED = 20;
+ */
+ public static final int RESOURCE_VISIBILITY_RESTRICTED_VALUE = 20;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ResourceVisibility valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ResourceVisibility forNumber(int value) {
+ switch (value) {
+ case 0:
+ return RESOURCE_VISIBILITY_UNSPECIFIED;
+ case 10:
+ return RESOURCE_VISIBILITY_PUBLIC;
+ case 20:
+ return RESOURCE_VISIBILITY_RESTRICTED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Score is a summary of all elements in the data profile. + * A higher number means more sensitive. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.SensitivityScore} + */ +public final class SensitivityScore extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.SensitivityScore) + SensitivityScoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use SensitivityScore.newBuilder() to construct. + private SensitivityScore(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SensitivityScore() { + score_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SensitivityScore(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SensitivityScore( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + score_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.SensitivityScore.class, + com.google.privacy.dlp.v2.SensitivityScore.Builder.class); + } + + /** + * + * + *
+ * Various score levels for resources. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel} + */ + public enum SensitivityScoreLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
SENSITIVITY_SCORE_UNSPECIFIED = 0;
+ */
+ SENSITIVITY_SCORE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * No sensitive information detected. Limited access. + *+ * + *
SENSITIVITY_LOW = 10;
+ */
+ SENSITIVITY_LOW(10),
+ /**
+ *
+ *
+ * + * Medium risk - PII, potentially sensitive data, or fields with free-text + * data that are at higher risk of having intermittent sensitive data. + * Consider limiting access. + *+ * + *
SENSITIVITY_MODERATE = 20;
+ */
+ SENSITIVITY_MODERATE(20),
+ /**
+ *
+ *
+ * + * High risk – SPII may be present. Exfiltration of data may lead to user + * data loss. Re-identification of users may be possible. Consider limiting + * usage and or removing SPII. + *+ * + *
SENSITIVITY_HIGH = 30;
+ */
+ SENSITIVITY_HIGH(30),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
SENSITIVITY_SCORE_UNSPECIFIED = 0;
+ */
+ public static final int SENSITIVITY_SCORE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * No sensitive information detected. Limited access. + *+ * + *
SENSITIVITY_LOW = 10;
+ */
+ public static final int SENSITIVITY_LOW_VALUE = 10;
+ /**
+ *
+ *
+ * + * Medium risk - PII, potentially sensitive data, or fields with free-text + * data that are at higher risk of having intermittent sensitive data. + * Consider limiting access. + *+ * + *
SENSITIVITY_MODERATE = 20;
+ */
+ public static final int SENSITIVITY_MODERATE_VALUE = 20;
+ /**
+ *
+ *
+ * + * High risk – SPII may be present. Exfiltration of data may lead to user + * data loss. Re-identification of users may be possible. Consider limiting + * usage and or removing SPII. + *+ * + *
SENSITIVITY_HIGH = 30;
+ */
+ public static final int SENSITIVITY_HIGH_VALUE = 30;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SensitivityScoreLevel valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static SensitivityScoreLevel forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SENSITIVITY_SCORE_UNSPECIFIED;
+ case 10:
+ return SENSITIVITY_LOW;
+ case 20:
+ return SENSITIVITY_MODERATE;
+ case 30:
+ return SENSITIVITY_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ @java.lang.Override
+ public int getScoreValue() {
+ return score_;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel getScore() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel result =
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel.valueOf(score_);
+ return result == null
+ ? com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (score_
+ != com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel
+ .SENSITIVITY_SCORE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, score_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (score_
+ != com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel
+ .SENSITIVITY_SCORE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, score_);
+ }
+ 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.SensitivityScore)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.SensitivityScore other =
+ (com.google.privacy.dlp.v2.SensitivityScore) obj;
+
+ if (score_ != other.score_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + score_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore 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.SensitivityScore parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore 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.SensitivityScore parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore 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.SensitivityScore parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore 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.SensitivityScore parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore 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.SensitivityScore 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.SensitivityScore 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.SensitivityScore 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;
+ }
+ /**
+ *
+ *
+ * + * Score is a summary of all elements in the data profile. + * A higher number means more sensitive. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.SensitivityScore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ @java.lang.Override
+ public int getScoreValue() {
+ return score_;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @param value The enum numeric value on the wire for score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScoreValue(int value) {
+
+ score_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The score.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel getScore() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel result =
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel.valueOf(score_);
+ return result == null
+ ? com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @param value The score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScore(
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ score_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearScore() {
+
+ score_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.SensitivityScore)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.SensitivityScore)
+ private static final com.google.privacy.dlp.v2.SensitivityScore DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.SensitivityScore();
+ }
+
+ public static com.google.privacy.dlp.v2.SensitivityScore getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The enum numeric value on the wire for score.
+ */
+ int getScoreValue();
+ /**
+ *
+ *
+ * + * The score applied to the resource. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;
+ *
+ * @return The score.
+ */
+ com.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel getScore();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java
new file mode 100644
index 00000000..993d8cca
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java
@@ -0,0 +1,6272 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ * + * The profile for a scanned table. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.TableDataProfile} + */ +public final class TableDataProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TableDataProfile) + TableDataProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableDataProfile.newBuilder() to construct. + private TableDataProfile(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TableDataProfile() { + name_ = ""; + projectDataProfile_ = ""; + datasetProjectId_ = ""; + datasetLocation_ = ""; + datasetId_ = ""; + tableId_ = ""; + fullResource_ = ""; + state_ = 0; + predictedInfoTypes_ = java.util.Collections.emptyList(); + otherInfoTypes_ = java.util.Collections.emptyList(); + encryptionStatus_ = 0; + resourceVisibility_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableDataProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableDataProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectDataProfile_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + fullResource_ = s; + break; + } + case 42: + { + com.google.privacy.dlp.v2.SensitivityScore.Builder subBuilder = null; + if (sensitivityScore_ != null) { + subBuilder = sensitivityScore_.toBuilder(); + } + sensitivityScore_ = + input.readMessage( + com.google.privacy.dlp.v2.SensitivityScore.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sensitivityScore_); + sensitivityScore_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.privacy.dlp.v2.DataRiskLevel.Builder subBuilder = null; + if (dataRiskLevel_ != null) { + subBuilder = dataRiskLevel_.toBuilder(); + } + dataRiskLevel_ = + input.readMessage( + com.google.privacy.dlp.v2.DataRiskLevel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataRiskLevel_); + dataRiskLevel_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder subBuilder = null; + if (configSnapshot_ != null) { + subBuilder = configSnapshot_.toBuilder(); + } + configSnapshot_ = + input.readMessage( + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSnapshot_); + configSnapshot_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastModifiedTime_ != null) { + subBuilder = lastModifiedTime_.toBuilder(); + } + lastModifiedTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastModifiedTime_); + lastModifiedTime_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expirationTime_ != null) { + subBuilder = expirationTime_.toBuilder(); + } + expirationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationTime_); + expirationTime_ = subBuilder.buildPartial(); + } + + break; + } + case 80: + { + scannedColumnCount_ = input.readInt64(); + break; + } + case 88: + { + failedColumnCount_ = input.readInt64(); + break; + } + case 96: + { + tableSizeBytes_ = input.readInt64(); + break; + } + case 104: + { + rowCount_ = input.readInt64(); + break; + } + case 112: + { + int rawValue = input.readEnum(); + + encryptionStatus_ = rawValue; + break; + } + case 120: + { + int rawValue = input.readEnum(); + + resourceVisibility_ = rawValue; + break; + } + case 130: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (profileLastGenerated_ != null) { + subBuilder = profileLastGenerated_.toBuilder(); + } + profileLastGenerated_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profileLastGenerated_); + profileLastGenerated_ = subBuilder.buildPartial(); + } + + break; + } + case 138: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry
+ * Possible states of a profile. New items may be added. + *+ * + * Protobuf enum {@code google.privacy.dlp.v2.TableDataProfile.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unused. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The profile is currently running. Once a profile has finished it will + * transition to DONE. + *+ * + *
RUNNING = 1;
+ */
+ RUNNING(1),
+ /**
+ *
+ *
+ * + * The profile is no longer generating. + * If profile_status.status.code is 0, the profile succeeded, otherwise, it + * failed. + *+ * + *
DONE = 2;
+ */
+ DONE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unused. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The profile is currently running. Once a profile has finished it will + * transition to DONE. + *+ * + *
RUNNING = 1;
+ */
+ public static final int RUNNING_VALUE = 1;
+ /**
+ *
+ *
+ * + * The profile is no longer generating. + * If profile_status.status.code is 0, the profile succeeded, otherwise, it + * failed. + *+ * + *
DONE = 2;
+ */
+ public static final int DONE_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return RUNNING;
+ case 2:
+ return DONE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_DATA_PROFILE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object projectDataProfile_;
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The projectDataProfile.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectDataProfile() {
+ java.lang.Object ref = projectDataProfile_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDataProfile_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The bytes for projectDataProfile.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectDataProfileBytes() {
+ java.lang.Object ref = projectDataProfile_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDataProfile_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATASET_PROJECT_ID_FIELD_NUMBER = 24;
+ private volatile java.lang.Object datasetProjectId_;
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The datasetProjectId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetProjectId() {
+ java.lang.Object ref = datasetProjectId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetProjectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The bytes for datasetProjectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetProjectIdBytes() {
+ java.lang.Object ref = datasetProjectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATASET_LOCATION_FIELD_NUMBER = 29;
+ private volatile java.lang.Object datasetLocation_;
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The datasetLocation.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetLocation() {
+ java.lang.Object ref = datasetLocation_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetLocation_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The bytes for datasetLocation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetLocationBytes() {
+ java.lang.Object ref = datasetLocation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATASET_ID_FIELD_NUMBER = 25;
+ private volatile java.lang.Object datasetId_;
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The datasetId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The bytes for datasetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_ID_FIELD_NUMBER = 26;
+ private volatile java.lang.Object tableId_;
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The tableId.
+ */
+ @java.lang.Override
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The bytes for tableId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FULL_RESOURCE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object fullResource_;
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The fullResource.
+ */
+ @java.lang.Override
+ public java.lang.String getFullResource() {
+ java.lang.Object ref = fullResource_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fullResource_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The bytes for fullResource.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFullResourceBytes() {
+ java.lang.Object ref = fullResource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fullResource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROFILE_STATUS_FIELD_NUMBER = 21;
+ private com.google.privacy.dlp.v2.ProfileStatus profileStatus_;
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return Whether the profileStatus field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfileStatus() {
+ return profileStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return The profileStatus.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() {
+ return profileStatus_ == null
+ ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()
+ : profileStatus_;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() {
+ return getProfileStatus();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 22;
+ private int state_;
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TableDataProfile.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TableDataProfile.State result =
+ com.google.privacy.dlp.v2.TableDataProfile.State.valueOf(state_);
+ return result == null ? com.google.privacy.dlp.v2.TableDataProfile.State.UNRECOGNIZED : result;
+ }
+
+ public static final int SENSITIVITY_SCORE_FIELD_NUMBER = 5;
+ private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_;
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return Whether the sensitivityScore field is set.
+ */
+ @java.lang.Override
+ public boolean hasSensitivityScore() {
+ return sensitivityScore_ != null;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return The sensitivityScore.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() {
+ return sensitivityScore_ == null
+ ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()
+ : sensitivityScore_;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() {
+ return getSensitivityScore();
+ }
+
+ public static final int DATA_RISK_LEVEL_FIELD_NUMBER = 6;
+ private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_;
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return Whether the dataRiskLevel field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataRiskLevel() {
+ return dataRiskLevel_ != null;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return The dataRiskLevel.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() {
+ return dataRiskLevel_ == null
+ ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()
+ : dataRiskLevel_;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() {
+ return getDataRiskLevel();
+ }
+
+ public static final int PREDICTED_INFO_TYPES_FIELD_NUMBER = 27;
+ private java.util.List+ * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ @java.lang.Override
+ public java.util.List+ * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder>
+ getPredictedInfoTypesOrBuilderList() {
+ return predictedInfoTypes_;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ @java.lang.Override
+ public int getPredictedInfoTypesCount() {
+ return predictedInfoTypes_.size();
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeSummary getPredictedInfoTypes(int index) {
+ return predictedInfoTypes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder getPredictedInfoTypesOrBuilder(
+ int index) {
+ return predictedInfoTypes_.get(index);
+ }
+
+ public static final int OTHER_INFO_TYPES_FIELD_NUMBER = 28;
+ private java.util.List+ * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ @java.lang.Override
+ public java.util.List+ * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder>
+ getOtherInfoTypesOrBuilderList() {
+ return otherInfoTypes_;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ @java.lang.Override
+ public int getOtherInfoTypesCount() {
+ return otherInfoTypes_.size();
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummary getOtherInfoTypes(int index) {
+ return otherInfoTypes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder getOtherInfoTypesOrBuilder(
+ int index) {
+ return otherInfoTypes_.get(index);
+ }
+
+ public static final int CONFIG_SNAPSHOT_FIELD_NUMBER = 7;
+ private com.google.privacy.dlp.v2.DataProfileConfigSnapshot configSnapshot_;
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return Whether the configSnapshot field is set.
+ */
+ @java.lang.Override
+ public boolean hasConfigSnapshot() {
+ return configSnapshot_ != null;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return The configSnapshot.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot() {
+ return configSnapshot_ == null
+ ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance()
+ : configSnapshot_;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder getConfigSnapshotOrBuilder() {
+ return getConfigSnapshot();
+ }
+
+ public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 8;
+ private com.google.protobuf.Timestamp lastModifiedTime_;
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return Whether the lastModifiedTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasLastModifiedTime() {
+ return lastModifiedTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return The lastModifiedTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getLastModifiedTime() {
+ return lastModifiedTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastModifiedTime_;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() {
+ return getLastModifiedTime();
+ }
+
+ public static final int EXPIRATION_TIME_FIELD_NUMBER = 9;
+ private com.google.protobuf.Timestamp expirationTime_;
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return Whether the expirationTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpirationTime() {
+ return expirationTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return The expirationTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpirationTime() {
+ return expirationTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expirationTime_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
+ return getExpirationTime();
+ }
+
+ public static final int SCANNED_COLUMN_COUNT_FIELD_NUMBER = 10;
+ private long scannedColumnCount_;
+ /**
+ *
+ *
+ * + * The number of columns profiled in the table. + *+ * + *
int64 scanned_column_count = 10;
+ *
+ * @return The scannedColumnCount.
+ */
+ @java.lang.Override
+ public long getScannedColumnCount() {
+ return scannedColumnCount_;
+ }
+
+ public static final int FAILED_COLUMN_COUNT_FIELD_NUMBER = 11;
+ private long failedColumnCount_;
+ /**
+ *
+ *
+ * + * The number of columns skipped in the table because of an error. + *+ * + *
int64 failed_column_count = 11;
+ *
+ * @return The failedColumnCount.
+ */
+ @java.lang.Override
+ public long getFailedColumnCount() {
+ return failedColumnCount_;
+ }
+
+ public static final int TABLE_SIZE_BYTES_FIELD_NUMBER = 12;
+ private long tableSizeBytes_;
+ /**
+ *
+ *
+ * + * The size of the table when the profile was generated. + *+ * + *
int64 table_size_bytes = 12;
+ *
+ * @return The tableSizeBytes.
+ */
+ @java.lang.Override
+ public long getTableSizeBytes() {
+ return tableSizeBytes_;
+ }
+
+ public static final int ROW_COUNT_FIELD_NUMBER = 13;
+ private long rowCount_;
+ /**
+ *
+ *
+ * + * Number of rows in the table when the profile was generated. + *+ * + *
int64 row_count = 13;
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public long getRowCount() {
+ return rowCount_;
+ }
+
+ public static final int ENCRYPTION_STATUS_FIELD_NUMBER = 14;
+ private int encryptionStatus_;
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The enum numeric value on the wire for encryptionStatus.
+ */
+ @java.lang.Override
+ public int getEncryptionStatusValue() {
+ return encryptionStatus_;
+ }
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The encryptionStatus.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.EncryptionStatus getEncryptionStatus() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.EncryptionStatus result =
+ com.google.privacy.dlp.v2.EncryptionStatus.valueOf(encryptionStatus_);
+ return result == null ? com.google.privacy.dlp.v2.EncryptionStatus.UNRECOGNIZED : result;
+ }
+
+ public static final int RESOURCE_VISIBILITY_FIELD_NUMBER = 15;
+ private int resourceVisibility_;
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The enum numeric value on the wire for resourceVisibility.
+ */
+ @java.lang.Override
+ public int getResourceVisibilityValue() {
+ return resourceVisibility_;
+ }
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The resourceVisibility.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.ResourceVisibility result =
+ com.google.privacy.dlp.v2.ResourceVisibility.valueOf(resourceVisibility_);
+ return result == null ? com.google.privacy.dlp.v2.ResourceVisibility.UNRECOGNIZED : result;
+ }
+
+ public static final int PROFILE_LAST_GENERATED_FIELD_NUMBER = 16;
+ private com.google.protobuf.Timestamp profileLastGenerated_;
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return Whether the profileLastGenerated field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfileLastGenerated() {
+ return profileLastGenerated_ != null;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return The profileLastGenerated.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getProfileLastGenerated() {
+ return profileLastGenerated_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : profileLastGenerated_;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() {
+ return getProfileLastGenerated();
+ }
+
+ public static final int RESOURCE_LABELS_FIELD_NUMBER = 17;
+
+ private static final class ResourceLabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public boolean containsResourceLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetResourceLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getResourceLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDataProfile_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectDataProfile_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fullResource_);
+ }
+ if (sensitivityScore_ != null) {
+ output.writeMessage(5, getSensitivityScore());
+ }
+ if (dataRiskLevel_ != null) {
+ output.writeMessage(6, getDataRiskLevel());
+ }
+ if (configSnapshot_ != null) {
+ output.writeMessage(7, getConfigSnapshot());
+ }
+ if (lastModifiedTime_ != null) {
+ output.writeMessage(8, getLastModifiedTime());
+ }
+ if (expirationTime_ != null) {
+ output.writeMessage(9, getExpirationTime());
+ }
+ if (scannedColumnCount_ != 0L) {
+ output.writeInt64(10, scannedColumnCount_);
+ }
+ if (failedColumnCount_ != 0L) {
+ output.writeInt64(11, failedColumnCount_);
+ }
+ if (tableSizeBytes_ != 0L) {
+ output.writeInt64(12, tableSizeBytes_);
+ }
+ if (rowCount_ != 0L) {
+ output.writeInt64(13, rowCount_);
+ }
+ if (encryptionStatus_
+ != com.google.privacy.dlp.v2.EncryptionStatus.ENCRYPTION_STATUS_UNSPECIFIED.getNumber()) {
+ output.writeEnum(14, encryptionStatus_);
+ }
+ if (resourceVisibility_
+ != com.google.privacy.dlp.v2.ResourceVisibility.RESOURCE_VISIBILITY_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(15, resourceVisibility_);
+ }
+ if (profileLastGenerated_ != null) {
+ output.writeMessage(16, getProfileLastGenerated());
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 17);
+ if (profileStatus_ != null) {
+ output.writeMessage(21, getProfileStatus());
+ }
+ if (state_ != com.google.privacy.dlp.v2.TableDataProfile.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(22, state_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(23, getCreateTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetProjectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 24, datasetProjectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 25, datasetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 26, tableId_);
+ }
+ for (int i = 0; i < predictedInfoTypes_.size(); i++) {
+ output.writeMessage(27, predictedInfoTypes_.get(i));
+ }
+ for (int i = 0; i < otherInfoTypes_.size(); i++) {
+ output.writeMessage(28, otherInfoTypes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetLocation_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 29, datasetLocation_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDataProfile_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectDataProfile_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fullResource_);
+ }
+ if (sensitivityScore_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSensitivityScore());
+ }
+ if (dataRiskLevel_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDataRiskLevel());
+ }
+ if (configSnapshot_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getConfigSnapshot());
+ }
+ if (lastModifiedTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastModifiedTime());
+ }
+ if (expirationTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpirationTime());
+ }
+ if (scannedColumnCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, scannedColumnCount_);
+ }
+ if (failedColumnCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, failedColumnCount_);
+ }
+ if (tableSizeBytes_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, tableSizeBytes_);
+ }
+ if (rowCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, rowCount_);
+ }
+ if (encryptionStatus_
+ != com.google.privacy.dlp.v2.EncryptionStatus.ENCRYPTION_STATUS_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, encryptionStatus_);
+ }
+ if (resourceVisibility_
+ != com.google.privacy.dlp.v2.ResourceVisibility.RESOURCE_VISIBILITY_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, resourceVisibility_);
+ }
+ if (profileLastGenerated_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(16, getProfileLastGenerated());
+ }
+ for (java.util.Map.Entry+ * The profile for a scanned table. + *+ * + * Protobuf type {@code google.privacy.dlp.v2.TableDataProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectDataProfile_ = "";
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The projectDataProfile.
+ */
+ public java.lang.String getProjectDataProfile() {
+ java.lang.Object ref = projectDataProfile_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDataProfile_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The bytes for projectDataProfile.
+ */
+ public com.google.protobuf.ByteString getProjectDataProfileBytes() {
+ java.lang.Object ref = projectDataProfile_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDataProfile_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @param value The projectDataProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDataProfile(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ projectDataProfile_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectDataProfile() {
+
+ projectDataProfile_ = getDefaultInstance().getProjectDataProfile();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @param value The bytes for projectDataProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDataProfileBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ projectDataProfile_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object datasetProjectId_ = "";
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The datasetProjectId.
+ */
+ public java.lang.String getDatasetProjectId() {
+ java.lang.Object ref = datasetProjectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetProjectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The bytes for datasetProjectId.
+ */
+ public com.google.protobuf.ByteString getDatasetProjectIdBytes() {
+ java.lang.Object ref = datasetProjectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @param value The datasetProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ datasetProjectId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetProjectId() {
+
+ datasetProjectId_ = getDefaultInstance().getDatasetProjectId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @param value The bytes for datasetProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ datasetProjectId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object datasetLocation_ = "";
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The datasetLocation.
+ */
+ public java.lang.String getDatasetLocation() {
+ java.lang.Object ref = datasetLocation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetLocation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The bytes for datasetLocation.
+ */
+ public com.google.protobuf.ByteString getDatasetLocationBytes() {
+ java.lang.Object ref = datasetLocation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @param value The datasetLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetLocation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ datasetLocation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetLocation() {
+
+ datasetLocation_ = getDefaultInstance().getDatasetLocation();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @param value The bytes for datasetLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetLocationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ datasetLocation_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object datasetId_ = "";
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The datasetId.
+ */
+ public java.lang.String getDatasetId() {
+ java.lang.Object ref = datasetId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The bytes for datasetId.
+ */
+ public com.google.protobuf.ByteString getDatasetIdBytes() {
+ java.lang.Object ref = datasetId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @param value The datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ datasetId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetId() {
+
+ datasetId_ = getDefaultInstance().getDatasetId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @param value The bytes for datasetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ datasetId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableId_ = "";
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The tableId.
+ */
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The bytes for tableId.
+ */
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @param value The tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ tableId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableId() {
+
+ tableId_ = getDefaultInstance().getTableId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @param value The bytes for tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ tableId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object fullResource_ = "";
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The fullResource.
+ */
+ public java.lang.String getFullResource() {
+ java.lang.Object ref = fullResource_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fullResource_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The bytes for fullResource.
+ */
+ public com.google.protobuf.ByteString getFullResourceBytes() {
+ java.lang.Object ref = fullResource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fullResource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @param value The fullResource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFullResource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fullResource_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFullResource() {
+
+ fullResource_ = getDefaultInstance().getFullResource();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @param value The bytes for fullResource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFullResourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fullResource_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.privacy.dlp.v2.ProfileStatus profileStatus_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ProfileStatus,
+ com.google.privacy.dlp.v2.ProfileStatus.Builder,
+ com.google.privacy.dlp.v2.ProfileStatusOrBuilder>
+ profileStatusBuilder_;
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return Whether the profileStatus field is set.
+ */
+ public boolean hasProfileStatus() {
+ return profileStatusBuilder_ != null || profileStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return The profileStatus.
+ */
+ public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() {
+ if (profileStatusBuilder_ == null) {
+ return profileStatus_ == null
+ ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()
+ : profileStatus_;
+ } else {
+ return profileStatusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public Builder setProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) {
+ if (profileStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ profileStatus_ = value;
+ onChanged();
+ } else {
+ profileStatusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public Builder setProfileStatus(
+ com.google.privacy.dlp.v2.ProfileStatus.Builder builderForValue) {
+ if (profileStatusBuilder_ == null) {
+ profileStatus_ = builderForValue.build();
+ onChanged();
+ } else {
+ profileStatusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) {
+ if (profileStatusBuilder_ == null) {
+ if (profileStatus_ != null) {
+ profileStatus_ =
+ com.google.privacy.dlp.v2.ProfileStatus.newBuilder(profileStatus_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ profileStatus_ = value;
+ }
+ onChanged();
+ } else {
+ profileStatusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public Builder clearProfileStatus() {
+ if (profileStatusBuilder_ == null) {
+ profileStatus_ = null;
+ onChanged();
+ } else {
+ profileStatus_ = null;
+ profileStatusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public com.google.privacy.dlp.v2.ProfileStatus.Builder getProfileStatusBuilder() {
+
+ onChanged();
+ return getProfileStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() {
+ if (profileStatusBuilder_ != null) {
+ return profileStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return profileStatus_ == null
+ ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()
+ : profileStatus_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ProfileStatus,
+ com.google.privacy.dlp.v2.ProfileStatus.Builder,
+ com.google.privacy.dlp.v2.ProfileStatusOrBuilder>
+ getProfileStatusFieldBuilder() {
+ if (profileStatusBuilder_ == null) {
+ profileStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ProfileStatus,
+ com.google.privacy.dlp.v2.ProfileStatus.Builder,
+ com.google.privacy.dlp.v2.ProfileStatusOrBuilder>(
+ getProfileStatus(), getParentForChildren(), isClean());
+ profileStatus_ = null;
+ }
+ return profileStatusBuilder_;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TableDataProfile.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TableDataProfile.State result =
+ com.google.privacy.dlp.v2.TableDataProfile.State.valueOf(state_);
+ return result == null
+ ? com.google.privacy.dlp.v2.TableDataProfile.State.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.privacy.dlp.v2.TableDataProfile.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.SensitivityScore,
+ com.google.privacy.dlp.v2.SensitivityScore.Builder,
+ com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>
+ sensitivityScoreBuilder_;
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return Whether the sensitivityScore field is set.
+ */
+ public boolean hasSensitivityScore() {
+ return sensitivityScoreBuilder_ != null || sensitivityScore_ != null;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return The sensitivityScore.
+ */
+ public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() {
+ if (sensitivityScoreBuilder_ == null) {
+ return sensitivityScore_ == null
+ ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()
+ : sensitivityScore_;
+ } else {
+ return sensitivityScoreBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) {
+ if (sensitivityScoreBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sensitivityScore_ = value;
+ onChanged();
+ } else {
+ sensitivityScoreBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public Builder setSensitivityScore(
+ com.google.privacy.dlp.v2.SensitivityScore.Builder builderForValue) {
+ if (sensitivityScoreBuilder_ == null) {
+ sensitivityScore_ = builderForValue.build();
+ onChanged();
+ } else {
+ sensitivityScoreBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) {
+ if (sensitivityScoreBuilder_ == null) {
+ if (sensitivityScore_ != null) {
+ sensitivityScore_ =
+ com.google.privacy.dlp.v2.SensitivityScore.newBuilder(sensitivityScore_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ sensitivityScore_ = value;
+ }
+ onChanged();
+ } else {
+ sensitivityScoreBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public Builder clearSensitivityScore() {
+ if (sensitivityScoreBuilder_ == null) {
+ sensitivityScore_ = null;
+ onChanged();
+ } else {
+ sensitivityScore_ = null;
+ sensitivityScoreBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() {
+
+ onChanged();
+ return getSensitivityScoreFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() {
+ if (sensitivityScoreBuilder_ != null) {
+ return sensitivityScoreBuilder_.getMessageOrBuilder();
+ } else {
+ return sensitivityScore_ == null
+ ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()
+ : sensitivityScore_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.SensitivityScore,
+ com.google.privacy.dlp.v2.SensitivityScore.Builder,
+ com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>
+ getSensitivityScoreFieldBuilder() {
+ if (sensitivityScoreBuilder_ == null) {
+ sensitivityScoreBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.SensitivityScore,
+ com.google.privacy.dlp.v2.SensitivityScore.Builder,
+ com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>(
+ getSensitivityScore(), getParentForChildren(), isClean());
+ sensitivityScore_ = null;
+ }
+ return sensitivityScoreBuilder_;
+ }
+
+ private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataRiskLevel,
+ com.google.privacy.dlp.v2.DataRiskLevel.Builder,
+ com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>
+ dataRiskLevelBuilder_;
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return Whether the dataRiskLevel field is set.
+ */
+ public boolean hasDataRiskLevel() {
+ return dataRiskLevelBuilder_ != null || dataRiskLevel_ != null;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return The dataRiskLevel.
+ */
+ public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() {
+ if (dataRiskLevelBuilder_ == null) {
+ return dataRiskLevel_ == null
+ ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()
+ : dataRiskLevel_;
+ } else {
+ return dataRiskLevelBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public Builder setDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) {
+ if (dataRiskLevelBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataRiskLevel_ = value;
+ onChanged();
+ } else {
+ dataRiskLevelBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public Builder setDataRiskLevel(
+ com.google.privacy.dlp.v2.DataRiskLevel.Builder builderForValue) {
+ if (dataRiskLevelBuilder_ == null) {
+ dataRiskLevel_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataRiskLevelBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) {
+ if (dataRiskLevelBuilder_ == null) {
+ if (dataRiskLevel_ != null) {
+ dataRiskLevel_ =
+ com.google.privacy.dlp.v2.DataRiskLevel.newBuilder(dataRiskLevel_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ dataRiskLevel_ = value;
+ }
+ onChanged();
+ } else {
+ dataRiskLevelBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public Builder clearDataRiskLevel() {
+ if (dataRiskLevelBuilder_ == null) {
+ dataRiskLevel_ = null;
+ onChanged();
+ } else {
+ dataRiskLevel_ = null;
+ dataRiskLevelBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public com.google.privacy.dlp.v2.DataRiskLevel.Builder getDataRiskLevelBuilder() {
+
+ onChanged();
+ return getDataRiskLevelFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() {
+ if (dataRiskLevelBuilder_ != null) {
+ return dataRiskLevelBuilder_.getMessageOrBuilder();
+ } else {
+ return dataRiskLevel_ == null
+ ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()
+ : dataRiskLevel_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataRiskLevel,
+ com.google.privacy.dlp.v2.DataRiskLevel.Builder,
+ com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>
+ getDataRiskLevelFieldBuilder() {
+ if (dataRiskLevelBuilder_ == null) {
+ dataRiskLevelBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataRiskLevel,
+ com.google.privacy.dlp.v2.DataRiskLevel.Builder,
+ com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>(
+ getDataRiskLevel(), getParentForChildren(), isClean());
+ dataRiskLevel_ = null;
+ }
+ return dataRiskLevelBuilder_;
+ }
+
+ private java.util.List+ * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public java.util.List+ * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public int getPredictedInfoTypesCount() {
+ if (predictedInfoTypesBuilder_ == null) {
+ return predictedInfoTypes_.size();
+ } else {
+ return predictedInfoTypesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeSummary getPredictedInfoTypes(int index) {
+ if (predictedInfoTypesBuilder_ == null) {
+ return predictedInfoTypes_.get(index);
+ } else {
+ return predictedInfoTypesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder setPredictedInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoTypeSummary value) {
+ if (predictedInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.set(index, value);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder setPredictedInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoTypeSummary.Builder builderForValue) {
+ if (predictedInfoTypesBuilder_ == null) {
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder addPredictedInfoTypes(com.google.privacy.dlp.v2.InfoTypeSummary value) {
+ if (predictedInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.add(value);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder addPredictedInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoTypeSummary value) {
+ if (predictedInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.add(index, value);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder addPredictedInfoTypes(
+ com.google.privacy.dlp.v2.InfoTypeSummary.Builder builderForValue) {
+ if (predictedInfoTypesBuilder_ == null) {
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder addPredictedInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoTypeSummary.Builder builderForValue) {
+ if (predictedInfoTypesBuilder_ == null) {
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder addAllPredictedInfoTypes(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.InfoTypeSummary> values) {
+ if (predictedInfoTypesBuilder_ == null) {
+ ensurePredictedInfoTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, predictedInfoTypes_);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder clearPredictedInfoTypes() {
+ if (predictedInfoTypesBuilder_ == null) {
+ predictedInfoTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public Builder removePredictedInfoTypes(int index) {
+ if (predictedInfoTypesBuilder_ == null) {
+ ensurePredictedInfoTypesIsMutable();
+ predictedInfoTypes_.remove(index);
+ onChanged();
+ } else {
+ predictedInfoTypesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeSummary.Builder getPredictedInfoTypesBuilder(
+ int index) {
+ return getPredictedInfoTypesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder getPredictedInfoTypesOrBuilder(
+ int index) {
+ if (predictedInfoTypesBuilder_ == null) {
+ return predictedInfoTypes_.get(index);
+ } else {
+ return predictedInfoTypesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder>
+ getPredictedInfoTypesOrBuilderList() {
+ if (predictedInfoTypesBuilder_ != null) {
+ return predictedInfoTypesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(predictedInfoTypes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeSummary.Builder addPredictedInfoTypesBuilder() {
+ return getPredictedInfoTypesFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.InfoTypeSummary.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeSummary.Builder addPredictedInfoTypesBuilder(
+ int index) {
+ return getPredictedInfoTypesFieldBuilder()
+ .addBuilder(index, com.google.privacy.dlp.v2.InfoTypeSummary.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ public java.util.List+ * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public java.util.List+ * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public int getOtherInfoTypesCount() {
+ if (otherInfoTypesBuilder_ == null) {
+ return otherInfoTypes_.size();
+ } else {
+ return otherInfoTypesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummary getOtherInfoTypes(int index) {
+ if (otherInfoTypesBuilder_ == null) {
+ return otherInfoTypes_.get(index);
+ } else {
+ return otherInfoTypesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder setOtherInfoTypes(
+ int index, com.google.privacy.dlp.v2.OtherInfoTypeSummary value) {
+ if (otherInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.set(index, value);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder setOtherInfoTypes(
+ int index, com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder builderForValue) {
+ if (otherInfoTypesBuilder_ == null) {
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder addOtherInfoTypes(com.google.privacy.dlp.v2.OtherInfoTypeSummary value) {
+ if (otherInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.add(value);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder addOtherInfoTypes(
+ int index, com.google.privacy.dlp.v2.OtherInfoTypeSummary value) {
+ if (otherInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.add(index, value);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder addOtherInfoTypes(
+ com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder builderForValue) {
+ if (otherInfoTypesBuilder_ == null) {
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder addOtherInfoTypes(
+ int index, com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder builderForValue) {
+ if (otherInfoTypesBuilder_ == null) {
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder addAllOtherInfoTypes(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.OtherInfoTypeSummary> values) {
+ if (otherInfoTypesBuilder_ == null) {
+ ensureOtherInfoTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, otherInfoTypes_);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder clearOtherInfoTypes() {
+ if (otherInfoTypesBuilder_ == null) {
+ otherInfoTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public Builder removeOtherInfoTypes(int index) {
+ if (otherInfoTypesBuilder_ == null) {
+ ensureOtherInfoTypesIsMutable();
+ otherInfoTypes_.remove(index);
+ onChanged();
+ } else {
+ otherInfoTypesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder getOtherInfoTypesBuilder(
+ int index) {
+ return getOtherInfoTypesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder getOtherInfoTypesOrBuilder(
+ int index) {
+ if (otherInfoTypesBuilder_ == null) {
+ return otherInfoTypes_.get(index);
+ } else {
+ return otherInfoTypesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder>
+ getOtherInfoTypesOrBuilderList() {
+ if (otherInfoTypesBuilder_ != null) {
+ return otherInfoTypesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(otherInfoTypes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder addOtherInfoTypesBuilder() {
+ return getOtherInfoTypesFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.OtherInfoTypeSummary.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder addOtherInfoTypesBuilder(
+ int index) {
+ return getOtherInfoTypesFieldBuilder()
+ .addBuilder(index, com.google.privacy.dlp.v2.OtherInfoTypeSummary.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ public java.util.List+ * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return Whether the configSnapshot field is set.
+ */
+ public boolean hasConfigSnapshot() {
+ return configSnapshotBuilder_ != null || configSnapshot_ != null;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return The configSnapshot.
+ */
+ public com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot() {
+ if (configSnapshotBuilder_ == null) {
+ return configSnapshot_ == null
+ ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance()
+ : configSnapshot_;
+ } else {
+ return configSnapshotBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public Builder setConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnapshot value) {
+ if (configSnapshotBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ configSnapshot_ = value;
+ onChanged();
+ } else {
+ configSnapshotBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public Builder setConfigSnapshot(
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder builderForValue) {
+ if (configSnapshotBuilder_ == null) {
+ configSnapshot_ = builderForValue.build();
+ onChanged();
+ } else {
+ configSnapshotBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public Builder mergeConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnapshot value) {
+ if (configSnapshotBuilder_ == null) {
+ if (configSnapshot_ != null) {
+ configSnapshot_ =
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot.newBuilder(configSnapshot_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ configSnapshot_ = value;
+ }
+ onChanged();
+ } else {
+ configSnapshotBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public Builder clearConfigSnapshot() {
+ if (configSnapshotBuilder_ == null) {
+ configSnapshot_ = null;
+ onChanged();
+ } else {
+ configSnapshot_ = null;
+ configSnapshotBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder getConfigSnapshotBuilder() {
+
+ onChanged();
+ return getConfigSnapshotFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ public com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder
+ getConfigSnapshotOrBuilder() {
+ if (configSnapshotBuilder_ != null) {
+ return configSnapshotBuilder_.getMessageOrBuilder();
+ } else {
+ return configSnapshot_ == null
+ ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance()
+ : configSnapshot_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot,
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder,
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder>
+ getConfigSnapshotFieldBuilder() {
+ if (configSnapshotBuilder_ == null) {
+ configSnapshotBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot,
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder,
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder>(
+ getConfigSnapshot(), getParentForChildren(), isClean());
+ configSnapshot_ = null;
+ }
+ return configSnapshotBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp lastModifiedTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ lastModifiedTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return Whether the lastModifiedTime field is set.
+ */
+ public boolean hasLastModifiedTime() {
+ return lastModifiedTimeBuilder_ != null || lastModifiedTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return The lastModifiedTime.
+ */
+ public com.google.protobuf.Timestamp getLastModifiedTime() {
+ if (lastModifiedTimeBuilder_ == null) {
+ return lastModifiedTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastModifiedTime_;
+ } else {
+ return lastModifiedTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public Builder setLastModifiedTime(com.google.protobuf.Timestamp value) {
+ if (lastModifiedTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ lastModifiedTime_ = value;
+ onChanged();
+ } else {
+ lastModifiedTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (lastModifiedTimeBuilder_ == null) {
+ lastModifiedTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ lastModifiedTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value) {
+ if (lastModifiedTimeBuilder_ == null) {
+ if (lastModifiedTime_ != null) {
+ lastModifiedTime_ =
+ com.google.protobuf.Timestamp.newBuilder(lastModifiedTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ lastModifiedTime_ = value;
+ }
+ onChanged();
+ } else {
+ lastModifiedTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public Builder clearLastModifiedTime() {
+ if (lastModifiedTimeBuilder_ == null) {
+ lastModifiedTime_ = null;
+ onChanged();
+ } else {
+ lastModifiedTime_ = null;
+ lastModifiedTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public com.google.protobuf.Timestamp.Builder getLastModifiedTimeBuilder() {
+
+ onChanged();
+ return getLastModifiedTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() {
+ if (lastModifiedTimeBuilder_ != null) {
+ return lastModifiedTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return lastModifiedTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastModifiedTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getLastModifiedTimeFieldBuilder() {
+ if (lastModifiedTimeBuilder_ == null) {
+ lastModifiedTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getLastModifiedTime(), getParentForChildren(), isClean());
+ lastModifiedTime_ = null;
+ }
+ return lastModifiedTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp expirationTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expirationTimeBuilder_;
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return Whether the expirationTime field is set.
+ */
+ public boolean hasExpirationTime() {
+ return expirationTimeBuilder_ != null || expirationTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return The expirationTime.
+ */
+ public com.google.protobuf.Timestamp getExpirationTime() {
+ if (expirationTimeBuilder_ == null) {
+ return expirationTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expirationTime_;
+ } else {
+ return expirationTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
+ if (expirationTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expirationTime_ = value;
+ onChanged();
+ } else {
+ expirationTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expirationTimeBuilder_ == null) {
+ expirationTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ expirationTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
+ if (expirationTimeBuilder_ == null) {
+ if (expirationTime_ != null) {
+ expirationTime_ =
+ com.google.protobuf.Timestamp.newBuilder(expirationTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expirationTime_ = value;
+ }
+ onChanged();
+ } else {
+ expirationTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public Builder clearExpirationTime() {
+ if (expirationTimeBuilder_ == null) {
+ expirationTime_ = null;
+ onChanged();
+ } else {
+ expirationTime_ = null;
+ expirationTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() {
+
+ onChanged();
+ return getExpirationTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
+ if (expirationTimeBuilder_ != null) {
+ return expirationTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expirationTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expirationTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpirationTimeFieldBuilder() {
+ if (expirationTimeBuilder_ == null) {
+ expirationTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpirationTime(), getParentForChildren(), isClean());
+ expirationTime_ = null;
+ }
+ return expirationTimeBuilder_;
+ }
+
+ private long scannedColumnCount_;
+ /**
+ *
+ *
+ * + * The number of columns profiled in the table. + *+ * + *
int64 scanned_column_count = 10;
+ *
+ * @return The scannedColumnCount.
+ */
+ @java.lang.Override
+ public long getScannedColumnCount() {
+ return scannedColumnCount_;
+ }
+ /**
+ *
+ *
+ * + * The number of columns profiled in the table. + *+ * + *
int64 scanned_column_count = 10;
+ *
+ * @param value The scannedColumnCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScannedColumnCount(long value) {
+
+ scannedColumnCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The number of columns profiled in the table. + *+ * + *
int64 scanned_column_count = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearScannedColumnCount() {
+
+ scannedColumnCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long failedColumnCount_;
+ /**
+ *
+ *
+ * + * The number of columns skipped in the table because of an error. + *+ * + *
int64 failed_column_count = 11;
+ *
+ * @return The failedColumnCount.
+ */
+ @java.lang.Override
+ public long getFailedColumnCount() {
+ return failedColumnCount_;
+ }
+ /**
+ *
+ *
+ * + * The number of columns skipped in the table because of an error. + *+ * + *
int64 failed_column_count = 11;
+ *
+ * @param value The failedColumnCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFailedColumnCount(long value) {
+
+ failedColumnCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The number of columns skipped in the table because of an error. + *+ * + *
int64 failed_column_count = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFailedColumnCount() {
+
+ failedColumnCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long tableSizeBytes_;
+ /**
+ *
+ *
+ * + * The size of the table when the profile was generated. + *+ * + *
int64 table_size_bytes = 12;
+ *
+ * @return The tableSizeBytes.
+ */
+ @java.lang.Override
+ public long getTableSizeBytes() {
+ return tableSizeBytes_;
+ }
+ /**
+ *
+ *
+ * + * The size of the table when the profile was generated. + *+ * + *
int64 table_size_bytes = 12;
+ *
+ * @param value The tableSizeBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableSizeBytes(long value) {
+
+ tableSizeBytes_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The size of the table when the profile was generated. + *+ * + *
int64 table_size_bytes = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableSizeBytes() {
+
+ tableSizeBytes_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long rowCount_;
+ /**
+ *
+ *
+ * + * Number of rows in the table when the profile was generated. + *+ * + *
int64 row_count = 13;
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public long getRowCount() {
+ return rowCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of rows in the table when the profile was generated. + *+ * + *
int64 row_count = 13;
+ *
+ * @param value The rowCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRowCount(long value) {
+
+ rowCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of rows in the table when the profile was generated. + *+ * + *
int64 row_count = 13;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRowCount() {
+
+ rowCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int encryptionStatus_ = 0;
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The enum numeric value on the wire for encryptionStatus.
+ */
+ @java.lang.Override
+ public int getEncryptionStatusValue() {
+ return encryptionStatus_;
+ }
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @param value The enum numeric value on the wire for encryptionStatus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEncryptionStatusValue(int value) {
+
+ encryptionStatus_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The encryptionStatus.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.EncryptionStatus getEncryptionStatus() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.EncryptionStatus result =
+ com.google.privacy.dlp.v2.EncryptionStatus.valueOf(encryptionStatus_);
+ return result == null ? com.google.privacy.dlp.v2.EncryptionStatus.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @param value The encryptionStatus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEncryptionStatus(com.google.privacy.dlp.v2.EncryptionStatus value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ encryptionStatus_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEncryptionStatus() {
+
+ encryptionStatus_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int resourceVisibility_ = 0;
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The enum numeric value on the wire for resourceVisibility.
+ */
+ @java.lang.Override
+ public int getResourceVisibilityValue() {
+ return resourceVisibility_;
+ }
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @param value The enum numeric value on the wire for resourceVisibility to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceVisibilityValue(int value) {
+
+ resourceVisibility_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The resourceVisibility.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.ResourceVisibility result =
+ com.google.privacy.dlp.v2.ResourceVisibility.valueOf(resourceVisibility_);
+ return result == null ? com.google.privacy.dlp.v2.ResourceVisibility.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @param value The resourceVisibility to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceVisibility(com.google.privacy.dlp.v2.ResourceVisibility value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resourceVisibility_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceVisibility() {
+
+ resourceVisibility_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp profileLastGenerated_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ profileLastGeneratedBuilder_;
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return Whether the profileLastGenerated field is set.
+ */
+ public boolean hasProfileLastGenerated() {
+ return profileLastGeneratedBuilder_ != null || profileLastGenerated_ != null;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return The profileLastGenerated.
+ */
+ public com.google.protobuf.Timestamp getProfileLastGenerated() {
+ if (profileLastGeneratedBuilder_ == null) {
+ return profileLastGenerated_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : profileLastGenerated_;
+ } else {
+ return profileLastGeneratedBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public Builder setProfileLastGenerated(com.google.protobuf.Timestamp value) {
+ if (profileLastGeneratedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ profileLastGenerated_ = value;
+ onChanged();
+ } else {
+ profileLastGeneratedBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public Builder setProfileLastGenerated(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (profileLastGeneratedBuilder_ == null) {
+ profileLastGenerated_ = builderForValue.build();
+ onChanged();
+ } else {
+ profileLastGeneratedBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) {
+ if (profileLastGeneratedBuilder_ == null) {
+ if (profileLastGenerated_ != null) {
+ profileLastGenerated_ =
+ com.google.protobuf.Timestamp.newBuilder(profileLastGenerated_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ profileLastGenerated_ = value;
+ }
+ onChanged();
+ } else {
+ profileLastGeneratedBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public Builder clearProfileLastGenerated() {
+ if (profileLastGeneratedBuilder_ == null) {
+ profileLastGenerated_ = null;
+ onChanged();
+ } else {
+ profileLastGenerated_ = null;
+ profileLastGeneratedBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public com.google.protobuf.Timestamp.Builder getProfileLastGeneratedBuilder() {
+
+ onChanged();
+ return getProfileLastGeneratedFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() {
+ if (profileLastGeneratedBuilder_ != null) {
+ return profileLastGeneratedBuilder_.getMessageOrBuilder();
+ } else {
+ return profileLastGenerated_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : profileLastGenerated_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getProfileLastGeneratedFieldBuilder() {
+ if (profileLastGeneratedBuilder_ == null) {
+ profileLastGeneratedBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getProfileLastGenerated(), getParentForChildren(), isClean());
+ profileLastGenerated_ = null;
+ }
+ return profileLastGeneratedBuilder_;
+ }
+
+ private com.google.protobuf.MapField+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public boolean containsResourceLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetResourceLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getResourceLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ public Builder removeResourceLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableResourceLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ public Builder putResourceLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableResourceLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ public Builder putAllResourceLabels(java.util.Map+ * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ @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.TableDataProfile)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TableDataProfile)
+ private static final com.google.privacy.dlp.v2.TableDataProfile DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TableDataProfile();
+ }
+
+ public static com.google.privacy.dlp.v2.TableDataProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The name of the profile. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The projectDataProfile.
+ */
+ java.lang.String getProjectDataProfile();
+ /**
+ *
+ *
+ * + * The resource name to the project data profile for this table. + *+ * + *
string project_data_profile = 2;
+ *
+ * @return The bytes for projectDataProfile.
+ */
+ com.google.protobuf.ByteString getProjectDataProfileBytes();
+
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The datasetProjectId.
+ */
+ java.lang.String getDatasetProjectId();
+ /**
+ *
+ *
+ * + * The GCP project ID that owns the BigQuery dataset. + *+ * + *
string dataset_project_id = 24;
+ *
+ * @return The bytes for datasetProjectId.
+ */
+ com.google.protobuf.ByteString getDatasetProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The datasetLocation.
+ */
+ java.lang.String getDatasetLocation();
+ /**
+ *
+ *
+ * + * The BigQuery location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + *+ * + *
string dataset_location = 29;
+ *
+ * @return The bytes for datasetLocation.
+ */
+ com.google.protobuf.ByteString getDatasetLocationBytes();
+
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The datasetId.
+ */
+ java.lang.String getDatasetId();
+ /**
+ *
+ *
+ * + * The BigQuery dataset ID. + *+ * + *
string dataset_id = 25;
+ *
+ * @return The bytes for datasetId.
+ */
+ com.google.protobuf.ByteString getDatasetIdBytes();
+
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The tableId.
+ */
+ java.lang.String getTableId();
+ /**
+ *
+ *
+ * + * The BigQuery table ID. + *+ * + *
string table_id = 26;
+ *
+ * @return The bytes for tableId.
+ */
+ com.google.protobuf.ByteString getTableIdBytes();
+
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The fullResource.
+ */
+ java.lang.String getFullResource();
+ /**
+ *
+ *
+ * + * The resource name of the table. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + *+ * + *
string full_resource = 3;
+ *
+ * @return The bytes for fullResource.
+ */
+ com.google.protobuf.ByteString getFullResourceBytes();
+
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return Whether the profileStatus field is set.
+ */
+ boolean hasProfileStatus();
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ *
+ * @return The profileStatus.
+ */
+ com.google.privacy.dlp.v2.ProfileStatus getProfileStatus();
+ /**
+ *
+ *
+ * + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + *+ * + *
.google.privacy.dlp.v2.ProfileStatus profile_status = 21;
+ */
+ com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder();
+
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * State of a profile. + *+ * + *
.google.privacy.dlp.v2.TableDataProfile.State state = 22;
+ *
+ * @return The state.
+ */
+ com.google.privacy.dlp.v2.TableDataProfile.State getState();
+
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return Whether the sensitivityScore field is set.
+ */
+ boolean hasSensitivityScore();
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ *
+ * @return The sensitivityScore.
+ */
+ com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore();
+ /**
+ *
+ *
+ * + * The sensitivity score of this table. + *+ * + *
.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
+ */
+ com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder();
+
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return Whether the dataRiskLevel field is set.
+ */
+ boolean hasDataRiskLevel();
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ *
+ * @return The dataRiskLevel.
+ */
+ com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel();
+ /**
+ *
+ *
+ * + * The data risk level of this table. + *+ * + *
.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
+ */
+ com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder();
+
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ java.util.List+ * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ com.google.privacy.dlp.v2.InfoTypeSummary getPredictedInfoTypes(int index);
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ int getPredictedInfoTypesCount();
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ java.util.List extends com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder>
+ getPredictedInfoTypesOrBuilderList();
+ /**
+ *
+ *
+ * + * The infoTypes predicted from this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
+ */
+ com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder getPredictedInfoTypesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ java.util.List+ * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ com.google.privacy.dlp.v2.OtherInfoTypeSummary getOtherInfoTypes(int index);
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ int getOtherInfoTypesCount();
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ java.util.List extends com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder>
+ getOtherInfoTypesOrBuilderList();
+ /**
+ *
+ *
+ * + * Other infoTypes found in this table's data. + *+ * + *
repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
+ */
+ com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder getOtherInfoTypesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return Whether the configSnapshot field is set.
+ */
+ boolean hasConfigSnapshot();
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ *
+ * @return The configSnapshot.
+ */
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot();
+ /**
+ *
+ *
+ * + * The snapshot of the configurations used to generate the profile. + *+ * + *
.google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
+ */
+ com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder getConfigSnapshotOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return Whether the lastModifiedTime field is set.
+ */
+ boolean hasLastModifiedTime();
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ *
+ * @return The lastModifiedTime.
+ */
+ com.google.protobuf.Timestamp getLastModifiedTime();
+ /**
+ *
+ *
+ * + * The time when this table was last modified + *+ * + *
.google.protobuf.Timestamp last_modified_time = 8;
+ */
+ com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return Whether the expirationTime field is set.
+ */
+ boolean hasExpirationTime();
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ *
+ * @return The expirationTime.
+ */
+ com.google.protobuf.Timestamp getExpirationTime();
+ /**
+ *
+ *
+ * + * Optional. The time when this table expires. + *+ * + *
.google.protobuf.Timestamp expiration_time = 9;
+ */
+ com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The number of columns profiled in the table. + *+ * + *
int64 scanned_column_count = 10;
+ *
+ * @return The scannedColumnCount.
+ */
+ long getScannedColumnCount();
+
+ /**
+ *
+ *
+ * + * The number of columns skipped in the table because of an error. + *+ * + *
int64 failed_column_count = 11;
+ *
+ * @return The failedColumnCount.
+ */
+ long getFailedColumnCount();
+
+ /**
+ *
+ *
+ * + * The size of the table when the profile was generated. + *+ * + *
int64 table_size_bytes = 12;
+ *
+ * @return The tableSizeBytes.
+ */
+ long getTableSizeBytes();
+
+ /**
+ *
+ *
+ * + * Number of rows in the table when the profile was generated. + *+ * + *
int64 row_count = 13;
+ *
+ * @return The rowCount.
+ */
+ long getRowCount();
+
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The enum numeric value on the wire for encryptionStatus.
+ */
+ int getEncryptionStatusValue();
+ /**
+ *
+ *
+ * + * How the table is encrypted. + *+ * + *
.google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
+ *
+ * @return The encryptionStatus.
+ */
+ com.google.privacy.dlp.v2.EncryptionStatus getEncryptionStatus();
+
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The enum numeric value on the wire for resourceVisibility.
+ */
+ int getResourceVisibilityValue();
+ /**
+ *
+ *
+ * + * How broadly a resource has been shared. + *+ * + *
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
+ *
+ * @return The resourceVisibility.
+ */
+ com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility();
+
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return Whether the profileLastGenerated field is set.
+ */
+ boolean hasProfileLastGenerated();
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ *
+ * @return The profileLastGenerated.
+ */
+ com.google.protobuf.Timestamp getProfileLastGenerated();
+ /**
+ *
+ *
+ * + * The last time the profile was generated. + *+ * + *
.google.protobuf.Timestamp profile_last_generated = 16;
+ */
+ com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder();
+
+ /**
+ *
+ *
+ * + * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ int getResourceLabelsCount();
+ /**
+ *
+ *
+ * + * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ boolean containsResourceLabels(java.lang.String key);
+ /** Use {@link #getResourceLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ java.util.Map+ * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * The labels applied to the resource at the time the profile was generated. + *+ * + *
map<string, string> resource_labels = 17;
+ */
+ java.lang.String getResourceLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * The time at which the table was created. + *+ * + *
.google.protobuf.Timestamp create_time = 23;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
index 03776b0b..89d0247e 100644
--- a/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
+++ b/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
@@ -3586,6 +3586,134 @@ message InspectJobConfig {
repeated Action actions = 4;
}
+// A task to execute when a data profile has been generated.
+message DataProfileAction {
+ // If set, the detailed data profiles will be persisted to the location
+ // of your choice whenever updated.
+ message Export {
+ // Store all table and column profiles in an existing table or a new table
+ // in an existing dataset. Each re-generation will result in a new row in
+ // BigQuery.
+ BigQueryTable profile_table = 1;
+ }
+
+ // Send a Pub/Sub message into the given Pub/Sub topic to connect other
+ // systems to data profile generation. The message payload data will
+ // be the byte serialization of `DataProfilePubSubMessage`.
+ message PubSubNotification {
+ // The levels of detail that can be included in the Pub/Sub message.
+ enum DetailLevel {
+ // Unused.
+ DETAIL_LEVEL_UNSPECIFIED = 0;
+
+ // The full table data profile.
+ TABLE_PROFILE = 1;
+
+ // The resource name of the table.
+ RESOURCE_NAME = 2;
+ }
+
+ // Cloud Pub/Sub topic to send notifications to.
+ // Format is projects/{project}/topics/{topic}.
+ string topic = 1;
+
+ // The type of event that triggers a Pub/Sub. At most one
+ // `PubSubNotification` per EventType is permitted.
+ EventType event = 2;
+
+ // Conditions (e.g., data risk or sensitivity level) for triggering a
+ // Pub/Sub.
+ DataProfilePubSubCondition pubsub_condition = 3;
+
+ // How much data to include in the Pub/Sub message. If the user wishes to
+ // limit the size of the message, they can use resource_name and fetch the
+ // profile fields they wish to. Per table profile (not per column).
+ DetailLevel detail_of_message = 4;
+ }
+
+ // Types of event that can trigger an action.
+ enum EventType {
+ // Unused.
+ EVENT_TYPE_UNSPECIFIED = 0;
+
+ // New profile (not a re-profile).
+ NEW_PROFILE = 1;
+
+ // Changed one of the following profile metrics:
+ // * Table data risk score
+ // * Table sensitivity score
+ // * Table resource visibility
+ // * Table encryption type
+ // * Table predicted infoTypes
+ // * Table other infoTypes
+ CHANGED_PROFILE = 2;
+
+ // Table data risk score or sensitivity score increased.
+ SCORE_INCREASED = 3;
+
+ // A user (non-internal) error occurred.
+ ERROR_CHANGED = 4;
+ }
+
+ oneof action {
+ // Export data profiles into a provided location.
+ Export export_data = 1;
+
+ // Publish a message into the Pub/Sub topic.
+ PubSubNotification pub_sub_notification = 2;
+ }
+}
+
+// Configuration for setting up a job to scan resources for profile generation.
+// Only one data profile configuration may exist per organization, folder,
+// or project.
+//
+// The generated data profiles are retained according to the
+// [data retention policy]
+// (https://cloud.google.com/dlp/docs/data-profiles#retention).
+message DataProfileJobConfig {
+ // The data to scan.
+ DataProfileLocation location = 1;
+
+ // The project that will run the scan. The DLP service
+ // account that exists within this project must have access to all resources
+ // that are profiled, and the Cloud DLP API must be enabled.
+ string project_id = 5;
+
+ // Detection logic for profile generation.
+ //
+ // Not all template features are used by profiles. FindingLimits,
+ // include_quote and exclude_info_types have no impact on
+ // data profiling.
+ //
+ // Multiple templates may be provided if there is data in multiple regions.
+ // At most one template must be specified per-region (including "global").
+ // Each region is scanned using the applicable template. If no region-specific
+ // template is specified, but a "global" template is specified, it will be
+ // copied to that region and used instead. If no global or region-specific
+ // template is provided for a region with data, that region's data will not be
+ // scanned.
+ //
+ // For more information, see
+ // https://cloud.google.com/dlp/docs/data-profiles#data_residency.
+ repeated string inspect_templates = 7;
+
+ // Actions to execute at the completion of the job.
+ repeated DataProfileAction data_profile_actions = 6;
+}
+
+// The data that will be profiled.
+message DataProfileLocation {
+ // The location to be scanned.
+ oneof location {
+ // The ID of an organization to scan.
+ int64 organization_id = 1;
+
+ // The ID of the Folder within an organization to scan.
+ int64 folder_id = 2;
+ }
+}
+
// Combines all of the information about a DLP job.
message DlpJob {
option (google.api.resource) = {
@@ -4425,3 +4553,274 @@ enum StoredInfoTypeState {
// use the `UpdateStoredInfoType` method to create a new version.
INVALID = 4;
}
+
+// Score is a summary of all elements in the data profile.
+// A higher number means more sensitive.
+message SensitivityScore {
+ // Various score levels for resources.
+ enum SensitivityScoreLevel {
+ // Unused.
+ SENSITIVITY_SCORE_UNSPECIFIED = 0;
+
+ // No sensitive information detected. Limited access.
+ SENSITIVITY_LOW = 10;
+
+ // Medium risk - PII, potentially sensitive data, or fields with free-text
+ // data that are at higher risk of having intermittent sensitive data.
+ // Consider limiting access.
+ SENSITIVITY_MODERATE = 20;
+
+ // High risk – SPII may be present. Exfiltration of data may lead to user
+ // data loss. Re-identification of users may be possible. Consider limiting
+ // usage and or removing SPII.
+ SENSITIVITY_HIGH = 30;
+ }
+
+ // The score applied to the resource.
+ SensitivityScoreLevel score = 1;
+}
+
+// Score is a summary of all elements in the data profile.
+// A higher number means more risky.
+message DataRiskLevel {
+ // Various score levels for resources.
+ enum DataRiskLevelScore {
+ // Unused.
+ RISK_SCORE_UNSPECIFIED = 0;
+
+ // Low risk - Lower indication of sensitive data that appears to have
+ // additional access restrictions in place or no indication of sensitive
+ // data found.
+ RISK_LOW = 10;
+
+ // Medium risk - Sensitive data may be present but additional access or fine
+ // grain access restrictions appears to be present. Consider limiting
+ // access even further or transforming data to mask.
+ RISK_MODERATE = 20;
+
+ // High risk – SPII may be present. Access controls may include public
+ // ACLs. Exfiltration of data may lead to user data loss. Re-identification
+ // of users may be possible. Consider limiting usage and or removing SPII.
+ RISK_HIGH = 30;
+ }
+
+ // The score applied to the resource.
+ DataRiskLevelScore score = 1;
+}
+
+// How broadly a resource has been shared. New items may be added over time.
+// A higher number means more restricted.
+enum ResourceVisibility {
+ // Unused.
+ RESOURCE_VISIBILITY_UNSPECIFIED = 0;
+
+ // Visible to any user.
+ RESOURCE_VISIBILITY_PUBLIC = 10;
+
+ // Visible only to specific users.
+ RESOURCE_VISIBILITY_RESTRICTED = 20;
+}
+
+// Snapshot of the configurations used to generate the profile.
+message DataProfileConfigSnapshot {
+ // A copy of the inspection config used to generate this profile. This
+ // is a copy of the inspect_template specified in `DataProfileJobConfig`.
+ InspectConfig inspect_config = 2;
+
+ // A copy of the configuration used to generate this profile.
+ DataProfileJobConfig data_profile_job = 3;
+}
+
+// The profile for a scanned table.
+message TableDataProfile {
+ // Possible states of a profile. New items may be added.
+ enum State {
+ // Unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The profile is currently running. Once a profile has finished it will
+ // transition to DONE.
+ RUNNING = 1;
+
+ // The profile is no longer generating.
+ // If profile_status.status.code is 0, the profile succeeded, otherwise, it
+ // failed.
+ DONE = 2;
+ }
+
+ // The name of the profile.
+ string name = 1;
+
+ // The resource name to the project data profile for this table.
+ string project_data_profile = 2;
+
+ // The GCP project ID that owns the BigQuery dataset.
+ string dataset_project_id = 24;
+
+ // The BigQuery location where the dataset's data is stored.
+ // See https://cloud.google.com/bigquery/docs/locations for supported
+ // locations.
+ string dataset_location = 29;
+
+ // The BigQuery dataset ID.
+ string dataset_id = 25;
+
+ // The BigQuery table ID.
+ string table_id = 26;
+
+ // The resource name of the table.
+ // https://cloud.google.com/apis/design/resource_names#full_resource_name
+ string full_resource = 3;
+
+ // Success or error status from the most recent profile generation attempt.
+ // May be empty if the profile is still being generated.
+ ProfileStatus profile_status = 21;
+
+ // State of a profile.
+ State state = 22;
+
+ // The sensitivity score of this table.
+ SensitivityScore sensitivity_score = 5;
+
+ // The data risk level of this table.
+ DataRiskLevel data_risk_level = 6;
+
+ // The infoTypes predicted from this table's data.
+ repeated InfoTypeSummary predicted_info_types = 27;
+
+ // Other infoTypes found in this table's data.
+ repeated OtherInfoTypeSummary other_info_types = 28;
+
+ // The snapshot of the configurations used to generate the profile.
+ DataProfileConfigSnapshot config_snapshot = 7;
+
+ // The time when this table was last modified
+ google.protobuf.Timestamp last_modified_time = 8;
+
+ // Optional. The time when this table expires.
+ google.protobuf.Timestamp expiration_time = 9;
+
+ // The number of columns profiled in the table.
+ int64 scanned_column_count = 10;
+
+ // The number of columns skipped in the table because of an error.
+ int64 failed_column_count = 11;
+
+ // The size of the table when the profile was generated.
+ int64 table_size_bytes = 12;
+
+ // Number of rows in the table when the profile was generated.
+ int64 row_count = 13;
+
+ // How the table is encrypted.
+ EncryptionStatus encryption_status = 14;
+
+ // How broadly a resource has been shared.
+ ResourceVisibility resource_visibility = 15;
+
+ // The last time the profile was generated.
+ google.protobuf.Timestamp profile_last_generated = 16;
+
+ // The labels applied to the resource at the time the profile was generated.
+ map