From 4dfd2220cc08eec5d28b27093ec3dff6364692a9 Mon Sep 17 00:00:00 2001 From: Jesse Lovelace Date: Wed, 26 Sep 2018 16:08:35 -0700 Subject: [PATCH] Regenerate clients --- .../privacy/dlp/v2/CloudStorageOptions.java | 92 +- .../dlp/v2/CloudStorageOptionsOrBuilder.java | 12 + .../google/privacy/dlp/v2/CustomInfoType.java | 368 +++- .../dlp/v2/CustomInfoTypeOrBuilder.java | 43 +- .../com/google/privacy/dlp/v2/DlpJobType.java | 2 +- .../com/google/privacy/dlp/v2/DlpProto.java | 1811 +++++++++-------- .../com/google/privacy/dlp/v2/DlpStorage.java | 187 +- .../privacy/dlp/v2/ExcludeInfoTypes.java | 1020 ++++++++++ .../dlp/v2/ExcludeInfoTypesOrBuilder.java | 88 + .../google/privacy/dlp/v2/ExclusionRule.java | 1361 +++++++++++++ .../dlp/v2/ExclusionRuleOrBuilder.java | 103 + .../privacy/dlp/v2/InfoTypeSupportedBy.java | 2 +- .../google/privacy/dlp/v2/InspectConfig.java | 481 +++++ .../dlp/v2/InspectConfigOrBuilder.java | 54 + .../google/privacy/dlp/v2/InspectionRule.java | 996 +++++++++ .../dlp/v2/InspectionRuleOrBuilder.java | 61 + .../privacy/dlp/v2/InspectionRuleSet.java | 1296 ++++++++++++ .../dlp/v2/InspectionRuleSetOrBuilder.java | 97 + .../v2/ListDeidentifyTemplatesRequest.java | 218 ++ ...stDeidentifyTemplatesRequestOrBuilder.java | 36 + .../dlp/v2/ListInspectTemplatesRequest.java | 218 ++ .../ListInspectTemplatesRequestOrBuilder.java | 36 + .../dlp/v2/ListJobTriggersRequest.java | 42 +- .../v2/ListJobTriggersRequestOrBuilder.java | 12 +- .../dlp/v2/ListStoredInfoTypesRequest.java | 225 ++ .../ListStoredInfoTypesRequestOrBuilder.java | 38 + .../google/privacy/dlp/v2/MatchingType.java | 177 ++ .../privacy/dlp/v2/RelationalOperator.java | 2 +- .../privacy/dlp/v2/StoredInfoTypeState.java | 2 +- .../proto/google/privacy/dlp/v2/dlp.proto | 142 +- .../proto/google/privacy/dlp/v2/storage.proto | 37 +- 31 files changed, 8201 insertions(+), 1058 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypesOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRule.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRuleOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRule.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSet.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSetOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java index 15d6e78291f0..88faf51da57c 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java @@ -5,8 +5,8 @@ /** *
- * Options defining a file or a set of files (path ending with *) within
- * a Google Cloud Storage bucket.
+ * Options defining a file or a set of files within a Google Cloud Storage
+ * bucket.
  * 
* * Protobuf type {@code google.privacy.dlp.v2.CloudStorageOptions} @@ -281,8 +281,8 @@ public interface FileSetOrBuilder extends /** *
-     * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-     * path is allowed.
+     * The Cloud Storage url of the file(s) to scan, in the format
+     * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      * 
* * string url = 1; @@ -290,8 +290,8 @@ public interface FileSetOrBuilder extends java.lang.String getUrl(); /** *
-     * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-     * path is allowed.
+     * The Cloud Storage url of the file(s) to scan, in the format
+     * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      * 
* * string url = 1; @@ -385,8 +385,8 @@ private FileSet( private volatile java.lang.Object url_; /** *
-     * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-     * path is allowed.
+     * The Cloud Storage url of the file(s) to scan, in the format
+     * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      * 
* * string url = 1; @@ -405,8 +405,8 @@ public java.lang.String getUrl() { } /** *
-     * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-     * path is allowed.
+     * The Cloud Storage url of the file(s) to scan, in the format
+     * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      * 
* * string url = 1; @@ -735,8 +735,8 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** *
-       * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-       * path is allowed.
+       * The Cloud Storage url of the file(s) to scan, in the format
+       * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
        * 
* * string url = 1; @@ -755,8 +755,8 @@ public java.lang.String getUrl() { } /** *
-       * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-       * path is allowed.
+       * The Cloud Storage url of the file(s) to scan, in the format
+       * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
        * 
* * string url = 1; @@ -776,8 +776,8 @@ public java.lang.String getUrl() { } /** *
-       * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-       * path is allowed.
+       * The Cloud Storage url of the file(s) to scan, in the format
+       * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
        * 
* * string url = 1; @@ -794,8 +794,8 @@ public Builder setUrl( } /** *
-       * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-       * path is allowed.
+       * The Cloud Storage url of the file(s) to scan, in the format
+       * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
        * 
* * string url = 1; @@ -808,8 +808,8 @@ public Builder clearUrl() { } /** *
-       * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
-       * path is allowed.
+       * The Cloud Storage url of the file(s) to scan, in the format
+       * `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
        * 
* * string url = 1; @@ -882,18 +882,30 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet getDefaultInstanceF public static final int FILE_SET_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.CloudStorageOptions.FileSet fileSet_; /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public boolean hasFileSet() { return fileSet_ != null; } /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet getFileSet() { return fileSet_ == null ? com.google.privacy.dlp.v2.CloudStorageOptions.FileSet.getDefaultInstance() : fileSet_; } /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder() { @@ -1271,8 +1283,8 @@ protected Builder newBuilderForType( } /** *
-   * Options defining a file or a set of files (path ending with *) within
-   * a Google Cloud Storage bucket.
+   * Options defining a file or a set of files within a Google Cloud Storage
+   * bucket.
    * 
* * Protobuf type {@code google.privacy.dlp.v2.CloudStorageOptions} @@ -1478,12 +1490,20 @@ public Builder mergeFrom( private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.CloudStorageOptions.FileSet, com.google.privacy.dlp.v2.CloudStorageOptions.FileSet.Builder, com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder> fileSetBuilder_; /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public boolean hasFileSet() { return fileSetBuilder_ != null || fileSet_ != null; } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet getFileSet() { @@ -1494,6 +1514,10 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet getFileSet() { } } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public Builder setFileSet(com.google.privacy.dlp.v2.CloudStorageOptions.FileSet value) { @@ -1510,6 +1534,10 @@ public Builder setFileSet(com.google.privacy.dlp.v2.CloudStorageOptions.FileSet return this; } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public Builder setFileSet( @@ -1524,6 +1552,10 @@ public Builder setFileSet( return this; } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public Builder mergeFileSet(com.google.privacy.dlp.v2.CloudStorageOptions.FileSet value) { @@ -1542,6 +1574,10 @@ public Builder mergeFileSet(com.google.privacy.dlp.v2.CloudStorageOptions.FileSe return this; } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public Builder clearFileSet() { @@ -1556,6 +1592,10 @@ public Builder clearFileSet() { return this; } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet.Builder getFileSetBuilder() { @@ -1564,6 +1604,10 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSet.Builder getFileSetB return getFileSetFieldBuilder().getBuilder(); } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder() { @@ -1575,6 +1619,10 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSet } } /** + *
+     * The set of one or more files to scan.
+     * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java index 3feb90a40652..a2040d0427ef 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java @@ -8,14 +8,26 @@ public interface CloudStorageOptionsOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ boolean hasFileSet(); /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ com.google.privacy.dlp.v2.CloudStorageOptions.FileSet getFileSet(); /** + *
+   * The set of one or more files to scan.
+   * 
+ * * .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; */ com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java index 8eed31fa81c7..811d84ce42ea 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java @@ -23,6 +23,7 @@ private CustomInfoType(com.google.protobuf.GeneratedMessageV3.Builder builder private CustomInfoType() { likelihood_ = 0; detectionRules_ = java.util.Collections.emptyList(); + exclusionType_ = 0; } @java.lang.Override @@ -133,6 +134,12 @@ private CustomInfoType( input.readMessage(com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.parser(), extensionRegistry)); break; } + case 64: { + int rawValue = input.readEnum(); + + exclusionType_ = rawValue; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -168,6 +175,122 @@ private CustomInfoType( com.google.privacy.dlp.v2.CustomInfoType.class, com.google.privacy.dlp.v2.CustomInfoType.Builder.class); } + /** + * Protobuf enum {@code google.privacy.dlp.v2.CustomInfoType.ExclusionType} + */ + public enum ExclusionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * A finding of this custom info type will not be excluded from results.
+     * 
+ * + * EXCLUSION_TYPE_UNSPECIFIED = 0; + */ + EXCLUSION_TYPE_UNSPECIFIED(0), + /** + *
+     * A finding of this custom info type will be excluded from final results,
+     * but can still affect rule execution.
+     * 
+ * + * EXCLUSION_TYPE_EXCLUDE = 1; + */ + EXCLUSION_TYPE_EXCLUDE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * A finding of this custom info type will not be excluded from results.
+     * 
+ * + * EXCLUSION_TYPE_UNSPECIFIED = 0; + */ + public static final int EXCLUSION_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * A finding of this custom info type will be excluded from final results,
+     * but can still affect rule execution.
+     * 
+ * + * EXCLUSION_TYPE_EXCLUDE = 1; + */ + public static final int EXCLUSION_TYPE_EXCLUDE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExclusionType valueOf(int value) { + return forNumber(value); + } + + public static ExclusionType forNumber(int value) { + switch (value) { + case 0: return EXCLUSION_TYPE_UNSPECIFIED; + case 1: return EXCLUSION_TYPE_EXCLUDE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExclusionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExclusionType findValueByNumber(int number) { + return ExclusionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.privacy.dlp.v2.CustomInfoType.getDescriptor().getEnumTypes().get(0); + } + + private static final ExclusionType[] VALUES = values(); + + public static ExclusionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExclusionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.CustomInfoType.ExclusionType) + } + public interface DictionaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.CustomInfoType.Dictionary) com.google.protobuf.MessageOrBuilder { @@ -1988,7 +2111,9 @@ public interface RegexOrBuilder extends /** *
-     * Pattern defining the regular expression.
+     * Pattern defining the regular expression. Its syntax
+     * (https://github.com/google/re2/wiki/Syntax) can be found under the
+     * google/re2 repository on GitHub.
      * 
* * string pattern = 1; @@ -1996,7 +2121,9 @@ public interface RegexOrBuilder extends java.lang.String getPattern(); /** *
-     * Pattern defining the regular expression.
+     * Pattern defining the regular expression. Its syntax
+     * (https://github.com/google/re2/wiki/Syntax) can be found under the
+     * google/re2 repository on GitHub.
      * 
* * string pattern = 1; @@ -2090,7 +2217,9 @@ private Regex( private volatile java.lang.Object pattern_; /** *
-     * Pattern defining the regular expression.
+     * Pattern defining the regular expression. Its syntax
+     * (https://github.com/google/re2/wiki/Syntax) can be found under the
+     * google/re2 repository on GitHub.
      * 
* * string pattern = 1; @@ -2109,7 +2238,9 @@ public java.lang.String getPattern() { } /** *
-     * Pattern defining the regular expression.
+     * Pattern defining the regular expression. Its syntax
+     * (https://github.com/google/re2/wiki/Syntax) can be found under the
+     * google/re2 repository on GitHub.
      * 
* * string pattern = 1; @@ -2438,7 +2569,9 @@ public Builder mergeFrom( private java.lang.Object pattern_ = ""; /** *
-       * Pattern defining the regular expression.
+       * Pattern defining the regular expression. Its syntax
+       * (https://github.com/google/re2/wiki/Syntax) can be found under the
+       * google/re2 repository on GitHub.
        * 
* * string pattern = 1; @@ -2457,7 +2590,9 @@ public java.lang.String getPattern() { } /** *
-       * Pattern defining the regular expression.
+       * Pattern defining the regular expression. Its syntax
+       * (https://github.com/google/re2/wiki/Syntax) can be found under the
+       * google/re2 repository on GitHub.
        * 
* * string pattern = 1; @@ -2477,7 +2612,9 @@ public java.lang.String getPattern() { } /** *
-       * Pattern defining the regular expression.
+       * Pattern defining the regular expression. Its syntax
+       * (https://github.com/google/re2/wiki/Syntax) can be found under the
+       * google/re2 repository on GitHub.
        * 
* * string pattern = 1; @@ -2494,7 +2631,9 @@ public Builder setPattern( } /** *
-       * Pattern defining the regular expression.
+       * Pattern defining the regular expression. Its syntax
+       * (https://github.com/google/re2/wiki/Syntax) can be found under the
+       * google/re2 repository on GitHub.
        * 
* * string pattern = 1; @@ -2507,7 +2646,9 @@ public Builder clearPattern() { } /** *
-       * Pattern defining the regular expression.
+       * Pattern defining the regular expression. Its syntax
+       * (https://github.com/google/re2/wiki/Syntax) can be found under the
+       * google/re2 repository on GitHub.
        * 
* * string pattern = 1; @@ -6485,8 +6626,12 @@ public int getNumber() { private com.google.privacy.dlp.v2.InfoType infoType_; /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -6496,8 +6641,12 @@ public boolean hasInfoType() { } /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -6507,8 +6656,12 @@ public com.google.privacy.dlp.v2.InfoType getInfoType() { } /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -6769,6 +6922,33 @@ public com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder getDetect return detectionRules_.get(index); } + public static final int EXCLUSION_TYPE_FIELD_NUMBER = 8; + private int exclusionType_; + /** + *
+   * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+   * to be returned. It still can be used for rules matching.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public int getExclusionTypeValue() { + return exclusionType_; + } + /** + *
+   * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+   * to be returned. It still can be used for rules matching.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType() { + @SuppressWarnings("deprecation") + com.google.privacy.dlp.v2.CustomInfoType.ExclusionType result = com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.valueOf(exclusionType_); + return result == null ? com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -6804,6 +6984,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < detectionRules_.size(); i++) { output.writeMessage(7, detectionRules_.get(i)); } + if (exclusionType_ != com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.EXCLUSION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, exclusionType_); + } unknownFields.writeTo(output); } @@ -6841,6 +7024,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, detectionRules_.get(i)); } + if (exclusionType_ != com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.EXCLUSION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, exclusionType_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6865,6 +7052,7 @@ public boolean equals(final java.lang.Object obj) { result = result && likelihood_ == other.likelihood_; result = result && getDetectionRulesList() .equals(other.getDetectionRulesList()); + result = result && exclusionType_ == other.exclusionType_; result = result && getTypeCase().equals( other.getTypeCase()); if (!result) return false; @@ -6909,6 +7097,8 @@ public int hashCode() { hash = (37 * hash) + DETECTION_RULES_FIELD_NUMBER; hash = (53 * hash) + getDetectionRulesList().hashCode(); } + hash = (37 * hash) + EXCLUSION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + exclusionType_; switch (typeCase_) { case 2: hash = (37 * hash) + DICTIONARY_FIELD_NUMBER; @@ -7082,6 +7272,8 @@ public Builder clear() { } else { detectionRulesBuilder_.clear(); } + exclusionType_ = 0; + typeCase_ = 0; type_ = null; return this; @@ -7155,6 +7347,7 @@ public com.google.privacy.dlp.v2.CustomInfoType buildPartial() { } else { result.detectionRules_ = detectionRulesBuilder_.build(); } + result.exclusionType_ = exclusionType_; result.bitField0_ = to_bitField0_; result.typeCase_ = typeCase_; onBuilt(); @@ -7237,6 +7430,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.CustomInfoType other) { } } } + if (other.exclusionType_ != 0) { + setExclusionTypeValue(other.getExclusionTypeValue()); + } switch (other.getTypeCase()) { case DICTIONARY: { mergeDictionary(other.getDictionary()); @@ -7308,8 +7504,12 @@ public Builder clearType() { com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder> infoTypeBuilder_; /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7319,8 +7519,12 @@ public boolean hasInfoType() { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7334,8 +7538,12 @@ public com.google.privacy.dlp.v2.InfoType getInfoType() { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7355,8 +7563,12 @@ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7374,8 +7586,12 @@ public Builder setInfoType( } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7397,8 +7613,12 @@ public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7416,8 +7636,12 @@ public Builder clearInfoType() { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7429,8 +7653,12 @@ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -7445,8 +7673,12 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { } /** *
-     * All CustomInfoTypes must have a name
-     * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+     * CustomInfoType can either be a new infoType, or an extension of built-in
+     * infoType, when the name matches one of existing infoTypes and that infoType
+     * is specified in `InspectContent.info_types` field. Specifying the latter
+     * adds findings to the one detected by the system. If built-in info type is
+     * not specified in `InspectContent.info_types` list then the name is treated
+     * as a custom info type.
      * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -8593,6 +8825,76 @@ public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Builder addDetecti } return detectionRulesBuilder_; } + + private int exclusionType_ = 0; + /** + *
+     * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+     * to be returned. It still can be used for rules matching.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public int getExclusionTypeValue() { + return exclusionType_; + } + /** + *
+     * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+     * to be returned. It still can be used for rules matching.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public Builder setExclusionTypeValue(int value) { + exclusionType_ = value; + onChanged(); + return this; + } + /** + *
+     * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+     * to be returned. It still can be used for rules matching.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType() { + @SuppressWarnings("deprecation") + com.google.privacy.dlp.v2.CustomInfoType.ExclusionType result = com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.valueOf(exclusionType_); + return result == null ? com.google.privacy.dlp.v2.CustomInfoType.ExclusionType.UNRECOGNIZED : result; + } + /** + *
+     * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+     * to be returned. It still can be used for rules matching.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public Builder setExclusionType(com.google.privacy.dlp.v2.CustomInfoType.ExclusionType value) { + if (value == null) { + throw new NullPointerException(); + } + + exclusionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+     * to be returned. It still can be used for rules matching.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + public Builder clearExclusionType() { + + exclusionType_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoTypeOrBuilder.java index 28c2dd8ab722..d5e43f525042 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoTypeOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoTypeOrBuilder.java @@ -9,8 +9,12 @@ public interface CustomInfoTypeOrBuilder extends /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -18,8 +22,12 @@ public interface CustomInfoTypeOrBuilder extends boolean hasInfoType(); /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -27,8 +35,12 @@ public interface CustomInfoTypeOrBuilder extends com.google.privacy.dlp.v2.InfoType getInfoType(); /** *
-   * All CustomInfoTypes must have a name
-   * that does not conflict with built-in InfoTypes or other CustomInfoTypes.
+   * CustomInfoType can either be a new infoType, or an extension of built-in
+   * infoType, when the name matches one of existing infoTypes and that infoType
+   * is specified in `InspectContent.info_types` field. Specifying the latter
+   * adds findings to the one detected by the system. If built-in info type is
+   * not specified in `InspectContent.info_types` list then the name is treated
+   * as a custom info type.
    * 
* * .google.privacy.dlp.v2.InfoType info_type = 1; @@ -216,5 +228,24 @@ public interface CustomInfoTypeOrBuilder extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder getDetectionRulesOrBuilder( int index); + /** + *
+   * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+   * to be returned. It still can be used for rules matching.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + int getExclusionTypeValue(); + /** + *
+   * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
+   * to be returned. It still can be used for rules matching.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType(); + public com.google.privacy.dlp.v2.CustomInfoType.TypeCase getTypeCase(); } diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java index dc260fdfa49a..282499c90223 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java @@ -104,7 +104,7 @@ public DlpJobType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(3); + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(4); } private static final DlpJobType[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 8fdd3d5f8b96..84dfac3468ff 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -14,6 +14,26 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ExclusionRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ExclusionRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_InspectionRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_InspectionRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_InspectionRuleSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_InspectionRuleSet_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_InspectConfig_descriptor; static final @@ -761,774 +781,797 @@ public static void registerAllExtensions( "f/field_mask.proto\032\037google/protobuf/time" + "stamp.proto\032\027google/rpc/status.proto\032\026go" + "ogle/type/date.proto\032\033google/type/dayofw" + - "eek.proto\032\033google/type/timeofday.proto\"\213" + - "\005\n\rInspectConfig\0223\n\ninfo_types\030\001 \003(\0132\037.g" + - "oogle.privacy.dlp.v2.InfoType\0229\n\016min_lik" + - "elihood\030\002 \001(\0162!.google.privacy.dlp.v2.Li" + - "kelihood\022B\n\006limits\030\003 \001(\01322.google.privac" + - "y.dlp.v2.InspectConfig.FindingLimits\022\025\n\r" + - "include_quote\030\004 \001(\010\022\032\n\022exclude_info_type" + - "s\030\005 \001(\010\022@\n\021custom_info_types\030\006 \003(\0132%.goo" + - "gle.privacy.dlp.v2.CustomInfoType\022=\n\017con" + - "tent_options\030\010 \003(\0162$.google.privacy.dlp." + - "v2.ContentOption\032\221\002\n\rFindingLimits\022\035\n\025ma" + - "x_findings_per_item\030\001 \001(\005\022 \n\030max_finding" + - "s_per_request\030\002 \001(\005\022d\n\032max_findings_per_" + - "info_type\030\003 \003(\0132@.google.privacy.dlp.v2." + - "InspectConfig.FindingLimits.InfoTypeLimi" + - "t\032Y\n\rInfoTypeLimit\0222\n\tinfo_type\030\001 \001(\0132\037." + - "google.privacy.dlp.v2.InfoType\022\024\n\014max_fi" + - "ndings\030\002 \001(\005\"\337\001\n\017ByteContentItem\022>\n\004type" + - "\030\001 \001(\01620.google.privacy.dlp.v2.ByteConte" + - "ntItem.BytesType\022\014\n\004data\030\002 \001(\014\"~\n\tBytesT" + - "ype\022\032\n\026BYTES_TYPE_UNSPECIFIED\020\000\022\t\n\005IMAGE" + - "\020\006\022\016\n\nIMAGE_JPEG\020\001\022\r\n\tIMAGE_BMP\020\002\022\r\n\tIMA" + - "GE_PNG\020\003\022\r\n\tIMAGE_SVG\020\004\022\r\n\tTEXT_UTF8\020\005\"\227" + - "\001\n\013ContentItem\022\017\n\005value\030\003 \001(\tH\000\022-\n\005table" + - "\030\004 \001(\0132\034.google.privacy.dlp.v2.TableH\000\022;" + - "\n\tbyte_item\030\005 \001(\0132&.google.privacy.dlp.v" + - "2.ByteContentItemH\000B\013\n\tdata_item\"\235\001\n\005Tab" + - "le\022/\n\007headers\030\001 \003(\0132\036.google.privacy.dlp" + - ".v2.FieldId\022.\n\004rows\030\002 \003(\0132 .google.priva" + - "cy.dlp.v2.Table.Row\0323\n\003Row\022,\n\006values\030\001 \003" + - "(\0132\034.google.privacy.dlp.v2.Value\"]\n\rInsp" + - "ectResult\0220\n\010findings\030\001 \003(\0132\036.google.pri" + - "vacy.dlp.v2.Finding\022\032\n\022findings_truncate" + - "d\030\002 \001(\010\"\235\002\n\007Finding\022\r\n\005quote\030\001 \001(\t\0222\n\tin" + - "fo_type\030\002 \001(\0132\037.google.privacy.dlp.v2.In" + - "foType\0225\n\nlikelihood\030\003 \001(\0162!.google.priv" + - "acy.dlp.v2.Likelihood\0221\n\010location\030\004 \001(\0132" + - "\037.google.privacy.dlp.v2.Location\022/\n\013crea" + - "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + - "p\0224\n\nquote_info\030\007 \001(\0132 .google.privacy.d" + - "lp.v2.QuoteInfo\"\266\001\n\010Location\0220\n\nbyte_ran" + - "ge\030\001 \001(\0132\034.google.privacy.dlp.v2.Range\0225" + - "\n\017codepoint_range\030\002 \001(\0132\034.google.privacy" + - ".dlp.v2.Range\022A\n\021content_locations\030\007 \003(\013" + - "2&.google.privacy.dlp.v2.ContentLocation" + - "\"\321\002\n\017ContentLocation\022\026\n\016container_name\030\001" + - " \001(\t\022@\n\017record_location\030\002 \001(\0132%.google.p" + - "rivacy.dlp.v2.RecordLocationH\000\022>\n\016image_" + - "location\030\003 \001(\0132$.google.privacy.dlp.v2.I" + - "mageLocationH\000\022D\n\021document_location\030\005 \001(" + - "\0132\'.google.privacy.dlp.v2.DocumentLocati" + - "onH\000\0227\n\023container_timestamp\030\006 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022\031\n\021container_versi" + - "on\030\007 \001(\tB\n\n\010location\"\'\n\020DocumentLocation" + - "\022\023\n\013file_offset\030\001 \001(\003\"\266\001\n\016RecordLocation" + - "\0224\n\nrecord_key\030\001 \001(\0132 .google.privacy.dl" + - "p.v2.RecordKey\0220\n\010field_id\030\002 \001(\0132\036.googl" + - "e.privacy.dlp.v2.FieldId\022<\n\016table_locati" + - "on\030\003 \001(\0132$.google.privacy.dlp.v2.TableLo" + - "cation\"\"\n\rTableLocation\022\021\n\trow_index\030\001 \001" + - "(\003\"#\n\005Range\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"" + - "K\n\rImageLocation\022:\n\016bounding_boxes\030\001 \003(\013" + - "2\".google.privacy.dlp.v2.BoundingBox\"G\n\013" + - "BoundingBox\022\013\n\003top\030\001 \001(\005\022\014\n\004left\030\002 \001(\005\022\r" + - "\n\005width\030\003 \001(\005\022\016\n\006height\030\004 \001(\005\"\303\003\n\022Redact" + - "ImageRequest\022\016\n\006parent\030\001 \001(\t\022<\n\016inspect_" + - "config\030\002 \001(\0132$.google.privacy.dlp.v2.Ins" + - "pectConfig\022_\n\027image_redaction_configs\030\005 " + - "\003(\0132>.google.privacy.dlp.v2.RedactImageR" + - "equest.ImageRedactionConfig\022\030\n\020include_f" + - "indings\030\006 \001(\010\0229\n\tbyte_item\030\007 \001(\0132&.googl" + - "e.privacy.dlp.v2.ByteContentItem\032\250\001\n\024Ima" + - "geRedactionConfig\0224\n\tinfo_type\030\001 \001(\0132\037.g" + - "oogle.privacy.dlp.v2.InfoTypeH\000\022\031\n\017redac" + - "t_all_text\030\002 \001(\010H\000\0225\n\017redaction_color\030\003 " + - "\001(\0132\034.google.privacy.dlp.v2.ColorB\010\n\006tar" + - "get\"1\n\005Color\022\013\n\003red\030\001 \001(\002\022\r\n\005green\030\002 \001(\002" + - "\022\014\n\004blue\030\003 \001(\002\"\203\001\n\023RedactImageResponse\022\026" + - "\n\016redacted_image\030\001 \001(\014\022\026\n\016extracted_text" + - "\030\002 \001(\t\022<\n\016inspect_result\030\003 \001(\0132$.google." + - "privacy.dlp.v2.InspectResult\"\237\002\n\030Deident" + - "ifyContentRequest\022\016\n\006parent\030\001 \001(\t\022B\n\021dei" + - "dentify_config\030\002 \001(\0132\'.google.privacy.dl" + - "p.v2.DeidentifyConfig\022<\n\016inspect_config\030" + - "\003 \001(\0132$.google.privacy.dlp.v2.InspectCon" + - "fig\0220\n\004item\030\004 \001(\0132\".google.privacy.dlp.v" + - "2.ContentItem\022\035\n\025inspect_template_name\030\005" + - " \001(\t\022 \n\030deidentify_template_name\030\006 \001(\t\"\216" + - "\001\n\031DeidentifyContentResponse\0220\n\004item\030\001 \001" + - "(\0132\".google.privacy.dlp.v2.ContentItem\022?" + - "\n\010overview\030\002 \001(\0132-.google.privacy.dlp.v2" + - ".TransformationOverview\"\237\002\n\030ReidentifyCo" + - "ntentRequest\022\016\n\006parent\030\001 \001(\t\022B\n\021reidenti" + - "fy_config\030\002 \001(\0132\'.google.privacy.dlp.v2." + - "DeidentifyConfig\022<\n\016inspect_config\030\003 \001(\013" + - "2$.google.privacy.dlp.v2.InspectConfig\0220" + - "\n\004item\030\004 \001(\0132\".google.privacy.dlp.v2.Con" + - "tentItem\022\035\n\025inspect_template_name\030\005 \001(\t\022" + - " \n\030reidentify_template_name\030\006 \001(\t\"\216\001\n\031Re" + - "identifyContentResponse\0220\n\004item\030\001 \001(\0132\"." + - "google.privacy.dlp.v2.ContentItem\022?\n\010ove" + - "rview\030\002 \001(\0132-.google.privacy.dlp.v2.Tran" + - "sformationOverview\"\266\001\n\025InspectContentReq" + - "uest\022\016\n\006parent\030\001 \001(\t\022<\n\016inspect_config\030\002" + - " \001(\0132$.google.privacy.dlp.v2.InspectConf" + - "ig\0220\n\004item\030\003 \001(\0132\".google.privacy.dlp.v2" + - ".ContentItem\022\035\n\025inspect_template_name\030\004 " + - "\001(\t\"N\n\026InspectContentResponse\0224\n\006result\030" + - "\001 \001(\0132$.google.privacy.dlp.v2.InspectRes" + - "ult\"\267\002\n\023OutputStorageConfig\0225\n\005table\030\001 \001" + - "(\0132$.google.privacy.dlp.v2.BigQueryTable" + - "H\000\022N\n\routput_schema\030\003 \001(\01627.google.priva" + - "cy.dlp.v2.OutputStorageConfig.OutputSche" + - "ma\"\220\001\n\014OutputSchema\022\035\n\031OUTPUT_SCHEMA_UNS" + - "PECIFIED\020\000\022\021\n\rBASIC_COLUMNS\020\001\022\017\n\013GCS_COL" + - "UMNS\020\002\022\025\n\021DATASTORE_COLUMNS\020\003\022\025\n\021BIG_QUE" + - "RY_COLUMNS\020\004\022\017\n\013ALL_COLUMNS\020\005B\006\n\004type\"R\n" + - "\rInfoTypeStats\0222\n\tinfo_type\030\001 \001(\0132\037.goog" + - "le.privacy.dlp.v2.InfoType\022\r\n\005count\030\002 \001(" + - "\003\"\335\003\n\030InspectDataSourceDetails\022[\n\021reques" + - "ted_options\030\002 \001(\0132@.google.privacy.dlp.v" + - "2.InspectDataSourceDetails.RequestedOpti" + - "ons\022F\n\006result\030\003 \001(\01326.google.privacy.dlp" + - ".v2.InspectDataSourceDetails.Result\032\232\001\n\020" + - "RequestedOptions\022I\n\031snapshot_inspect_tem" + - "plate\030\001 \001(\0132&.google.privacy.dlp.v2.Insp" + - "ectTemplate\022;\n\njob_config\030\003 \001(\0132\'.google" + - ".privacy.dlp.v2.InspectJobConfig\032\177\n\006Resu" + - "lt\022\027\n\017processed_bytes\030\001 \001(\003\022\035\n\025total_est" + - "imated_bytes\030\002 \001(\003\022=\n\017info_type_stats\030\003 " + - "\003(\0132$.google.privacy.dlp.v2.InfoTypeStat" + - "s\"{\n\023InfoTypeDescription\022\014\n\004name\030\001 \001(\t\022\024" + - "\n\014display_name\030\002 \001(\t\022@\n\014supported_by\030\003 \003" + - "(\0162*.google.privacy.dlp.v2.InfoTypeSuppo" + - "rtedBy\"=\n\024ListInfoTypesRequest\022\025\n\rlangua" + - "ge_code\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\"W\n\025ListInf" + - "oTypesResponse\022>\n\ninfo_types\030\001 \003(\0132*.goo" + - "gle.privacy.dlp.v2.InfoTypeDescription\"\301" + - "\001\n\025RiskAnalysisJobConfig\022<\n\016privacy_metr" + - "ic\030\001 \001(\0132$.google.privacy.dlp.v2.Privacy" + - "Metric\022:\n\014source_table\030\002 \001(\0132$.google.pr" + - "ivacy.dlp.v2.BigQueryTable\022.\n\007actions\030\003 " + - "\003(\0132\035.google.privacy.dlp.v2.Action\"\267\001\n\007Q" + - "uasiId\022-\n\005field\030\001 \001(\0132\036.google.privacy.d" + - "lp.v2.FieldId\0224\n\tinfo_type\030\002 \001(\0132\037.googl" + - "e.privacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_ta" + - "g\030\003 \001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.pro" + - "tobuf.EmptyH\000B\005\n\003tag\"\257\002\n\020StatisticalTabl" + - "e\0223\n\005table\030\003 \001(\0132$.google.privacy.dlp.v2" + - ".BigQueryTable\022O\n\tquasi_ids\030\001 \003(\0132<.goog" + - "le.privacy.dlp.v2.StatisticalTable.Quasi" + - "IdentifierField\022:\n\022relative_frequency\030\002 " + - "\001(\0132\036.google.privacy.dlp.v2.FieldId\032Y\n\024Q" + - "uasiIdentifierField\022-\n\005field\030\001 \001(\0132\036.goo" + - "gle.privacy.dlp.v2.FieldId\022\022\n\ncustom_tag" + - "\030\002 \001(\t\"\365\016\n\rPrivacyMetric\022[\n\026numerical_st" + - "ats_config\030\001 \001(\01329.google.privacy.dlp.v2" + - ".PrivacyMetric.NumericalStatsConfigH\000\022_\n" + - "\030categorical_stats_config\030\002 \001(\0132;.google" + - ".privacy.dlp.v2.PrivacyMetric.Categorica" + - "lStatsConfigH\000\022S\n\022k_anonymity_config\030\003 \001" + - "(\01325.google.privacy.dlp.v2.PrivacyMetric" + - ".KAnonymityConfigH\000\022S\n\022l_diversity_confi" + - "g\030\004 \001(\01325.google.privacy.dlp.v2.PrivacyM" + - "etric.LDiversityConfigH\000\022\\\n\027k_map_estima" + - "tion_config\030\005 \001(\01329.google.privacy.dlp.v" + - "2.PrivacyMetric.KMapEstimationConfigH\000\022n" + - "\n delta_presence_estimation_config\030\006 \001(\013" + - "2B.google.privacy.dlp.v2.PrivacyMetric.D" + - "eltaPresenceEstimationConfigH\000\032E\n\024Numeri" + - "calStatsConfig\022-\n\005field\030\001 \001(\0132\036.google.p" + - "rivacy.dlp.v2.FieldId\032G\n\026CategoricalStat" + - "sConfig\022-\n\005field\030\001 \001(\0132\036.google.privacy." + - "dlp.v2.FieldId\032y\n\020KAnonymityConfig\0221\n\tqu" + - "asi_ids\030\001 \003(\0132\036.google.privacy.dlp.v2.Fi" + - "eldId\0222\n\tentity_id\030\002 \001(\0132\037.google.privac" + - "y.dlp.v2.EntityId\032\202\001\n\020LDiversityConfig\0221" + - "\n\tquasi_ids\030\001 \003(\0132\036.google.privacy.dlp.v" + - "2.FieldId\022;\n\023sensitive_attribute\030\002 \001(\0132\036" + - ".google.privacy.dlp.v2.FieldId\032\350\005\n\024KMapE" + - "stimationConfig\022X\n\tquasi_ids\030\001 \003(\0132E.goo" + - "gle.privacy.dlp.v2.PrivacyMetric.KMapEst" + - "imationConfig.TaggedField\022\023\n\013region_code" + - "\030\002 \001(\t\022b\n\020auxiliary_tables\030\003 \003(\0132H.googl" + - "e.privacy.dlp.v2.PrivacyMetric.KMapEstim" + - "ationConfig.AuxiliaryTable\032\273\001\n\013TaggedFie" + + "eek.proto\032\033google/type/timeofday.proto\"G" + + "\n\020ExcludeInfoTypes\0223\n\ninfo_types\030\001 \003(\0132\037" + + ".google.privacy.dlp.v2.InfoType\"\240\002\n\rExcl" + + "usionRule\022F\n\ndictionary\030\001 \001(\01320.google.p" + + "rivacy.dlp.v2.CustomInfoType.DictionaryH" + + "\000\022<\n\005regex\030\002 \001(\0132+.google.privacy.dlp.v2" + + ".CustomInfoType.RegexH\000\022E\n\022exclude_info_" + + "types\030\003 \001(\0132\'.google.privacy.dlp.v2.Excl" + + "udeInfoTypesH\000\022:\n\rmatching_type\030\004 \001(\0162#." + + "google.privacy.dlp.v2.MatchingTypeB\006\n\004ty" + + "pe\"\261\001\n\016InspectionRule\022W\n\014hotword_rule\030\001 " + + "\001(\0132?.google.privacy.dlp.v2.CustomInfoTy" + + "pe.DetectionRule.HotwordRuleH\000\022>\n\016exclus" + + "ion_rule\030\002 \001(\0132$.google.privacy.dlp.v2.E" + + "xclusionRuleH\000B\006\n\004type\"~\n\021InspectionRule" + + "Set\0223\n\ninfo_types\030\001 \003(\0132\037.google.privacy" + + ".dlp.v2.InfoType\0224\n\005rules\030\002 \003(\0132%.google" + + ".privacy.dlp.v2.InspectionRule\"\307\005\n\rInspe" + + "ctConfig\0223\n\ninfo_types\030\001 \003(\0132\037.google.pr" + + "ivacy.dlp.v2.InfoType\0229\n\016min_likelihood\030" + + "\002 \001(\0162!.google.privacy.dlp.v2.Likelihood" + + "\022B\n\006limits\030\003 \001(\01322.google.privacy.dlp.v2" + + ".InspectConfig.FindingLimits\022\025\n\rinclude_" + + "quote\030\004 \001(\010\022\032\n\022exclude_info_types\030\005 \001(\010\022" + + "@\n\021custom_info_types\030\006 \003(\0132%.google.priv" + + "acy.dlp.v2.CustomInfoType\022=\n\017content_opt" + + "ions\030\010 \003(\0162$.google.privacy.dlp.v2.Conte" + + "ntOption\022:\n\010rule_set\030\n \003(\0132(.google.priv" + + "acy.dlp.v2.InspectionRuleSet\032\221\002\n\rFinding" + + "Limits\022\035\n\025max_findings_per_item\030\001 \001(\005\022 \n" + + "\030max_findings_per_request\030\002 \001(\005\022d\n\032max_f" + + "indings_per_info_type\030\003 \003(\0132@.google.pri" + + "vacy.dlp.v2.InspectConfig.FindingLimits." + + "InfoTypeLimit\032Y\n\rInfoTypeLimit\0222\n\tinfo_t" + + "ype\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoTy" + + "pe\022\024\n\014max_findings\030\002 \001(\005\"\337\001\n\017ByteContent" + + "Item\022>\n\004type\030\001 \001(\01620.google.privacy.dlp." + + "v2.ByteContentItem.BytesType\022\014\n\004data\030\002 \001" + + "(\014\"~\n\tBytesType\022\032\n\026BYTES_TYPE_UNSPECIFIE" + + "D\020\000\022\t\n\005IMAGE\020\006\022\016\n\nIMAGE_JPEG\020\001\022\r\n\tIMAGE_" + + "BMP\020\002\022\r\n\tIMAGE_PNG\020\003\022\r\n\tIMAGE_SVG\020\004\022\r\n\tT" + + "EXT_UTF8\020\005\"\227\001\n\013ContentItem\022\017\n\005value\030\003 \001(" + + "\tH\000\022-\n\005table\030\004 \001(\0132\034.google.privacy.dlp." + + "v2.TableH\000\022;\n\tbyte_item\030\005 \001(\0132&.google.p" + + "rivacy.dlp.v2.ByteContentItemH\000B\013\n\tdata_" + + "item\"\235\001\n\005Table\022/\n\007headers\030\001 \003(\0132\036.google" + + ".privacy.dlp.v2.FieldId\022.\n\004rows\030\002 \003(\0132 ." + + "google.privacy.dlp.v2.Table.Row\0323\n\003Row\022," + + "\n\006values\030\001 \003(\0132\034.google.privacy.dlp.v2.V" + + "alue\"]\n\rInspectResult\0220\n\010findings\030\001 \003(\0132" + + "\036.google.privacy.dlp.v2.Finding\022\032\n\022findi" + + "ngs_truncated\030\002 \001(\010\"\235\002\n\007Finding\022\r\n\005quote" + + "\030\001 \001(\t\0222\n\tinfo_type\030\002 \001(\0132\037.google.priva" + + "cy.dlp.v2.InfoType\0225\n\nlikelihood\030\003 \001(\0162!" + + ".google.privacy.dlp.v2.Likelihood\0221\n\010loc" + + "ation\030\004 \001(\0132\037.google.privacy.dlp.v2.Loca" + + "tion\022/\n\013create_time\030\006 \001(\0132\032.google.proto" + + "buf.Timestamp\0224\n\nquote_info\030\007 \001(\0132 .goog" + + "le.privacy.dlp.v2.QuoteInfo\"\266\001\n\010Location" + + "\0220\n\nbyte_range\030\001 \001(\0132\034.google.privacy.dl" + + "p.v2.Range\0225\n\017codepoint_range\030\002 \001(\0132\034.go" + + "ogle.privacy.dlp.v2.Range\022A\n\021content_loc" + + "ations\030\007 \003(\0132&.google.privacy.dlp.v2.Con" + + "tentLocation\"\321\002\n\017ContentLocation\022\026\n\016cont" + + "ainer_name\030\001 \001(\t\022@\n\017record_location\030\002 \001(" + + "\0132%.google.privacy.dlp.v2.RecordLocation" + + "H\000\022>\n\016image_location\030\003 \001(\0132$.google.priv" + + "acy.dlp.v2.ImageLocationH\000\022D\n\021document_l" + + "ocation\030\005 \001(\0132\'.google.privacy.dlp.v2.Do" + + "cumentLocationH\000\0227\n\023container_timestamp\030" + + "\006 \001(\0132\032.google.protobuf.Timestamp\022\031\n\021con" + + "tainer_version\030\007 \001(\tB\n\n\010location\"\'\n\020Docu" + + "mentLocation\022\023\n\013file_offset\030\001 \001(\003\"\266\001\n\016Re" + + "cordLocation\0224\n\nrecord_key\030\001 \001(\0132 .googl" + + "e.privacy.dlp.v2.RecordKey\0220\n\010field_id\030\002" + + " \001(\0132\036.google.privacy.dlp.v2.FieldId\022<\n\016" + + "table_location\030\003 \001(\0132$.google.privacy.dl" + + "p.v2.TableLocation\"\"\n\rTableLocation\022\021\n\tr" + + "ow_index\030\001 \001(\003\"#\n\005Range\022\r\n\005start\030\001 \001(\003\022\013" + + "\n\003end\030\002 \001(\003\"K\n\rImageLocation\022:\n\016bounding" + + "_boxes\030\001 \003(\0132\".google.privacy.dlp.v2.Bou" + + "ndingBox\"G\n\013BoundingBox\022\013\n\003top\030\001 \001(\005\022\014\n\004" + + "left\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\022\016\n\006height\030\004 \001(" + + "\005\"\303\003\n\022RedactImageRequest\022\016\n\006parent\030\001 \001(\t" + + "\022<\n\016inspect_config\030\002 \001(\0132$.google.privac" + + "y.dlp.v2.InspectConfig\022_\n\027image_redactio" + + "n_configs\030\005 \003(\0132>.google.privacy.dlp.v2." + + "RedactImageRequest.ImageRedactionConfig\022" + + "\030\n\020include_findings\030\006 \001(\010\0229\n\tbyte_item\030\007" + + " \001(\0132&.google.privacy.dlp.v2.ByteContent" + + "Item\032\250\001\n\024ImageRedactionConfig\0224\n\tinfo_ty" + + "pe\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoTyp" + + "eH\000\022\031\n\017redact_all_text\030\002 \001(\010H\000\0225\n\017redact" + + "ion_color\030\003 \001(\0132\034.google.privacy.dlp.v2." + + "ColorB\010\n\006target\"1\n\005Color\022\013\n\003red\030\001 \001(\002\022\r\n" + + "\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001(\002\"\203\001\n\023RedactIma" + + "geResponse\022\026\n\016redacted_image\030\001 \001(\014\022\026\n\016ex" + + "tracted_text\030\002 \001(\t\022<\n\016inspect_result\030\003 \001" + + "(\0132$.google.privacy.dlp.v2.InspectResult" + + "\"\237\002\n\030DeidentifyContentRequest\022\016\n\006parent\030" + + "\001 \001(\t\022B\n\021deidentify_config\030\002 \001(\0132\'.googl" + + "e.privacy.dlp.v2.DeidentifyConfig\022<\n\016ins" + + "pect_config\030\003 \001(\0132$.google.privacy.dlp.v" + + "2.InspectConfig\0220\n\004item\030\004 \001(\0132\".google.p" + + "rivacy.dlp.v2.ContentItem\022\035\n\025inspect_tem" + + "plate_name\030\005 \001(\t\022 \n\030deidentify_template_" + + "name\030\006 \001(\t\"\216\001\n\031DeidentifyContentResponse" + + "\0220\n\004item\030\001 \001(\0132\".google.privacy.dlp.v2.C" + + "ontentItem\022?\n\010overview\030\002 \001(\0132-.google.pr" + + "ivacy.dlp.v2.TransformationOverview\"\237\002\n\030" + + "ReidentifyContentRequest\022\016\n\006parent\030\001 \001(\t" + + "\022B\n\021reidentify_config\030\002 \001(\0132\'.google.pri" + + "vacy.dlp.v2.DeidentifyConfig\022<\n\016inspect_" + + "config\030\003 \001(\0132$.google.privacy.dlp.v2.Ins" + + "pectConfig\0220\n\004item\030\004 \001(\0132\".google.privac" + + "y.dlp.v2.ContentItem\022\035\n\025inspect_template" + + "_name\030\005 \001(\t\022 \n\030reidentify_template_name\030" + + "\006 \001(\t\"\216\001\n\031ReidentifyContentResponse\0220\n\004i" + + "tem\030\001 \001(\0132\".google.privacy.dlp.v2.Conten" + + "tItem\022?\n\010overview\030\002 \001(\0132-.google.privacy" + + ".dlp.v2.TransformationOverview\"\266\001\n\025Inspe" + + "ctContentRequest\022\016\n\006parent\030\001 \001(\t\022<\n\016insp" + + "ect_config\030\002 \001(\0132$.google.privacy.dlp.v2" + + ".InspectConfig\0220\n\004item\030\003 \001(\0132\".google.pr" + + "ivacy.dlp.v2.ContentItem\022\035\n\025inspect_temp" + + "late_name\030\004 \001(\t\"N\n\026InspectContentRespons" + + "e\0224\n\006result\030\001 \001(\0132$.google.privacy.dlp.v" + + "2.InspectResult\"\267\002\n\023OutputStorageConfig\022" + + "5\n\005table\030\001 \001(\0132$.google.privacy.dlp.v2.B" + + "igQueryTableH\000\022N\n\routput_schema\030\003 \001(\01627." + + "google.privacy.dlp.v2.OutputStorageConfi" + + "g.OutputSchema\"\220\001\n\014OutputSchema\022\035\n\031OUTPU" + + "T_SCHEMA_UNSPECIFIED\020\000\022\021\n\rBASIC_COLUMNS\020" + + "\001\022\017\n\013GCS_COLUMNS\020\002\022\025\n\021DATASTORE_COLUMNS\020" + + "\003\022\025\n\021BIG_QUERY_COLUMNS\020\004\022\017\n\013ALL_COLUMNS\020" + + "\005B\006\n\004type\"R\n\rInfoTypeStats\0222\n\tinfo_type\030" + + "\001 \001(\0132\037.google.privacy.dlp.v2.InfoType\022\r" + + "\n\005count\030\002 \001(\003\"\335\003\n\030InspectDataSourceDetai" + + "ls\022[\n\021requested_options\030\002 \001(\0132@.google.p" + + "rivacy.dlp.v2.InspectDataSourceDetails.R" + + "equestedOptions\022F\n\006result\030\003 \001(\01326.google" + + ".privacy.dlp.v2.InspectDataSourceDetails" + + ".Result\032\232\001\n\020RequestedOptions\022I\n\031snapshot" + + "_inspect_template\030\001 \001(\0132&.google.privacy" + + ".dlp.v2.InspectTemplate\022;\n\njob_config\030\003 " + + "\001(\0132\'.google.privacy.dlp.v2.InspectJobCo" + + "nfig\032\177\n\006Result\022\027\n\017processed_bytes\030\001 \001(\003\022" + + "\035\n\025total_estimated_bytes\030\002 \001(\003\022=\n\017info_t" + + "ype_stats\030\003 \003(\0132$.google.privacy.dlp.v2." + + "InfoTypeStats\"{\n\023InfoTypeDescription\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022@\n\014supp" + + "orted_by\030\003 \003(\0162*.google.privacy.dlp.v2.I" + + "nfoTypeSupportedBy\"=\n\024ListInfoTypesReque" + + "st\022\025\n\rlanguage_code\030\001 \001(\t\022\016\n\006filter\030\002 \001(" + + "\t\"W\n\025ListInfoTypesResponse\022>\n\ninfo_types" + + "\030\001 \003(\0132*.google.privacy.dlp.v2.InfoTypeD" + + "escription\"\301\001\n\025RiskAnalysisJobConfig\022<\n\016" + + "privacy_metric\030\001 \001(\0132$.google.privacy.dl" + + "p.v2.PrivacyMetric\022:\n\014source_table\030\002 \001(\013" + + "2$.google.privacy.dlp.v2.BigQueryTable\022." + + "\n\007actions\030\003 \003(\0132\035.google.privacy.dlp.v2." + + "Action\"\267\001\n\007QuasiId\022-\n\005field\030\001 \001(\0132\036.goog" + + "le.privacy.dlp.v2.FieldId\0224\n\tinfo_type\030\002" + + " \001(\0132\037.google.privacy.dlp.v2.InfoTypeH\000\022" + + "\024\n\ncustom_tag\030\003 \001(\tH\000\022*\n\010inferred\030\004 \001(\0132" + + "\026.google.protobuf.EmptyH\000B\005\n\003tag\"\257\002\n\020Sta" + + "tisticalTable\0223\n\005table\030\003 \001(\0132$.google.pr" + + "ivacy.dlp.v2.BigQueryTable\022O\n\tquasi_ids\030" + + "\001 \003(\0132<.google.privacy.dlp.v2.Statistica" + + "lTable.QuasiIdentifierField\022:\n\022relative_" + + "frequency\030\002 \001(\0132\036.google.privacy.dlp.v2." + + "FieldId\032Y\n\024QuasiIdentifierField\022-\n\005field" + + "\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\022\022" + + "\n\ncustom_tag\030\002 \001(\t\"\365\016\n\rPrivacyMetric\022[\n\026" + + "numerical_stats_config\030\001 \001(\01329.google.pr" + + "ivacy.dlp.v2.PrivacyMetric.NumericalStat" + + "sConfigH\000\022_\n\030categorical_stats_config\030\002 " + + "\001(\0132;.google.privacy.dlp.v2.PrivacyMetri" + + "c.CategoricalStatsConfigH\000\022S\n\022k_anonymit" + + "y_config\030\003 \001(\01325.google.privacy.dlp.v2.P" + + "rivacyMetric.KAnonymityConfigH\000\022S\n\022l_div" + + "ersity_config\030\004 \001(\01325.google.privacy.dlp" + + ".v2.PrivacyMetric.LDiversityConfigH\000\022\\\n\027" + + "k_map_estimation_config\030\005 \001(\01329.google.p" + + "rivacy.dlp.v2.PrivacyMetric.KMapEstimati" + + "onConfigH\000\022n\n delta_presence_estimation_" + + "config\030\006 \001(\0132B.google.privacy.dlp.v2.Pri" + + "vacyMetric.DeltaPresenceEstimationConfig" + + "H\000\032E\n\024NumericalStatsConfig\022-\n\005field\030\001 \001(" + + "\0132\036.google.privacy.dlp.v2.FieldId\032G\n\026Cat" + + "egoricalStatsConfig\022-\n\005field\030\001 \001(\0132\036.goo" + + "gle.privacy.dlp.v2.FieldId\032y\n\020KAnonymity" + + "Config\0221\n\tquasi_ids\030\001 \003(\0132\036.google.priva" + + "cy.dlp.v2.FieldId\0222\n\tentity_id\030\002 \001(\0132\037.g" + + "oogle.privacy.dlp.v2.EntityId\032\202\001\n\020LDiver" + + "sityConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google.p" + + "rivacy.dlp.v2.FieldId\022;\n\023sensitive_attri" + + "bute\030\002 \001(\0132\036.google.privacy.dlp.v2.Field" + + "Id\032\350\005\n\024KMapEstimationConfig\022X\n\tquasi_ids" + + "\030\001 \003(\0132E.google.privacy.dlp.v2.PrivacyMe" + + "tric.KMapEstimationConfig.TaggedField\022\023\n" + + "\013region_code\030\002 \001(\t\022b\n\020auxiliary_tables\030\003" + + " \003(\0132H.google.privacy.dlp.v2.PrivacyMetr" + + "ic.KMapEstimationConfig.AuxiliaryTable\032\273" + + "\001\n\013TaggedField\022-\n\005field\030\001 \001(\0132\036.google.p" + + "rivacy.dlp.v2.FieldId\0224\n\tinfo_type\030\002 \001(\013" + + "2\037.google.privacy.dlp.v2.InfoTypeH\000\022\024\n\nc" + + "ustom_tag\030\003 \001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.go" + + "ogle.protobuf.EmptyH\000B\005\n\003tag\032\276\002\n\016Auxilia" + + "ryTable\0223\n\005table\030\003 \001(\0132$.google.privacy." + + "dlp.v2.BigQueryTable\022h\n\tquasi_ids\030\001 \003(\0132" + + "U.google.privacy.dlp.v2.PrivacyMetric.KM" + + "apEstimationConfig.AuxiliaryTable.QuasiI" + + "dField\022:\n\022relative_frequency\030\002 \001(\0132\036.goo" + + "gle.privacy.dlp.v2.FieldId\032Q\n\014QuasiIdFie" + "ld\022-\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v" + - "2.FieldId\0224\n\tinfo_type\030\002 \001(\0132\037.google.pr" + - "ivacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_tag\030\003 " + - "\001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.protobu" + - "f.EmptyH\000B\005\n\003tag\032\276\002\n\016AuxiliaryTable\0223\n\005t" + - "able\030\003 \001(\0132$.google.privacy.dlp.v2.BigQu" + - "eryTable\022h\n\tquasi_ids\030\001 \003(\0132U.google.pri" + - "vacy.dlp.v2.PrivacyMetric.KMapEstimation" + - "Config.AuxiliaryTable.QuasiIdField\022:\n\022re" + - "lative_frequency\030\002 \001(\0132\036.google.privacy." + - "dlp.v2.FieldId\032Q\n\014QuasiIdField\022-\n\005field\030" + - "\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\022\022\n" + - "\ncustom_tag\030\002 \001(\t\032\252\001\n\035DeltaPresenceEstim" + - "ationConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google." + - "privacy.dlp.v2.QuasiId\022\023\n\013region_code\030\002 " + - "\001(\t\022A\n\020auxiliary_tables\030\003 \003(\0132\'.google.p" + - "rivacy.dlp.v2.StatisticalTableB\006\n\004type\"\362" + - "\035\n\034AnalyzeDataSourceRiskDetails\022F\n\030reque" + - "sted_privacy_metric\030\001 \001(\0132$.google.priva" + - "cy.dlp.v2.PrivacyMetric\022D\n\026requested_sou" + - "rce_table\030\002 \001(\0132$.google.privacy.dlp.v2." + - "BigQueryTable\022j\n\026numerical_stats_result\030" + - "\003 \001(\0132H.google.privacy.dlp.v2.AnalyzeDat" + - "aSourceRiskDetails.NumericalStatsResultH" + - "\000\022n\n\030categorical_stats_result\030\004 \001(\0132J.go" + - "ogle.privacy.dlp.v2.AnalyzeDataSourceRis" + - "kDetails.CategoricalStatsResultH\000\022b\n\022k_a" + - "nonymity_result\030\005 \001(\0132D.google.privacy.d" + - "lp.v2.AnalyzeDataSourceRiskDetails.KAnon" + - "ymityResultH\000\022b\n\022l_diversity_result\030\006 \001(" + - "\0132D.google.privacy.dlp.v2.AnalyzeDataSou" + - "rceRiskDetails.LDiversityResultH\000\022k\n\027k_m" + - "ap_estimation_result\030\007 \001(\0132H.google.priv" + - "acy.dlp.v2.AnalyzeDataSourceRiskDetails." + - "KMapEstimationResultH\000\022}\n delta_presence" + - "_estimation_result\030\t \001(\0132Q.google.privac" + - "y.dlp.v2.AnalyzeDataSourceRiskDetails.De" + - "ltaPresenceEstimationResultH\000\032\257\001\n\024Numeri" + - "calStatsResult\022/\n\tmin_value\030\001 \001(\0132\034.goog" + - "le.privacy.dlp.v2.Value\022/\n\tmax_value\030\002 \001" + - "(\0132\034.google.privacy.dlp.v2.Value\0225\n\017quan" + - "tile_values\030\004 \003(\0132\034.google.privacy.dlp.v" + - "2.Value\032\215\003\n\026CategoricalStatsResult\022\225\001\n!v" + - "alue_frequency_histogram_buckets\030\005 \003(\0132j" + + "2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\032\252\001\n\035DeltaP" + + "resenceEstimationConfig\0221\n\tquasi_ids\030\001 \003" + + "(\0132\036.google.privacy.dlp.v2.QuasiId\022\023\n\013re" + + "gion_code\030\002 \001(\t\022A\n\020auxiliary_tables\030\003 \003(" + + "\0132\'.google.privacy.dlp.v2.StatisticalTab" + + "leB\006\n\004type\"\362\035\n\034AnalyzeDataSourceRiskDeta" + + "ils\022F\n\030requested_privacy_metric\030\001 \001(\0132$." + + "google.privacy.dlp.v2.PrivacyMetric\022D\n\026r" + + "equested_source_table\030\002 \001(\0132$.google.pri" + + "vacy.dlp.v2.BigQueryTable\022j\n\026numerical_s" + + "tats_result\030\003 \001(\0132H.google.privacy.dlp.v" + + "2.AnalyzeDataSourceRiskDetails.Numerical" + + "StatsResultH\000\022n\n\030categorical_stats_resul" + + "t\030\004 \001(\0132J.google.privacy.dlp.v2.AnalyzeD" + + "ataSourceRiskDetails.CategoricalStatsRes" + + "ultH\000\022b\n\022k_anonymity_result\030\005 \001(\0132D.goog" + + "le.privacy.dlp.v2.AnalyzeDataSourceRiskD" + + "etails.KAnonymityResultH\000\022b\n\022l_diversity" + + "_result\030\006 \001(\0132D.google.privacy.dlp.v2.An" + + "alyzeDataSourceRiskDetails.LDiversityRes" + + "ultH\000\022k\n\027k_map_estimation_result\030\007 \001(\0132H" + ".google.privacy.dlp.v2.AnalyzeDataSource" + - "RiskDetails.CategoricalStatsResult.Categ" + - "oricalStatsHistogramBucket\032\332\001\n\037Categoric" + - "alStatsHistogramBucket\022#\n\033value_frequenc" + - "y_lower_bound\030\001 \001(\003\022#\n\033value_frequency_u" + - "pper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022<\n" + - "\rbucket_values\030\004 \003(\0132%.google.privacy.dl" + - "p.v2.ValueFrequency\022\032\n\022bucket_value_coun" + - "t\030\005 \001(\003\032\265\004\n\020KAnonymityResult\022\213\001\n#equival" + - "ence_class_histogram_buckets\030\005 \003(\0132^.goo" + - "gle.privacy.dlp.v2.AnalyzeDataSourceRisk" + - "Details.KAnonymityResult.KAnonymityHisto" + - "gramBucket\032t\n\032KAnonymityEquivalenceClass" + - "\0226\n\020quasi_ids_values\030\001 \003(\0132\034.google.priv" + - "acy.dlp.v2.Value\022\036\n\026equivalence_class_si" + - "ze\030\002 \001(\003\032\234\002\n\031KAnonymityHistogramBucket\022*" + - "\n\"equivalence_class_size_lower_bound\030\001 \001" + - "(\003\022*\n\"equivalence_class_size_upper_bound" + - "\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n\rbucket_va" + - "lues\030\004 \003(\0132_.google.privacy.dlp.v2.Analy" + - "zeDataSourceRiskDetails.KAnonymityResult" + - ".KAnonymityEquivalenceClass\022\032\n\022bucket_va" + - "lue_count\030\005 \001(\003\032\260\005\n\020LDiversityResult\022\223\001\n" + - "+sensitive_value_frequency_histogram_buc" + - "kets\030\005 \003(\0132^.google.privacy.dlp.v2.Analy" + - "zeDataSourceRiskDetails.LDiversityResult" + - ".LDiversityHistogramBucket\032\340\001\n\032LDiversit" + - "yEquivalenceClass\0226\n\020quasi_ids_values\030\001 " + - "\003(\0132\034.google.privacy.dlp.v2.Value\022\036\n\026equ" + - "ivalence_class_size\030\002 \001(\003\022%\n\035num_distinc" + - "t_sensitive_values\030\003 \001(\003\022C\n\024top_sensitiv" + - "e_values\030\004 \003(\0132%.google.privacy.dlp.v2.V" + - "alueFrequency\032\242\002\n\031LDiversityHistogramBuc" + - "ket\022-\n%sensitive_value_frequency_lower_b" + - "ound\030\001 \001(\003\022-\n%sensitive_value_frequency_" + - "upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v" + - "\n\rbucket_values\030\004 \003(\0132_.google.privacy.d" + - "lp.v2.AnalyzeDataSourceRiskDetails.LDive" + - "rsityResult.LDiversityEquivalenceClass\022\032" + - "\n\022bucket_value_count\030\005 \001(\003\032\225\004\n\024KMapEstim" + - "ationResult\022\212\001\n\032k_map_estimation_histogr" + - "am\030\001 \003(\0132f.google.privacy.dlp.v2.Analyze" + - "DataSourceRiskDetails.KMapEstimationResu" + - "lt.KMapEstimationHistogramBucket\032r\n\033KMap" + - "EstimationQuasiIdValues\0226\n\020quasi_ids_val" + - "ues\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022" + - "\033\n\023estimated_anonymity\030\002 \001(\003\032\373\001\n\035KMapEst" + - "imationHistogramBucket\022\025\n\rmin_anonymity\030" + - "\001 \001(\003\022\025\n\rmax_anonymity\030\002 \001(\003\022\023\n\013bucket_s" + - "ize\030\005 \001(\003\022{\n\rbucket_values\030\006 \003(\0132d.googl" + - "e.privacy.dlp.v2.AnalyzeDataSourceRiskDe" + - "tails.KMapEstimationResult.KMapEstimatio" + - "nQuasiIdValues\022\032\n\022bucket_value_count\030\007 \001" + - "(\003\032\344\004\n\035DeltaPresenceEstimationResult\022\245\001\n" + - "#delta_presence_estimation_histogram\030\001 \003" + - "(\0132x.google.privacy.dlp.v2.AnalyzeDataSo" + - "urceRiskDetails.DeltaPresenceEstimationR" + - "esult.DeltaPresenceEstimationHistogramBu" + - "cket\032}\n$DeltaPresenceEstimationQuasiIdVa" + - "lues\0226\n\020quasi_ids_values\030\001 \003(\0132\034.google." + - "privacy.dlp.v2.Value\022\035\n\025estimated_probab" + - "ility\030\002 \001(\001\032\233\002\n&DeltaPresenceEstimationH" + - "istogramBucket\022\027\n\017min_probability\030\001 \001(\001\022" + - "\027\n\017max_probability\030\002 \001(\001\022\023\n\013bucket_size\030" + - "\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(\0132v.google.p" + - "rivacy.dlp.v2.AnalyzeDataSourceRiskDetai" + - "ls.DeltaPresenceEstimationResult.DeltaPr" + - "esenceEstimationQuasiIdValues\022\032\n\022bucket_" + - "value_count\030\007 \001(\003B\010\n\006result\"L\n\016ValueFreq" + - "uency\022+\n\005value\030\001 \001(\0132\034.google.privacy.dl" + - "p.v2.Value\022\r\n\005count\030\002 \001(\003\"\263\002\n\005Value\022\027\n\ri" + - "nteger_value\030\001 \001(\003H\000\022\025\n\013float_value\030\002 \001(" + - "\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\027\n\rboolean_v" + - "alue\030\004 \001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032." + - "google.protobuf.TimestampH\000\022,\n\ntime_valu" + - "e\030\006 \001(\0132\026.google.type.TimeOfDayH\000\022\'\n\ndat" + - "e_value\030\007 \001(\0132\021.google.type.DateH\000\0223\n\021da" + - "y_of_week_value\030\010 \001(\0162\026.google.type.DayO" + - "fWeekH\000B\006\n\004type\"Q\n\tQuoteInfo\0224\n\tdate_tim" + - "e\030\002 \001(\0132\037.google.privacy.dlp.v2.DateTime" + - "H\000B\016\n\014parsed_quote\"\337\001\n\010DateTime\022\037\n\004date\030" + - "\001 \001(\0132\021.google.type.Date\022+\n\013day_of_week\030" + - "\002 \001(\0162\026.google.type.DayOfWeek\022$\n\004time\030\003 " + - "\001(\0132\026.google.type.TimeOfDay\022;\n\ttime_zone" + - "\030\004 \001(\0132(.google.privacy.dlp.v2.DateTime." + - "TimeZone\032\"\n\010TimeZone\022\026\n\016offset_minutes\030\001" + - " \001(\005\"\311\001\n\020DeidentifyConfig\022S\n\031info_type_t" + - "ransformations\030\001 \001(\0132..google.privacy.dl" + - "p.v2.InfoTypeTransformationsH\000\022N\n\026record" + - "_transformations\030\002 \001(\0132,.google.privacy." + - "dlp.v2.RecordTransformationsH\000B\020\n\016transf" + - "ormation\"\234\006\n\027PrimitiveTransformation\022C\n\016" + - "replace_config\030\001 \001(\0132).google.privacy.dl" + - "p.v2.ReplaceValueConfigH\000\022<\n\rredact_conf" + - "ig\030\002 \001(\0132#.google.privacy.dlp.v2.RedactC" + - "onfigH\000\022K\n\025character_mask_config\030\003 \001(\0132*" + - ".google.privacy.dlp.v2.CharacterMaskConf" + - "igH\000\022Y\n\035crypto_replace_ffx_fpe_config\030\004 " + - "\001(\01320.google.privacy.dlp.v2.CryptoReplac" + - "eFfxFpeConfigH\000\022V\n\033fixed_size_bucketing_" + - "config\030\005 \001(\0132/.google.privacy.dlp.v2.Fix" + - "edSizeBucketingConfigH\000\022B\n\020bucketing_con" + - "fig\030\006 \001(\0132&.google.privacy.dlp.v2.Bucket" + - "ingConfigH\000\022Y\n\035replace_with_info_type_co" + - "nfig\030\007 \001(\01320.google.privacy.dlp.v2.Repla" + - "ceWithInfoTypeConfigH\000\022A\n\020time_part_conf" + - "ig\030\010 \001(\0132%.google.privacy.dlp.v2.TimePar" + - "tConfigH\000\022E\n\022crypto_hash_config\030\t \001(\0132\'." + - "google.privacy.dlp.v2.CryptoHashConfigH\000" + - "\022C\n\021date_shift_config\030\013 \001(\0132&.google.pri" + - "vacy.dlp.v2.DateShiftConfigH\000B\020\n\016transfo" + - "rmation\"\334\001\n\016TimePartConfig\022G\n\017part_to_ex" + - "tract\030\001 \001(\0162..google.privacy.dlp.v2.Time" + - "PartConfig.TimePart\"\200\001\n\010TimePart\022\031\n\025TIME" + - "_PART_UNSPECIFIED\020\000\022\010\n\004YEAR\020\001\022\t\n\005MONTH\020\002" + - "\022\020\n\014DAY_OF_MONTH\020\003\022\017\n\013DAY_OF_WEEK\020\004\022\020\n\014W" + - "EEK_OF_YEAR\020\005\022\017\n\013HOUR_OF_DAY\020\006\"H\n\020Crypto" + - "HashConfig\0224\n\ncrypto_key\030\001 \001(\0132 .google." + - "privacy.dlp.v2.CryptoKey\"E\n\022ReplaceValue" + - "Config\022/\n\tnew_value\030\001 \001(\0132\034.google.priva" + - "cy.dlp.v2.Value\"\033\n\031ReplaceWithInfoTypeCo" + - "nfig\"\016\n\014RedactConfig\"\266\002\n\rCharsToIgnore\022\034" + - "\n\022characters_to_skip\030\001 \001(\tH\000\022_\n\033common_c" + - "haracters_to_ignore\030\002 \001(\01628.google.priva" + - "cy.dlp.v2.CharsToIgnore.CommonCharsToIgn" + - "oreH\000\"\227\001\n\023CommonCharsToIgnore\022&\n\"COMMON_" + - "CHARS_TO_IGNORE_UNSPECIFIED\020\000\022\013\n\007NUMERIC" + - "\020\001\022\024\n\020ALPHA_UPPER_CASE\020\002\022\024\n\020ALPHA_LOWER_" + - "CASE\020\003\022\017\n\013PUNCTUATION\020\004\022\016\n\nWHITESPACE\020\005B" + - "\014\n\ncharacters\"\243\001\n\023CharacterMaskConfig\022\031\n" + - "\021masking_character\030\001 \001(\t\022\026\n\016number_to_ma" + - "sk\030\002 \001(\005\022\025\n\rreverse_order\030\003 \001(\010\022B\n\024chara" + - "cters_to_ignore\030\004 \003(\0132$.google.privacy.d" + - "lp.v2.CharsToIgnore\"\225\001\n\030FixedSizeBucketi" + - "ngConfig\0221\n\013lower_bound\030\001 \001(\0132\034.google.p" + - "rivacy.dlp.v2.Value\0221\n\013upper_bound\030\002 \001(\013" + - "2\034.google.privacy.dlp.v2.Value\022\023\n\013bucket" + - "_size\030\003 \001(\001\"\353\001\n\017BucketingConfig\022>\n\007bucke" + - "ts\030\001 \003(\0132-.google.privacy.dlp.v2.Bucketi" + - "ngConfig.Bucket\032\227\001\n\006Bucket\022)\n\003min\030\001 \001(\0132" + - "\034.google.privacy.dlp.v2.Value\022)\n\003max\030\002 \001" + - "(\0132\034.google.privacy.dlp.v2.Value\0227\n\021repl" + - "acement_value\030\003 \001(\0132\034.google.privacy.dlp" + - ".v2.Value\"\364\003\n\031CryptoReplaceFfxFpeConfig\022" + - "4\n\ncrypto_key\030\001 \001(\0132 .google.privacy.dlp" + - ".v2.CryptoKey\022/\n\007context\030\002 \001(\0132\036.google." + - "privacy.dlp.v2.FieldId\022c\n\017common_alphabe" + - "t\030\004 \001(\0162H.google.privacy.dlp.v2.CryptoRe" + - "placeFfxFpeConfig.FfxCommonNativeAlphabe" + - "tH\000\022\031\n\017custom_alphabet\030\005 \001(\tH\000\022\017\n\005radix\030" + - "\006 \001(\005H\000\022<\n\023surrogate_info_type\030\010 \001(\0132\037.g" + - "oogle.privacy.dlp.v2.InfoType\"\224\001\n\027FfxCom" + - "monNativeAlphabet\022*\n&FFX_COMMON_NATIVE_A" + - "LPHABET_UNSPECIFIED\020\000\022\013\n\007NUMERIC\020\001\022\017\n\013HE" + - "XADECIMAL\020\002\022\034\n\030UPPER_CASE_ALPHA_NUMERIC\020" + - "\003\022\021\n\rALPHA_NUMERIC\020\004B\n\n\010alphabet\"\330\001\n\tCry" + - "ptoKey\022>\n\ttransient\030\001 \001(\0132).google.priva" + - "cy.dlp.v2.TransientCryptoKeyH\000\022>\n\tunwrap" + - "ped\030\002 \001(\0132).google.privacy.dlp.v2.Unwrap" + - "pedCryptoKeyH\000\022A\n\013kms_wrapped\030\003 \001(\0132*.go" + - "ogle.privacy.dlp.v2.KmsWrappedCryptoKeyH" + - "\000B\010\n\006source\"\"\n\022TransientCryptoKey\022\014\n\004nam", - "e\030\001 \001(\t\"!\n\022UnwrappedCryptoKey\022\013\n\003key\030\001 \001" + - "(\014\"C\n\023KmsWrappedCryptoKey\022\023\n\013wrapped_key" + - "\030\001 \001(\014\022\027\n\017crypto_key_name\030\002 \001(\t\"\270\001\n\017Date" + - "ShiftConfig\022\030\n\020upper_bound_days\030\001 \001(\005\022\030\n" + - "\020lower_bound_days\030\002 \001(\005\022/\n\007context\030\003 \001(\013" + - "2\036.google.privacy.dlp.v2.FieldId\0226\n\ncryp" + - "to_key\030\004 \001(\0132 .google.privacy.dlp.v2.Cry" + - "ptoKeyH\000B\010\n\006method\"\233\002\n\027InfoTypeTransform" + - "ations\022^\n\017transformations\030\001 \003(\0132E.google" + - ".privacy.dlp.v2.InfoTypeTransformations." + - "InfoTypeTransformation\032\237\001\n\026InfoTypeTrans" + - "formation\0223\n\ninfo_types\030\001 \003(\0132\037.google.p" + - "rivacy.dlp.v2.InfoType\022P\n\030primitive_tran" + - "sformation\030\002 \001(\0132..google.privacy.dlp.v2" + - ".PrimitiveTransformation\"\273\002\n\023FieldTransf" + - "ormation\022.\n\006fields\030\001 \003(\0132\036.google.privac" + - "y.dlp.v2.FieldId\0229\n\tcondition\030\003 \001(\0132&.go" + - "ogle.privacy.dlp.v2.RecordCondition\022R\n\030p" + - "rimitive_transformation\030\004 \001(\0132..google.p" + - "rivacy.dlp.v2.PrimitiveTransformationH\000\022" + - "S\n\031info_type_transformations\030\005 \001(\0132..goo" + - "gle.privacy.dlp.v2.InfoTypeTransformatio" + - "nsH\000B\020\n\016transformation\"\251\001\n\025RecordTransfo" + - "rmations\022I\n\025field_transformations\030\001 \003(\0132" + - "*.google.privacy.dlp.v2.FieldTransformat" + - "ion\022E\n\023record_suppressions\030\002 \003(\0132(.googl" + - "e.privacy.dlp.v2.RecordSuppression\"N\n\021Re" + - "cordSuppression\0229\n\tcondition\030\001 \001(\0132&.goo" + - "gle.privacy.dlp.v2.RecordCondition\"\322\004\n\017R" + - "ecordCondition\022G\n\013expressions\030\003 \001(\01322.go" + - "ogle.privacy.dlp.v2.RecordCondition.Expr" + - "essions\032\244\001\n\tCondition\022-\n\005field\030\001 \001(\0132\036.g" + - "oogle.privacy.dlp.v2.FieldId\022;\n\010operator" + - "\030\003 \001(\0162).google.privacy.dlp.v2.Relationa" + - "lOperator\022+\n\005value\030\004 \001(\0132\034.google.privac" + - "y.dlp.v2.Value\032R\n\nConditions\022D\n\nconditio" + - "ns\030\001 \003(\01320.google.privacy.dlp.v2.RecordC" + - "ondition.Condition\032\372\001\n\013Expressions\022\\\n\020lo" + - "gical_operator\030\001 \001(\0162B.google.privacy.dl" + - "p.v2.RecordCondition.Expressions.Logical" + - "Operator\022G\n\nconditions\030\003 \001(\01321.google.pr" + - "ivacy.dlp.v2.RecordCondition.ConditionsH" + - "\000\"<\n\017LogicalOperator\022 \n\034LOGICAL_OPERATOR" + - "_UNSPECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004type\"\203\001\n\026Tran" + - "sformationOverview\022\031\n\021transformed_bytes\030" + - "\002 \001(\003\022N\n\030transformation_summaries\030\003 \003(\0132" + - ",.google.privacy.dlp.v2.TransformationSu" + - "mmary\"\237\005\n\025TransformationSummary\0222\n\tinfo_" + - "type\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoT" + - "ype\022-\n\005field\030\002 \001(\0132\036.google.privacy.dlp." + - "v2.FieldId\022F\n\016transformation\030\003 \001(\0132..goo" + - "gle.privacy.dlp.v2.PrimitiveTransformati" + - "on\022I\n\025field_transformations\030\005 \003(\0132*.goog" + - "le.privacy.dlp.v2.FieldTransformation\022A\n" + - "\017record_suppress\030\006 \001(\0132(.google.privacy." + - "dlp.v2.RecordSuppression\022K\n\007results\030\004 \003(" + - "\0132:.google.privacy.dlp.v2.Transformation" + - "Summary.SummaryResult\022\031\n\021transformed_byt" + - "es\030\007 \001(\003\032\204\001\n\rSummaryResult\022\r\n\005count\030\001 \001(" + - "\003\022S\n\004code\030\002 \001(\0162E.google.privacy.dlp.v2." + - "TransformationSummary.TransformationResu" + - "ltCode\022\017\n\007details\030\003 \001(\t\"^\n\030Transformatio" + - "nResultCode\022*\n&TRANSFORMATION_RESULT_COD" + - "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\"" + - "U\n\010Schedule\022?\n\032recurrence_period_duratio" + - "n\030\001 \001(\0132\031.google.protobuf.DurationH\000B\010\n\006" + - "option\"\352\001\n\017InspectTemplate\022\014\n\004name\030\001 \001(\t" + - "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " + - "\001(\t\022/\n\013create_time\030\004 \001(\0132\032.google.protob" + - "uf.Timestamp\022/\n\013update_time\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022<\n\016inspect_config\030" + - "\006 \001(\0132$.google.privacy.dlp.v2.InspectCon" + - "fig\"\363\001\n\022DeidentifyTemplate\022\014\n\004name\030\001 \001(\t" + - "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " + - "\001(\t\022/\n\013create_time\030\004 \001(\0132\032.google.protob" + - "uf.Timestamp\022/\n\013update_time\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022B\n\021deidentify_conf" + - "ig\030\006 \001(\0132\'.google.privacy.dlp.v2.Deident" + - "ifyConfig\"\\\n\005Error\022#\n\007details\030\001 \001(\0132\022.go" + - "ogle.rpc.Status\022.\n\ntimestamps\030\002 \003(\0132\032.go" + - "ogle.protobuf.Timestamp\"\333\004\n\nJobTrigger\022\014" + + "RiskDetails.KMapEstimationResultH\000\022}\n de" + + "lta_presence_estimation_result\030\t \001(\0132Q.g" + + "oogle.privacy.dlp.v2.AnalyzeDataSourceRi" + + "skDetails.DeltaPresenceEstimationResultH" + + "\000\032\257\001\n\024NumericalStatsResult\022/\n\tmin_value\030" + + "\001 \001(\0132\034.google.privacy.dlp.v2.Value\022/\n\tm" + + "ax_value\030\002 \001(\0132\034.google.privacy.dlp.v2.V" + + "alue\0225\n\017quantile_values\030\004 \003(\0132\034.google.p" + + "rivacy.dlp.v2.Value\032\215\003\n\026CategoricalStats" + + "Result\022\225\001\n!value_frequency_histogram_buc" + + "kets\030\005 \003(\0132j.google.privacy.dlp.v2.Analy" + + "zeDataSourceRiskDetails.CategoricalStats" + + "Result.CategoricalStatsHistogramBucket\032\332" + + "\001\n\037CategoricalStatsHistogramBucket\022#\n\033va" + + "lue_frequency_lower_bound\030\001 \001(\003\022#\n\033value" + + "_frequency_upper_bound\030\002 \001(\003\022\023\n\013bucket_s" + + "ize\030\003 \001(\003\022<\n\rbucket_values\030\004 \003(\0132%.googl" + + "e.privacy.dlp.v2.ValueFrequency\022\032\n\022bucke" + + "t_value_count\030\005 \001(\003\032\265\004\n\020KAnonymityResult" + + "\022\213\001\n#equivalence_class_histogram_buckets" + + "\030\005 \003(\0132^.google.privacy.dlp.v2.AnalyzeDa" + + "taSourceRiskDetails.KAnonymityResult.KAn" + + "onymityHistogramBucket\032t\n\032KAnonymityEqui" + + "valenceClass\0226\n\020quasi_ids_values\030\001 \003(\0132\034" + + ".google.privacy.dlp.v2.Value\022\036\n\026equivale" + + "nce_class_size\030\002 \001(\003\032\234\002\n\031KAnonymityHisto" + + "gramBucket\022*\n\"equivalence_class_size_low" + + "er_bound\030\001 \001(\003\022*\n\"equivalence_class_size" + + "_upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022" + + "v\n\rbucket_values\030\004 \003(\0132_.google.privacy." + + "dlp.v2.AnalyzeDataSourceRiskDetails.KAno" + + "nymityResult.KAnonymityEquivalenceClass\022" + + "\032\n\022bucket_value_count\030\005 \001(\003\032\260\005\n\020LDiversi" + + "tyResult\022\223\001\n+sensitive_value_frequency_h" + + "istogram_buckets\030\005 \003(\0132^.google.privacy." + + "dlp.v2.AnalyzeDataSourceRiskDetails.LDiv" + + "ersityResult.LDiversityHistogramBucket\032\340" + + "\001\n\032LDiversityEquivalenceClass\0226\n\020quasi_i" + + "ds_values\030\001 \003(\0132\034.google.privacy.dlp.v2." + + "Value\022\036\n\026equivalence_class_size\030\002 \001(\003\022%\n" + + "\035num_distinct_sensitive_values\030\003 \001(\003\022C\n\024" + + "top_sensitive_values\030\004 \003(\0132%.google.priv" + + "acy.dlp.v2.ValueFrequency\032\242\002\n\031LDiversity" + + "HistogramBucket\022-\n%sensitive_value_frequ" + + "ency_lower_bound\030\001 \001(\003\022-\n%sensitive_valu" + + "e_frequency_upper_bound\030\002 \001(\003\022\023\n\013bucket_" + + "size\030\003 \001(\003\022v\n\rbucket_values\030\004 \003(\0132_.goog" + + "le.privacy.dlp.v2.AnalyzeDataSourceRiskD" + + "etails.LDiversityResult.LDiversityEquiva" + + "lenceClass\022\032\n\022bucket_value_count\030\005 \001(\003\032\225" + + "\004\n\024KMapEstimationResult\022\212\001\n\032k_map_estima" + + "tion_histogram\030\001 \003(\0132f.google.privacy.dl" + + "p.v2.AnalyzeDataSourceRiskDetails.KMapEs" + + "timationResult.KMapEstimationHistogramBu" + + "cket\032r\n\033KMapEstimationQuasiIdValues\0226\n\020q" + + "uasi_ids_values\030\001 \003(\0132\034.google.privacy.d" + + "lp.v2.Value\022\033\n\023estimated_anonymity\030\002 \001(\003" + + "\032\373\001\n\035KMapEstimationHistogramBucket\022\025\n\rmi" + + "n_anonymity\030\001 \001(\003\022\025\n\rmax_anonymity\030\002 \001(\003" + + "\022\023\n\013bucket_size\030\005 \001(\003\022{\n\rbucket_values\030\006" + + " \003(\0132d.google.privacy.dlp.v2.AnalyzeData" + + "SourceRiskDetails.KMapEstimationResult.K" + + "MapEstimationQuasiIdValues\022\032\n\022bucket_val" + + "ue_count\030\007 \001(\003\032\344\004\n\035DeltaPresenceEstimati" + + "onResult\022\245\001\n#delta_presence_estimation_h" + + "istogram\030\001 \003(\0132x.google.privacy.dlp.v2.A" + + "nalyzeDataSourceRiskDetails.DeltaPresenc" + + "eEstimationResult.DeltaPresenceEstimatio" + + "nHistogramBucket\032}\n$DeltaPresenceEstimat" + + "ionQuasiIdValues\0226\n\020quasi_ids_values\030\001 \003" + + "(\0132\034.google.privacy.dlp.v2.Value\022\035\n\025esti" + + "mated_probability\030\002 \001(\001\032\233\002\n&DeltaPresenc" + + "eEstimationHistogramBucket\022\027\n\017min_probab" + + "ility\030\001 \001(\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n\013" + + "bucket_size\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(" + + "\0132v.google.privacy.dlp.v2.AnalyzeDataSou" + + "rceRiskDetails.DeltaPresenceEstimationRe" + + "sult.DeltaPresenceEstimationQuasiIdValue" + + "s\022\032\n\022bucket_value_count\030\007 \001(\003B\010\n\006result\"" + + "L\n\016ValueFrequency\022+\n\005value\030\001 \001(\0132\034.googl" + + "e.privacy.dlp.v2.Value\022\r\n\005count\030\002 \001(\003\"\263\002" + + "\n\005Value\022\027\n\rinteger_value\030\001 \001(\003H\000\022\025\n\013floa" + + "t_value\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022" + + "\027\n\rboolean_value\030\004 \001(\010H\000\0225\n\017timestamp_va" + + "lue\030\005 \001(\0132\032.google.protobuf.TimestampH\000\022" + + ",\n\ntime_value\030\006 \001(\0132\026.google.type.TimeOf" + + "DayH\000\022\'\n\ndate_value\030\007 \001(\0132\021.google.type." + + "DateH\000\0223\n\021day_of_week_value\030\010 \001(\0162\026.goog" + + "le.type.DayOfWeekH\000B\006\n\004type\"Q\n\tQuoteInfo" + + "\0224\n\tdate_time\030\002 \001(\0132\037.google.privacy.dlp" + + ".v2.DateTimeH\000B\016\n\014parsed_quote\"\337\001\n\010DateT" + + "ime\022\037\n\004date\030\001 \001(\0132\021.google.type.Date\022+\n\013" + + "day_of_week\030\002 \001(\0162\026.google.type.DayOfWee" + + "k\022$\n\004time\030\003 \001(\0132\026.google.type.TimeOfDay\022" + + ";\n\ttime_zone\030\004 \001(\0132(.google.privacy.dlp." + + "v2.DateTime.TimeZone\032\"\n\010TimeZone\022\026\n\016offs" + + "et_minutes\030\001 \001(\005\"\311\001\n\020DeidentifyConfig\022S\n" + + "\031info_type_transformations\030\001 \001(\0132..googl" + + "e.privacy.dlp.v2.InfoTypeTransformations" + + "H\000\022N\n\026record_transformations\030\002 \001(\0132,.goo" + + "gle.privacy.dlp.v2.RecordTransformations" + + "H\000B\020\n\016transformation\"\234\006\n\027PrimitiveTransf" + + "ormation\022C\n\016replace_config\030\001 \001(\0132).googl" + + "e.privacy.dlp.v2.ReplaceValueConfigH\000\022<\n" + + "\rredact_config\030\002 \001(\0132#.google.privacy.dl" + + "p.v2.RedactConfigH\000\022K\n\025character_mask_co" + + "nfig\030\003 \001(\0132*.google.privacy.dlp.v2.Chara" + + "cterMaskConfigH\000\022Y\n\035crypto_replace_ffx_f" + + "pe_config\030\004 \001(\01320.google.privacy.dlp.v2." + + "CryptoReplaceFfxFpeConfigH\000\022V\n\033fixed_siz" + + "e_bucketing_config\030\005 \001(\0132/.google.privac" + + "y.dlp.v2.FixedSizeBucketingConfigH\000\022B\n\020b" + + "ucketing_config\030\006 \001(\0132&.google.privacy.d" + + "lp.v2.BucketingConfigH\000\022Y\n\035replace_with_" + + "info_type_config\030\007 \001(\01320.google.privacy." + + "dlp.v2.ReplaceWithInfoTypeConfigH\000\022A\n\020ti" + + "me_part_config\030\010 \001(\0132%.google.privacy.dl" + + "p.v2.TimePartConfigH\000\022E\n\022crypto_hash_con" + + "fig\030\t \001(\0132\'.google.privacy.dlp.v2.Crypto" + + "HashConfigH\000\022C\n\021date_shift_config\030\013 \001(\0132" + + "&.google.privacy.dlp.v2.DateShiftConfigH" + + "\000B\020\n\016transformation\"\334\001\n\016TimePartConfig\022G" + + "\n\017part_to_extract\030\001 \001(\0162..google.privacy" + + ".dlp.v2.TimePartConfig.TimePart\"\200\001\n\010Time" + + "Part\022\031\n\025TIME_PART_UNSPECIFIED\020\000\022\010\n\004YEAR\020" + + "\001\022\t\n\005MONTH\020\002\022\020\n\014DAY_OF_MONTH\020\003\022\017\n\013DAY_OF" + + "_WEEK\020\004\022\020\n\014WEEK_OF_YEAR\020\005\022\017\n\013HOUR_OF_DAY" + + "\020\006\"H\n\020CryptoHashConfig\0224\n\ncrypto_key\030\001 \001" + + "(\0132 .google.privacy.dlp.v2.CryptoKey\"E\n\022" + + "ReplaceValueConfig\022/\n\tnew_value\030\001 \001(\0132\034." + + "google.privacy.dlp.v2.Value\"\033\n\031ReplaceWi" + + "thInfoTypeConfig\"\016\n\014RedactConfig\"\266\002\n\rCha" + + "rsToIgnore\022\034\n\022characters_to_skip\030\001 \001(\tH\000" + + "\022_\n\033common_characters_to_ignore\030\002 \001(\01628." + + "google.privacy.dlp.v2.CharsToIgnore.Comm" + + "onCharsToIgnoreH\000\"\227\001\n\023CommonCharsToIgnor" + + "e\022&\n\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\020" + + "\000\022\013\n\007NUMERIC\020\001\022\024\n\020ALPHA_UPPER_CASE\020\002\022\024\n\020" + + "ALPHA_LOWER_CASE\020\003\022\017\n\013PUNCTUATION\020\004\022\016\n\nW" + + "HITESPACE\020\005B\014\n\ncharacters\"\243\001\n\023CharacterM" + + "askConfig\022\031\n\021masking_character\030\001 \001(\t\022\026\n\016" + + "number_to_mask\030\002 \001(\005\022\025\n\rreverse_order\030\003 " + + "\001(\010\022B\n\024characters_to_ignore\030\004 \003(\0132$.goog" + + "le.privacy.dlp.v2.CharsToIgnore\"\225\001\n\030Fixe" + + "dSizeBucketingConfig\0221\n\013lower_bound\030\001 \001(" + + "\0132\034.google.privacy.dlp.v2.Value\0221\n\013upper" + + "_bound\030\002 \001(\0132\034.google.privacy.dlp.v2.Val" + + "ue\022\023\n\013bucket_size\030\003 \001(\001\"\353\001\n\017BucketingCon" + + "fig\022>\n\007buckets\030\001 \003(\0132-.google.privacy.dl" + + "p.v2.BucketingConfig.Bucket\032\227\001\n\006Bucket\022)" + + "\n\003min\030\001 \001(\0132\034.google.privacy.dlp.v2.Valu" + + "e\022)\n\003max\030\002 \001(\0132\034.google.privacy.dlp.v2.V" + + "alue\0227\n\021replacement_value\030\003 \001(\0132\034.google" + + ".privacy.dlp.v2.Value\"\364\003\n\031CryptoReplaceF", + "fxFpeConfig\0224\n\ncrypto_key\030\001 \001(\0132 .google" + + ".privacy.dlp.v2.CryptoKey\022/\n\007context\030\002 \001" + + "(\0132\036.google.privacy.dlp.v2.FieldId\022c\n\017co" + + "mmon_alphabet\030\004 \001(\0162H.google.privacy.dlp" + + ".v2.CryptoReplaceFfxFpeConfig.FfxCommonN" + + "ativeAlphabetH\000\022\031\n\017custom_alphabet\030\005 \001(\t" + + "H\000\022\017\n\005radix\030\006 \001(\005H\000\022<\n\023surrogate_info_ty" + + "pe\030\010 \001(\0132\037.google.privacy.dlp.v2.InfoTyp" + + "e\"\224\001\n\027FfxCommonNativeAlphabet\022*\n&FFX_COM" + + "MON_NATIVE_ALPHABET_UNSPECIFIED\020\000\022\013\n\007NUM" + + "ERIC\020\001\022\017\n\013HEXADECIMAL\020\002\022\034\n\030UPPER_CASE_AL" + + "PHA_NUMERIC\020\003\022\021\n\rALPHA_NUMERIC\020\004B\n\n\010alph" + + "abet\"\330\001\n\tCryptoKey\022>\n\ttransient\030\001 \001(\0132)." + + "google.privacy.dlp.v2.TransientCryptoKey" + + "H\000\022>\n\tunwrapped\030\002 \001(\0132).google.privacy.d" + + "lp.v2.UnwrappedCryptoKeyH\000\022A\n\013kms_wrappe" + + "d\030\003 \001(\0132*.google.privacy.dlp.v2.KmsWrapp" + + "edCryptoKeyH\000B\010\n\006source\"\"\n\022TransientCryp" + + "toKey\022\014\n\004name\030\001 \001(\t\"!\n\022UnwrappedCryptoKe" + + "y\022\013\n\003key\030\001 \001(\014\"C\n\023KmsWrappedCryptoKey\022\023\n" + + "\013wrapped_key\030\001 \001(\014\022\027\n\017crypto_key_name\030\002 " + + "\001(\t\"\270\001\n\017DateShiftConfig\022\030\n\020upper_bound_d" + + "ays\030\001 \001(\005\022\030\n\020lower_bound_days\030\002 \001(\005\022/\n\007c" + + "ontext\030\003 \001(\0132\036.google.privacy.dlp.v2.Fie" + + "ldId\0226\n\ncrypto_key\030\004 \001(\0132 .google.privac" + + "y.dlp.v2.CryptoKeyH\000B\010\n\006method\"\233\002\n\027InfoT" + + "ypeTransformations\022^\n\017transformations\030\001 " + + "\003(\0132E.google.privacy.dlp.v2.InfoTypeTran" + + "sformations.InfoTypeTransformation\032\237\001\n\026I" + + "nfoTypeTransformation\0223\n\ninfo_types\030\001 \003(" + + "\0132\037.google.privacy.dlp.v2.InfoType\022P\n\030pr" + + "imitive_transformation\030\002 \001(\0132..google.pr" + + "ivacy.dlp.v2.PrimitiveTransformation\"\273\002\n" + + "\023FieldTransformation\022.\n\006fields\030\001 \003(\0132\036.g" + + "oogle.privacy.dlp.v2.FieldId\0229\n\tconditio" + + "n\030\003 \001(\0132&.google.privacy.dlp.v2.RecordCo" + + "ndition\022R\n\030primitive_transformation\030\004 \001(" + + "\0132..google.privacy.dlp.v2.PrimitiveTrans" + + "formationH\000\022S\n\031info_type_transformations" + + "\030\005 \001(\0132..google.privacy.dlp.v2.InfoTypeT" + + "ransformationsH\000B\020\n\016transformation\"\251\001\n\025R" + + "ecordTransformations\022I\n\025field_transforma" + + "tions\030\001 \003(\0132*.google.privacy.dlp.v2.Fiel" + + "dTransformation\022E\n\023record_suppressions\030\002" + + " \003(\0132(.google.privacy.dlp.v2.RecordSuppr" + + "ession\"N\n\021RecordSuppression\0229\n\tcondition" + + "\030\001 \001(\0132&.google.privacy.dlp.v2.RecordCon" + + "dition\"\322\004\n\017RecordCondition\022G\n\013expression" + + "s\030\003 \001(\01322.google.privacy.dlp.v2.RecordCo" + + "ndition.Expressions\032\244\001\n\tCondition\022-\n\005fie" + + "ld\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId" + + "\022;\n\010operator\030\003 \001(\0162).google.privacy.dlp." + + "v2.RelationalOperator\022+\n\005value\030\004 \001(\0132\034.g" + + "oogle.privacy.dlp.v2.Value\032R\n\nConditions" + + "\022D\n\nconditions\030\001 \003(\01320.google.privacy.dl" + + "p.v2.RecordCondition.Condition\032\372\001\n\013Expre" + + "ssions\022\\\n\020logical_operator\030\001 \001(\0162B.googl" + + "e.privacy.dlp.v2.RecordCondition.Express" + + "ions.LogicalOperator\022G\n\nconditions\030\003 \001(\013" + + "21.google.privacy.dlp.v2.RecordCondition" + + ".ConditionsH\000\"<\n\017LogicalOperator\022 \n\034LOGI" + + "CAL_OPERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004t" + + "ype\"\203\001\n\026TransformationOverview\022\031\n\021transf" + + "ormed_bytes\030\002 \001(\003\022N\n\030transformation_summ" + + "aries\030\003 \003(\0132,.google.privacy.dlp.v2.Tran" + + "sformationSummary\"\237\005\n\025TransformationSumm" + + "ary\0222\n\tinfo_type\030\001 \001(\0132\037.google.privacy." + + "dlp.v2.InfoType\022-\n\005field\030\002 \001(\0132\036.google." + + "privacy.dlp.v2.FieldId\022F\n\016transformation" + + "\030\003 \001(\0132..google.privacy.dlp.v2.Primitive" + + "Transformation\022I\n\025field_transformations\030" + + "\005 \003(\0132*.google.privacy.dlp.v2.FieldTrans" + + "formation\022A\n\017record_suppress\030\006 \001(\0132(.goo" + + "gle.privacy.dlp.v2.RecordSuppression\022K\n\007" + + "results\030\004 \003(\0132:.google.privacy.dlp.v2.Tr" + + "ansformationSummary.SummaryResult\022\031\n\021tra" + + "nsformed_bytes\030\007 \001(\003\032\204\001\n\rSummaryResult\022\r" + + "\n\005count\030\001 \001(\003\022S\n\004code\030\002 \001(\0162E.google.pri" + + "vacy.dlp.v2.TransformationSummary.Transf" + + "ormationResultCode\022\017\n\007details\030\003 \001(\t\"^\n\030T" + + "ransformationResultCode\022*\n&TRANSFORMATIO" + + "N_RESULT_CODE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001" + + "\022\t\n\005ERROR\020\002\"U\n\010Schedule\022?\n\032recurrence_pe" + + "riod_duration\030\001 \001(\0132\031.google.protobuf.Du" + + "rationH\000B\010\n\006option\"\352\001\n\017InspectTemplate\022\014" + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013de" + - "scription\030\003 \001(\t\022>\n\013inspect_job\030\004 \001(\0132\'.g" + - "oogle.privacy.dlp.v2.InspectJobConfigH\000\022" + - ";\n\010triggers\030\005 \003(\0132).google.privacy.dlp.v" + - "2.JobTrigger.Trigger\022,\n\006errors\030\006 \003(\0132\034.g" + - "oogle.privacy.dlp.v2.Error\022/\n\013create_tim" + - "e\030\007 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + - "pdate_time\030\010 \001(\0132\032.google.protobuf.Times" + - "tamp\0221\n\rlast_run_time\030\t \001(\0132\032.google.pro" + - "tobuf.Timestamp\0228\n\006status\030\n \001(\0162(.google" + - ".privacy.dlp.v2.JobTrigger.Status\032I\n\007Tri" + - "gger\0223\n\010schedule\030\001 \001(\0132\037.google.privacy." + - "dlp.v2.ScheduleH\000B\t\n\007trigger\"H\n\006Status\022\026" + - "\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\n\n\006P" + - "AUSED\020\002\022\r\n\tCANCELLED\020\003B\005\n\003job\"\375\002\n\006Action" + - "\022C\n\rsave_findings\030\001 \001(\0132*.google.privacy" + - ".dlp.v2.Action.SaveFindingsH\000\022@\n\007pub_sub" + - "\030\002 \001(\0132-.google.privacy.dlp.v2.Action.Pu" + - "blishToPubSubH\000\022U\n\027publish_summary_to_cs" + - "cc\030\003 \001(\01322.google.privacy.dlp.v2.Action." + - "PublishSummaryToCsccH\000\032Q\n\014SaveFindings\022A" + - "\n\routput_config\030\001 \001(\0132*.google.privacy.d" + - "lp.v2.OutputStorageConfig\032 \n\017PublishToPu" + - "bSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSummaryToC" + - "sccB\010\n\006action\"\205\001\n\034CreateInspectTemplateR" + - "equest\022\016\n\006parent\030\001 \001(\t\022@\n\020inspect_templa" + - "te\030\002 \001(\0132&.google.privacy.dlp.v2.Inspect" + - "Template\022\023\n\013template_id\030\003 \001(\t\"\237\001\n\034Update" + - "InspectTemplateRequest\022\014\n\004name\030\001 \001(\t\022@\n\020" + - "inspect_template\030\002 \001(\0132&.google.privacy." + - "dlp.v2.InspectTemplate\022/\n\013update_mask\030\003 " + - "\001(\0132\032.google.protobuf.FieldMask\")\n\031GetIn" + - "spectTemplateRequest\022\014\n\004name\030\001 \001(\t\"T\n\033Li" + - "stInspectTemplatesRequest\022\016\n\006parent\030\001 \001(" + - "\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + - "\"z\n\034ListInspectTemplatesResponse\022A\n\021insp" + - "ect_templates\030\001 \003(\0132&.google.privacy.dlp" + - ".v2.InspectTemplate\022\027\n\017next_page_token\030\002" + - " \001(\t\",\n\034DeleteInspectTemplateRequest\022\014\n\004" + - "name\030\001 \001(\t\"u\n\027CreateJobTriggerRequest\022\016\n" + - "\006parent\030\001 \001(\t\0226\n\013job_trigger\030\002 \001(\0132!.goo" + - "gle.privacy.dlp.v2.JobTrigger\022\022\n\ntrigger" + - "_id\030\003 \001(\t\"\220\001\n\027UpdateJobTriggerRequest\022\014\n" + - "\004name\030\001 \001(\t\0226\n\013job_trigger\030\002 \001(\0132!.googl" + - "e.privacy.dlp.v2.JobTrigger\022/\n\013update_ma" + - "sk\030\003 \001(\0132\032.google.protobuf.FieldMask\"$\n\024" + - "GetJobTriggerRequest\022\014\n\004name\030\001 \001(\t\"\276\001\n\023C" + - "reateDlpJobRequest\022\016\n\006parent\030\001 \001(\t\022>\n\013in" + - "spect_job\030\002 \001(\0132\'.google.privacy.dlp.v2." + - "InspectJobConfigH\000\022@\n\010risk_job\030\003 \001(\0132,.g" + - "oogle.privacy.dlp.v2.RiskAnalysisJobConf" + - "igH\000\022\016\n\006job_id\030\004 \001(\tB\005\n\003job\"a\n\026ListJobTr" + - "iggersRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_to" + - "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by" + - "\030\004 \001(\t\"k\n\027ListJobTriggersResponse\0227\n\014job" + - "_triggers\030\001 \003(\0132!.google.privacy.dlp.v2." + - "JobTrigger\022\027\n\017next_page_token\030\002 \001(\t\"\'\n\027D" + - "eleteJobTriggerRequest\022\014\n\004name\030\001 \001(\t\"\335\001\n" + - "\020InspectJobConfig\022<\n\016storage_config\030\001 \001(" + - "\0132$.google.privacy.dlp.v2.StorageConfig\022" + - "<\n\016inspect_config\030\002 \001(\0132$.google.privacy" + - ".dlp.v2.InspectConfig\022\035\n\025inspect_templat" + - "e_name\030\003 \001(\t\022.\n\007actions\030\004 \003(\0132\035.google.p" + - "rivacy.dlp.v2.Action\"\336\004\n\006DlpJob\022\014\n\004name\030" + - "\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google.privacy.dlp" + - ".v2.DlpJobType\0225\n\005state\030\003 \001(\0162&.google.p" + - "rivacy.dlp.v2.DlpJob.JobState\022K\n\014risk_de" + - "tails\030\004 \001(\01323.google.privacy.dlp.v2.Anal" + - "yzeDataSourceRiskDetailsH\000\022J\n\017inspect_de" + - "tails\030\005 \001(\0132/.google.privacy.dlp.v2.Insp" + - "ectDataSourceDetailsH\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.Time" + - "stamp\022\030\n\020job_trigger_name\030\n \001(\t\022,\n\006error" + - "s\030\013 \003(\0132\034.google.privacy.dlp.v2.Error\"c\n" + - "\010JobState\022\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007" + - "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANC" + - "ELED\020\004\022\n\n\006FAILED\020\005B\t\n\007details\" \n\020GetDlpJ" + - "obRequest\022\014\n\004name\030\001 \001(\t\"\214\001\n\022ListDlpJobsR" + - "equest\022\016\n\006parent\030\004 \001(\t\022\016\n\006filter\030\001 \001(\t\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n" + - "\004type\030\005 \001(\0162!.google.privacy.dlp.v2.DlpJ" + - "obType\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 " + - "\003(\0132\035.google.privacy.dlp.v2.DlpJob\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"#\n\023CancelDlpJobReque" + - "st\022\014\n\004name\030\001 \001(\t\"#\n\023DeleteDlpJobRequest\022" + - "\014\n\004name\030\001 \001(\t\"\216\001\n\037CreateDeidentifyTempla" + - "teRequest\022\016\n\006parent\030\001 \001(\t\022F\n\023deidentify_" + - "template\030\002 \001(\0132).google.privacy.dlp.v2.D" + - "eidentifyTemplate\022\023\n\013template_id\030\003 \001(\t\"\250" + - "\001\n\037UpdateDeidentifyTemplateRequest\022\014\n\004na" + - "me\030\001 \001(\t\022F\n\023deidentify_template\030\002 \001(\0132)." + - "google.privacy.dlp.v2.DeidentifyTemplate" + - "\022/\n\013update_mask\030\003 \001(\0132\032.google.protobuf." + - "FieldMask\",\n\034GetDeidentifyTemplateReques" + - "t\022\014\n\004name\030\001 \001(\t\"W\n\036ListDeidentifyTemplat" + - "esRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030" + - "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\203\001\n\037ListDeident" + - "ifyTemplatesResponse\022G\n\024deidentify_templ" + - "ates\030\001 \003(\0132).google.privacy.dlp.v2.Deide" + - "ntifyTemplate\022\027\n\017next_page_token\030\002 \001(\t\"/" + - "\n\037DeleteDeidentifyTemplateRequest\022\014\n\004nam" + - "e\030\001 \001(\t\"\364\001\n\033LargeCustomDictionaryConfig\022" + - "<\n\013output_path\030\001 \001(\0132\'.google.privacy.dl" + - "p.v2.CloudStoragePath\022L\n\026cloud_storage_f" + - "ile_set\030\002 \001(\0132*.google.privacy.dlp.v2.Cl" + - "oudStorageFileSetH\000\022?\n\017big_query_field\030\003" + - " \001(\0132$.google.privacy.dlp.v2.BigQueryFie" + - "ldH\000B\010\n\006source\"\240\001\n\024StoredInfoTypeConfig\022" + - "\024\n\014display_name\030\001 \001(\t\022\023\n\013description\030\002 \001" + - "(\t\022U\n\027large_custom_dictionary\030\003 \001(\01322.go" + - "ogle.privacy.dlp.v2.LargeCustomDictionar" + - "yConfigH\000B\006\n\004type\"\356\001\n\025StoredInfoTypeVers" + - "ion\022;\n\006config\030\001 \001(\0132+.google.privacy.dlp" + - ".v2.StoredInfoTypeConfig\022/\n\013create_time\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\0229\n\005sta" + - "te\030\003 \001(\0162*.google.privacy.dlp.v2.StoredI" + - "nfoTypeState\022,\n\006errors\030\004 \003(\0132\034.google.pr" + - "ivacy.dlp.v2.Error\"\255\001\n\016StoredInfoType\022\014\n" + - "\004name\030\001 \001(\t\022E\n\017current_version\030\002 \001(\0132,.g" + + "scription\030\003 \001(\t\022/\n\013create_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013update_time\030" + + "\005 \001(\0132\032.google.protobuf.Timestamp\022<\n\016ins" + + "pect_config\030\006 \001(\0132$.google.privacy.dlp.v" + + "2.InspectConfig\"\363\001\n\022DeidentifyTemplate\022\014" + + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013de" + + "scription\030\003 \001(\t\022/\n\013create_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013update_time\030" + + "\005 \001(\0132\032.google.protobuf.Timestamp\022B\n\021dei" + + "dentify_config\030\006 \001(\0132\'.google.privacy.dl" + + "p.v2.DeidentifyConfig\"\\\n\005Error\022#\n\007detail" + + "s\030\001 \001(\0132\022.google.rpc.Status\022.\n\ntimestamp" + + "s\030\002 \003(\0132\032.google.protobuf.Timestamp\"\333\004\n\n" + + "JobTrigger\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022>\n\013inspect_j" + + "ob\030\004 \001(\0132\'.google.privacy.dlp.v2.Inspect" + + "JobConfigH\000\022;\n\010triggers\030\005 \003(\0132).google.p" + + "rivacy.dlp.v2.JobTrigger.Trigger\022,\n\006erro" + + "rs\030\006 \003(\0132\034.google.privacy.dlp.v2.Error\022/" + + "\n\013create_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\010 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0221\n\rlast_run_time\030\t \001(\0132" + + "\032.google.protobuf.Timestamp\0228\n\006status\030\n " + + "\001(\0162(.google.privacy.dlp.v2.JobTrigger.S" + + "tatus\032I\n\007Trigger\0223\n\010schedule\030\001 \001(\0132\037.goo" + + "gle.privacy.dlp.v2.ScheduleH\000B\t\n\007trigger" + + "\"H\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007HE" + + "ALTHY\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCANCELLED\020\003B\005\n\003jo" + + "b\"\375\002\n\006Action\022C\n\rsave_findings\030\001 \001(\0132*.go" + + "ogle.privacy.dlp.v2.Action.SaveFindingsH" + + "\000\022@\n\007pub_sub\030\002 \001(\0132-.google.privacy.dlp." + + "v2.Action.PublishToPubSubH\000\022U\n\027publish_s" + + "ummary_to_cscc\030\003 \001(\01322.google.privacy.dl" + + "p.v2.Action.PublishSummaryToCsccH\000\032Q\n\014Sa" + + "veFindings\022A\n\routput_config\030\001 \001(\0132*.goog" + + "le.privacy.dlp.v2.OutputStorageConfig\032 \n" + + "\017PublishToPubSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024Publi" + + "shSummaryToCsccB\010\n\006action\"\205\001\n\034CreateInsp" + + "ectTemplateRequest\022\016\n\006parent\030\001 \001(\t\022@\n\020in" + + "spect_template\030\002 \001(\0132&.google.privacy.dl" + + "p.v2.InspectTemplate\022\023\n\013template_id\030\003 \001(" + + "\t\"\237\001\n\034UpdateInspectTemplateRequest\022\014\n\004na" + + "me\030\001 \001(\t\022@\n\020inspect_template\030\002 \001(\0132&.goo" + + "gle.privacy.dlp.v2.InspectTemplate\022/\n\013up" + + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM" + + "ask\")\n\031GetInspectTemplateRequest\022\014\n\004name" + + "\030\001 \001(\t\"f\n\033ListInspectTemplatesRequest\022\016\n" + + "\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpag" + + "e_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\"z\n\034ListIn" + + "spectTemplatesResponse\022A\n\021inspect_templa" + + "tes\030\001 \003(\0132&.google.privacy.dlp.v2.Inspec" + + "tTemplate\022\027\n\017next_page_token\030\002 \001(\t\",\n\034De" + + "leteInspectTemplateRequest\022\014\n\004name\030\001 \001(\t" + + "\"u\n\027CreateJobTriggerRequest\022\016\n\006parent\030\001 " + + "\001(\t\0226\n\013job_trigger\030\002 \001(\0132!.google.privac" + + "y.dlp.v2.JobTrigger\022\022\n\ntrigger_id\030\003 \001(\t\"" + + "\220\001\n\027UpdateJobTriggerRequest\022\014\n\004name\030\001 \001(" + + "\t\0226\n\013job_trigger\030\002 \001(\0132!.google.privacy." + + "dlp.v2.JobTrigger\022/\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMask\"$\n\024GetJobTrig" + + "gerRequest\022\014\n\004name\030\001 \001(\t\"\276\001\n\023CreateDlpJo" + + "bRequest\022\016\n\006parent\030\001 \001(\t\022>\n\013inspect_job\030" + + "\002 \001(\0132\'.google.privacy.dlp.v2.InspectJob" + + "ConfigH\000\022@\n\010risk_job\030\003 \001(\0132,.google.priv" + + "acy.dlp.v2.RiskAnalysisJobConfigH\000\022\016\n\006jo" + + "b_id\030\004 \001(\tB\005\n\003job\"a\n\026ListJobTriggersRequ" + + "est\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\"k\n\027" + + "ListJobTriggersResponse\0227\n\014job_triggers\030" + + "\001 \003(\0132!.google.privacy.dlp.v2.JobTrigger" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\'\n\027DeleteJobTr" + + "iggerRequest\022\014\n\004name\030\001 \001(\t\"\335\001\n\020InspectJo" + + "bConfig\022<\n\016storage_config\030\001 \001(\0132$.google" + + ".privacy.dlp.v2.StorageConfig\022<\n\016inspect" + + "_config\030\002 \001(\0132$.google.privacy.dlp.v2.In" + + "spectConfig\022\035\n\025inspect_template_name\030\003 \001" + + "(\t\022.\n\007actions\030\004 \003(\0132\035.google.privacy.dlp" + + ".v2.Action\"\336\004\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022/\n\004t" + + "ype\030\002 \001(\0162!.google.privacy.dlp.v2.DlpJob" + + "Type\0225\n\005state\030\003 \001(\0162&.google.privacy.dlp" + + ".v2.DlpJob.JobState\022K\n\014risk_details\030\004 \001(" + + "\01323.google.privacy.dlp.v2.AnalyzeDataSou" + + "rceRiskDetailsH\000\022J\n\017inspect_details\030\005 \001(" + + "\0132/.google.privacy.dlp.v2.InspectDataSou" + + "rceDetailsH\000\022/\n\013create_time\030\006 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022.\n\nstart_time\030\007 \001(" + + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" + + "e\030\010 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020j" + + "ob_trigger_name\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034." + + "google.privacy.dlp.v2.Error\"c\n\010JobState\022" + + "\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006" + + "FAILED\020\005B\t\n\007details\" \n\020GetDlpJobRequest\022" + + "\014\n\004name\030\001 \001(\t\"\214\001\n\022ListDlpJobsRequest\022\016\n\006" + + "parent\030\004 \001(\t\022\016\n\006filter\030\001 \001(\t\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n\004type\030\005 \001(" + + "\0162!.google.privacy.dlp.v2.DlpJobType\"[\n\023" + + "ListDlpJobsResponse\022+\n\004jobs\030\001 \003(\0132\035.goog" + + "le.privacy.dlp.v2.DlpJob\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"#\n\023CancelDlpJobRequest\022\014\n\004name" + + "\030\001 \001(\t\"#\n\023DeleteDlpJobRequest\022\014\n\004name\030\001 " + + "\001(\t\"\216\001\n\037CreateDeidentifyTemplateRequest\022" + + "\016\n\006parent\030\001 \001(\t\022F\n\023deidentify_template\030\002" + + " \001(\0132).google.privacy.dlp.v2.DeidentifyT" + + "emplate\022\023\n\013template_id\030\003 \001(\t\"\250\001\n\037UpdateD" + + "eidentifyTemplateRequest\022\014\n\004name\030\001 \001(\t\022F" + + "\n\023deidentify_template\030\002 \001(\0132).google.pri" + + "vacy.dlp.v2.DeidentifyTemplate\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + ",\n\034GetDeidentifyTemplateRequest\022\014\n\004name\030" + + "\001 \001(\t\"i\n\036ListDeidentifyTemplatesRequest\022" + + "\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tp" + + "age_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\"\203\001\n\037Lis" + + "tDeidentifyTemplatesResponse\022G\n\024deidenti" + + "fy_templates\030\001 \003(\0132).google.privacy.dlp." + + "v2.DeidentifyTemplate\022\027\n\017next_page_token" + + "\030\002 \001(\t\"/\n\037DeleteDeidentifyTemplateReques" + + "t\022\014\n\004name\030\001 \001(\t\"\364\001\n\033LargeCustomDictionar" + + "yConfig\022<\n\013output_path\030\001 \001(\0132\'.google.pr" + + "ivacy.dlp.v2.CloudStoragePath\022L\n\026cloud_s" + + "torage_file_set\030\002 \001(\0132*.google.privacy.d" + + "lp.v2.CloudStorageFileSetH\000\022?\n\017big_query" + + "_field\030\003 \001(\0132$.google.privacy.dlp.v2.Big" + + "QueryFieldH\000B\010\n\006source\"\240\001\n\024StoredInfoTyp" + + "eConfig\022\024\n\014display_name\030\001 \001(\t\022\023\n\013descrip" + + "tion\030\002 \001(\t\022U\n\027large_custom_dictionary\030\003 " + + "\001(\01322.google.privacy.dlp.v2.LargeCustomD" + + "ictionaryConfigH\000B\006\n\004type\"\356\001\n\025StoredInfo" + + "TypeVersion\022;\n\006config\030\001 \001(\0132+.google.pri" + + "vacy.dlp.v2.StoredInfoTypeConfig\022/\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\0229\n\005state\030\003 \001(\0162*.google.privacy.dlp.v2" + + ".StoredInfoTypeState\022,\n\006errors\030\004 \003(\0132\034.g" + + "oogle.privacy.dlp.v2.Error\"\255\001\n\016StoredInf" + + "oType\022\014\n\004name\030\001 \001(\t\022E\n\017current_version\030\002" + + " \001(\0132,.google.privacy.dlp.v2.StoredInfoT" + + "ypeVersion\022F\n\020pending_versions\030\003 \003(\0132,.g" + "oogle.privacy.dlp.v2.StoredInfoTypeVersi" + - "on\022F\n\020pending_versions\030\003 \003(\0132,.google.pr" + - "ivacy.dlp.v2.StoredInfoTypeVersion\"\207\001\n\033C" + - "reateStoredInfoTypeRequest\022\016\n\006parent\030\001 \001" + - "(\t\022;\n\006config\030\002 \001(\0132+.google.privacy.dlp." + - "v2.StoredInfoTypeConfig\022\033\n\023stored_info_t" + - "ype_id\030\003 \001(\t\"\231\001\n\033UpdateStoredInfoTypeReq" + - "uest\022\014\n\004name\030\001 \001(\t\022;\n\006config\030\002 \001(\0132+.goo" + - "gle.privacy.dlp.v2.StoredInfoTypeConfig\022" + - "/\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" + - "ieldMask\"(\n\030GetStoredInfoTypeRequest\022\014\n\004" + - "name\030\001 \001(\t\"S\n\032ListStoredInfoTypesRequest" + - "\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\t" + - "page_size\030\003 \001(\005\"x\n\033ListStoredInfoTypesRe" + - "sponse\022@\n\021stored_info_types\030\001 \003(\0132%.goog" + - "le.privacy.dlp.v2.StoredInfoType\022\027\n\017next" + - "_page_token\030\002 \001(\t\"+\n\033DeleteStoredInfoTyp" + - "eRequest\022\014\n\004name\030\001 \001(\t*M\n\rContentOption\022" + - "\027\n\023CONTENT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT" + - "\020\001\022\021\n\rCONTENT_IMAGE\020\002*P\n\023InfoTypeSupport" + - "edBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022\013\n\007INSPE" + - "CT\020\001\022\021\n\rRISK_ANALYSIS\020\002*\273\001\n\022RelationalOp" + - "erator\022#\n\037RELATIONAL_OPERATOR_UNSPECIFIE" + - "D\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020\n\014G" + - "REATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREATER_" + - "THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_EQUALS\020" + - "\006\022\n\n\006EXISTS\020\007*R\n\nDlpJobType\022\034\n\030DLP_JOB_T" + - "YPE_UNSPECIFIED\020\000\022\017\n\013INSPECT_JOB\020\001\022\025\n\021RI" + - "SK_ANALYSIS_JOB\020\002*n\n\023StoredInfoTypeState" + - "\022&\n\"STORED_INFO_TYPE_STATE_UNSPECIFIED\020\000" + - "\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007" + - "INVALID\020\0042\251+\n\nDlpService\022\241\001\n\016InspectCont" + - "ent\022,.google.privacy.dlp.v2.InspectConte" + - "ntRequest\032-.google.privacy.dlp.v2.Inspec" + - "tContentResponse\"2\202\323\344\223\002,\"\'/v2/{parent=pr" + - "ojects/*}/content:inspect:\001*\022\225\001\n\013RedactI" + - "mage\022).google.privacy.dlp.v2.RedactImage" + - "Request\032*.google.privacy.dlp.v2.RedactIm" + - "ageResponse\"/\202\323\344\223\002)\"$/v2/{parent=project" + - "s/*}/image:redact:\001*\022\255\001\n\021DeidentifyConte" + - "nt\022/.google.privacy.dlp.v2.DeidentifyCon" + - "tentRequest\0320.google.privacy.dlp.v2.Deid" + - "entifyContentResponse\"5\202\323\344\223\002/\"*/v2/{pare" + - "nt=projects/*}/content:deidentify:\001*\022\255\001\n" + - "\021ReidentifyContent\022/.google.privacy.dlp." + - "v2.ReidentifyContentRequest\0320.google.pri" + - "vacy.dlp.v2.ReidentifyContentResponse\"5\202" + - "\323\344\223\002/\"*/v2/{parent=projects/*}/content:r" + - "eidentify:\001*\022\201\001\n\rListInfoTypes\022+.google." + - "privacy.dlp.v2.ListInfoTypesRequest\032,.go" + - "ogle.privacy.dlp.v2.ListInfoTypesRespons" + - "e\"\025\202\323\344\223\002\017\022\r/v2/infoTypes\022\335\001\n\025CreateInspe" + - "ctTemplate\0223.google.privacy.dlp.v2.Creat" + - "eInspectTemplateRequest\032&.google.privacy" + - ".dlp.v2.InspectTemplate\"g\202\323\344\223\002a\"-/v2/{pa" + - "rent=organizations/*}/inspectTemplates:\001" + - "*Z-\"(/v2/{parent=projects/*}/inspectTemp" + - "lates:\001*\022\335\001\n\025UpdateInspectTemplate\0223.goo" + - "gle.privacy.dlp.v2.UpdateInspectTemplate" + - "Request\032&.google.privacy.dlp.v2.InspectT" + - "emplate\"g\202\323\344\223\002a2-/v2/{name=organizations" + - "/*/inspectTemplates/*}:\001*Z-2(/v2/{name=p" + - "rojects/*/inspectTemplates/*}:\001*\022\321\001\n\022Get" + - "InspectTemplate\0220.google.privacy.dlp.v2." + - "GetInspectTemplateRequest\032&.google.priva" + - "cy.dlp.v2.InspectTemplate\"a\202\323\344\223\002[\022-/v2/{" + - "name=organizations/*/inspectTemplates/*}" + - "Z*\022(/v2/{name=projects/*/inspectTemplate" + - "s/*}\022\342\001\n\024ListInspectTemplates\0222.google.p" + - "rivacy.dlp.v2.ListInspectTemplatesReques" + - "t\0323.google.privacy.dlp.v2.ListInspectTem" + - "platesResponse\"a\202\323\344\223\002[\022-/v2/{parent=orga" + - "nizations/*}/inspectTemplatesZ*\022(/v2/{pa" + - "rent=projects/*}/inspectTemplates\022\307\001\n\025De" + - "leteInspectTemplate\0223.google.privacy.dlp" + - ".v2.DeleteInspectTemplateRequest\032\026.googl" + - "e.protobuf.Empty\"a\202\323\344\223\002[*-/v2/{name=orga" + - "nizations/*/inspectTemplates/*}Z**(/v2/{" + - "name=projects/*/inspectTemplates/*}\022\354\001\n\030" + - "CreateDeidentifyTemplate\0226.google.privac" + - "y.dlp.v2.CreateDeidentifyTemplateRequest" + - "\032).google.privacy.dlp.v2.DeidentifyTempl" + - "ate\"m\202\323\344\223\002g\"0/v2/{parent=organizations/*" + - "}/deidentifyTemplates:\001*Z0\"+/v2/{parent=" + - "projects/*}/deidentifyTemplates:\001*\022\354\001\n\030U" + - "pdateDeidentifyTemplate\0226.google.privacy" + - ".dlp.v2.UpdateDeidentifyTemplateRequest\032" + - ").google.privacy.dlp.v2.DeidentifyTempla" + - "te\"m\202\323\344\223\002g20/v2/{name=organizations/*/de" + - "identifyTemplates/*}:\001*Z02+/v2/{name=pro" + - "jects/*/deidentifyTemplates/*}:\001*\022\340\001\n\025Ge" + - "tDeidentifyTemplate\0223.google.privacy.dlp" + - ".v2.GetDeidentifyTemplateRequest\032).googl" + - "e.privacy.dlp.v2.DeidentifyTemplate\"g\202\323\344" + - "\223\002a\0220/v2/{name=organizations/*/deidentif" + - "yTemplates/*}Z-\022+/v2/{name=projects/*/de" + - "identifyTemplates/*}\022\361\001\n\027ListDeidentifyT" + - "emplates\0225.google.privacy.dlp.v2.ListDei" + - "dentifyTemplatesRequest\0326.google.privacy" + - ".dlp.v2.ListDeidentifyTemplatesResponse\"" + - "g\202\323\344\223\002a\0220/v2/{parent=organizations/*}/de" + - "identifyTemplatesZ-\022+/v2/{parent=project" + - "s/*}/deidentifyTemplates\022\323\001\n\030DeleteDeide" + - "ntifyTemplate\0226.google.privacy.dlp.v2.De" + - "leteDeidentifyTemplateRequest\032\026.google.p" + - "rotobuf.Empty\"g\202\323\344\223\002a*0/v2/{name=organiz" + - "ations/*/deidentifyTemplates/*}Z-*+/v2/{" + - "name=projects/*/deidentifyTemplates/*}\022\225" + - "\001\n\020CreateJobTrigger\022..google.privacy.dlp" + - ".v2.CreateJobTriggerRequest\032!.google.pri" + - "vacy.dlp.v2.JobTrigger\".\202\323\344\223\002(\"#/v2/{par" + - "ent=projects/*}/jobTriggers:\001*\022\225\001\n\020Updat" + - "eJobTrigger\022..google.privacy.dlp.v2.Upda" + - "teJobTriggerRequest\032!.google.privacy.dlp" + - ".v2.JobTrigger\".\202\323\344\223\002(2#/v2/{name=projec" + - "ts/*/jobTriggers/*}:\001*\022\214\001\n\rGetJobTrigger" + - "\022+.google.privacy.dlp.v2.GetJobTriggerRe" + - "quest\032!.google.privacy.dlp.v2.JobTrigger" + - "\"+\202\323\344\223\002%\022#/v2/{name=projects/*/jobTrigge" + - "rs/*}\022\235\001\n\017ListJobTriggers\022-.google.priva" + - "cy.dlp.v2.ListJobTriggersRequest\032..googl" + - "e.privacy.dlp.v2.ListJobTriggersResponse" + - "\"+\202\323\344\223\002%\022#/v2/{parent=projects/*}/jobTri" + - "ggers\022\207\001\n\020DeleteJobTrigger\022..google.priv" + - "acy.dlp.v2.DeleteJobTriggerRequest\032\026.goo" + - "gle.protobuf.Empty\"+\202\323\344\223\002%*#/v2/{name=pr" + - "ojects/*/jobTriggers/*}\022\205\001\n\014CreateDlpJob" + - "\022*.google.privacy.dlp.v2.CreateDlpJobReq" + - "uest\032\035.google.privacy.dlp.v2.DlpJob\"*\202\323\344" + - "\223\002$\"\037/v2/{parent=projects/*}/dlpJobs:\001*\022" + - "\215\001\n\013ListDlpJobs\022).google.privacy.dlp.v2." + - "ListDlpJobsRequest\032*.google.privacy.dlp." + - "v2.ListDlpJobsResponse\"\'\202\323\344\223\002!\022\037/v2/{par" + - "ent=projects/*}/dlpJobs\022|\n\tGetDlpJob\022\'.g" + - "oogle.privacy.dlp.v2.GetDlpJobRequest\032\035." + - "google.privacy.dlp.v2.DlpJob\"\'\202\323\344\223\002!\022\037/v" + - "2/{name=projects/*/dlpJobs/*}\022{\n\014DeleteD" + - "lpJob\022*.google.privacy.dlp.v2.DeleteDlpJ" + - "obRequest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002" + - "!*\037/v2/{name=projects/*/dlpJobs/*}\022\205\001\n\014C" + - "ancelDlpJob\022*.google.privacy.dlp.v2.Canc" + - "elDlpJobRequest\032\026.google.protobuf.Empty\"" + - "1\202\323\344\223\002+\"&/v2/{name=projects/*/dlpJobs/*}" + - ":cancel:\001*\022\330\001\n\024CreateStoredInfoType\0222.go" + - "ogle.privacy.dlp.v2.CreateStoredInfoType" + - "Request\032%.google.privacy.dlp.v2.StoredIn" + - "foType\"e\202\323\344\223\002_\",/v2/{parent=organization" + - "s/*}/storedInfoTypes:\001*Z,\"\'/v2/{parent=p" + - "rojects/*}/storedInfoTypes:\001*\022\330\001\n\024Update" + - "StoredInfoType\0222.google.privacy.dlp.v2.U" + - "pdateStoredInfoTypeRequest\032%.google.priv" + - "acy.dlp.v2.StoredInfoType\"e\202\323\344\223\002_2,/v2/{" + - "name=organizations/*/storedInfoTypes/*}:" + - "\001*Z,2\'/v2/{name=projects/*/storedInfoTyp" + - "es/*}:\001*\022\314\001\n\021GetStoredInfoType\022/.google." + - "privacy.dlp.v2.GetStoredInfoTypeRequest\032" + - "%.google.privacy.dlp.v2.StoredInfoType\"_" + - "\202\323\344\223\002Y\022,/v2/{name=organizations/*/stored" + - "InfoTypes/*}Z)\022\'/v2/{name=projects/*/sto" + - "redInfoTypes/*}\022\335\001\n\023ListStoredInfoTypes\022" + - "1.google.privacy.dlp.v2.ListStoredInfoTy" + - "pesRequest\0322.google.privacy.dlp.v2.ListS" + - "toredInfoTypesResponse\"_\202\323\344\223\002Y\022,/v2/{par" + - "ent=organizations/*}/storedInfoTypesZ)\022\'" + - "/v2/{parent=projects/*}/storedInfoTypes\022" + - "\303\001\n\024DeleteStoredInfoType\0222.google.privac" + - "y.dlp.v2.DeleteStoredInfoTypeRequest\032\026.g" + - "oogle.protobuf.Empty\"_\202\323\344\223\002Y*,/v2/{name=" + - "organizations/*/storedInfoTypes/*}Z)*\'/v" + - "2/{name=projects/*/storedInfoTypes/*}B\215\001" + - "\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001Z" + - "8google.golang.org/genproto/googleapis/p" + - "rivacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312" + - "\002\023Google\\Cloud\\Dlp\\V2b\006proto3" + "on\"\207\001\n\033CreateStoredInfoTypeRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022;\n\006config\030\002 \001(\0132+.google.priv" + + "acy.dlp.v2.StoredInfoTypeConfig\022\033\n\023store" + + "d_info_type_id\030\003 \001(\t\"\231\001\n\033UpdateStoredInf" + + "oTypeRequest\022\014\n\004name\030\001 \001(\t\022;\n\006config\030\002 \001" + + "(\0132+.google.privacy.dlp.v2.StoredInfoTyp" + + "eConfig\022/\n\013update_mask\030\003 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"(\n\030GetStoredInfoTypeReq" + + "uest\022\014\n\004name\030\001 \001(\t\"e\n\032ListStoredInfoType" + + "sRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002" + + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(" + + "\t\"x\n\033ListStoredInfoTypesResponse\022@\n\021stor" + + "ed_info_types\030\001 \003(\0132%.google.privacy.dlp" + + ".v2.StoredInfoType\022\027\n\017next_page_token\030\002 " + + "\001(\t\"+\n\033DeleteStoredInfoTypeRequest\022\014\n\004na" + + "me\030\001 \001(\t*M\n\rContentOption\022\027\n\023CONTENT_UNS" + + "PECIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_" + + "IMAGE\020\002*\215\001\n\014MatchingType\022\035\n\031MATCHING_TYP" + + "E_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE_FULL_MA" + + "TCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MATCH\020\002\022\037" + + "\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*P\n\023InfoT" + + "ypeSupportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020" + + "\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*\273\001\n\022Re" + + "lationalOperator\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\tLESS_THAN\020\004\022\032" + + "\n\026GREATER_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_" + + "OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*R\n\nDlpJobType\022\034\n" + + "\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INSPECT_J" + + "OB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023StoredInf" + + "oTypeState\022&\n\"STORED_INFO_TYPE_STATE_UNS" + + "PECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n\n\006FA" + + "ILED\020\003\022\013\n\007INVALID\020\0042\251+\n\nDlpService\022\241\001\n\016I" + + "nspectContent\022,.google.privacy.dlp.v2.In" + + "spectContentRequest\032-.google.privacy.dlp" + + ".v2.InspectContentResponse\"2\202\323\344\223\002,\"\'/v2/" + + "{parent=projects/*}/content:inspect:\001*\022\225" + + "\001\n\013RedactImage\022).google.privacy.dlp.v2.R" + + "edactImageRequest\032*.google.privacy.dlp.v" + + "2.RedactImageResponse\"/\202\323\344\223\002)\"$/v2/{pare" + + "nt=projects/*}/image:redact:\001*\022\255\001\n\021Deide" + + "ntifyContent\022/.google.privacy.dlp.v2.Dei" + + "dentifyContentRequest\0320.google.privacy.d" + + "lp.v2.DeidentifyContentResponse\"5\202\323\344\223\002/\"" + + "*/v2/{parent=projects/*}/content:deident" + + "ify:\001*\022\255\001\n\021ReidentifyContent\022/.google.pr" + + "ivacy.dlp.v2.ReidentifyContentRequest\0320." + + "google.privacy.dlp.v2.ReidentifyContentR" + + "esponse\"5\202\323\344\223\002/\"*/v2/{parent=projects/*}" + + "/content:reidentify:\001*\022\201\001\n\rListInfoTypes" + + "\022+.google.privacy.dlp.v2.ListInfoTypesRe" + + "quest\032,.google.privacy.dlp.v2.ListInfoTy" + + "pesResponse\"\025\202\323\344\223\002\017\022\r/v2/infoTypes\022\335\001\n\025C" + + "reateInspectTemplate\0223.google.privacy.dl" + + "p.v2.CreateInspectTemplateRequest\032&.goog" + + "le.privacy.dlp.v2.InspectTemplate\"g\202\323\344\223\002" + + "a\"-/v2/{parent=organizations/*}/inspectT" + + "emplates:\001*Z-\"(/v2/{parent=projects/*}/i" + + "nspectTemplates:\001*\022\335\001\n\025UpdateInspectTemp" + + "late\0223.google.privacy.dlp.v2.UpdateInspe" + + "ctTemplateRequest\032&.google.privacy.dlp.v" + + "2.InspectTemplate\"g\202\323\344\223\002a2-/v2/{name=org" + + "anizations/*/inspectTemplates/*}:\001*Z-2(/" + + "v2/{name=projects/*/inspectTemplates/*}:" + + "\001*\022\321\001\n\022GetInspectTemplate\0220.google.priva" + + "cy.dlp.v2.GetInspectTemplateRequest\032&.go" + + "ogle.privacy.dlp.v2.InspectTemplate\"a\202\323\344" + + "\223\002[\022-/v2/{name=organizations/*/inspectTe" + + "mplates/*}Z*\022(/v2/{name=projects/*/inspe" + + "ctTemplates/*}\022\342\001\n\024ListInspectTemplates\022" + + "2.google.privacy.dlp.v2.ListInspectTempl" + + "atesRequest\0323.google.privacy.dlp.v2.List" + + "InspectTemplatesResponse\"a\202\323\344\223\002[\022-/v2/{p" + + "arent=organizations/*}/inspectTemplatesZ" + + "*\022(/v2/{parent=projects/*}/inspectTempla" + + "tes\022\307\001\n\025DeleteInspectTemplate\0223.google.p" + + "rivacy.dlp.v2.DeleteInspectTemplateReque" + + "st\032\026.google.protobuf.Empty\"a\202\323\344\223\002[*-/v2/" + + "{name=organizations/*/inspectTemplates/*" + + "}Z**(/v2/{name=projects/*/inspectTemplat" + + "es/*}\022\354\001\n\030CreateDeidentifyTemplate\0226.goo" + + "gle.privacy.dlp.v2.CreateDeidentifyTempl" + + "ateRequest\032).google.privacy.dlp.v2.Deide" + + "ntifyTemplate\"m\202\323\344\223\002g\"0/v2/{parent=organ" + + "izations/*}/deidentifyTemplates:\001*Z0\"+/v" + + "2/{parent=projects/*}/deidentifyTemplate" + + "s:\001*\022\354\001\n\030UpdateDeidentifyTemplate\0226.goog" + + "le.privacy.dlp.v2.UpdateDeidentifyTempla" + + "teRequest\032).google.privacy.dlp.v2.Deiden" + + "tifyTemplate\"m\202\323\344\223\002g20/v2/{name=organiza" + + "tions/*/deidentifyTemplates/*}:\001*Z02+/v2" + + "/{name=projects/*/deidentifyTemplates/*}" + + ":\001*\022\340\001\n\025GetDeidentifyTemplate\0223.google.p" + + "rivacy.dlp.v2.GetDeidentifyTemplateReque" + + "st\032).google.privacy.dlp.v2.DeidentifyTem" + + "plate\"g\202\323\344\223\002a\0220/v2/{name=organizations/*" + + "/deidentifyTemplates/*}Z-\022+/v2/{name=pro" + + "jects/*/deidentifyTemplates/*}\022\361\001\n\027ListD" + + "eidentifyTemplates\0225.google.privacy.dlp." + + "v2.ListDeidentifyTemplatesRequest\0326.goog" + + "le.privacy.dlp.v2.ListDeidentifyTemplate" + + "sResponse\"g\202\323\344\223\002a\0220/v2/{parent=organizat" + + "ions/*}/deidentifyTemplatesZ-\022+/v2/{pare" + + "nt=projects/*}/deidentifyTemplates\022\323\001\n\030D" + + "eleteDeidentifyTemplate\0226.google.privacy" + + ".dlp.v2.DeleteDeidentifyTemplateRequest\032" + + "\026.google.protobuf.Empty\"g\202\323\344\223\002a*0/v2/{na" + + "me=organizations/*/deidentifyTemplates/*" + + "}Z-*+/v2/{name=projects/*/deidentifyTemp" + + "lates/*}\022\225\001\n\020CreateJobTrigger\022..google.p" + + "rivacy.dlp.v2.CreateJobTriggerRequest\032!." + + "google.privacy.dlp.v2.JobTrigger\".\202\323\344\223\002(" + + "\"#/v2/{parent=projects/*}/jobTriggers:\001*" + + "\022\225\001\n\020UpdateJobTrigger\022..google.privacy.d" + + "lp.v2.UpdateJobTriggerRequest\032!.google.p" + + "rivacy.dlp.v2.JobTrigger\".\202\323\344\223\002(2#/v2/{n" + + "ame=projects/*/jobTriggers/*}:\001*\022\214\001\n\rGet" + + "JobTrigger\022+.google.privacy.dlp.v2.GetJo" + + "bTriggerRequest\032!.google.privacy.dlp.v2." + + "JobTrigger\"+\202\323\344\223\002%\022#/v2/{name=projects/*" + + "/jobTriggers/*}\022\235\001\n\017ListJobTriggers\022-.go" + + "ogle.privacy.dlp.v2.ListJobTriggersReque" + + "st\032..google.privacy.dlp.v2.ListJobTrigge" + + "rsResponse\"+\202\323\344\223\002%\022#/v2/{parent=projects" + + "/*}/jobTriggers\022\207\001\n\020DeleteJobTrigger\022..g" + + "oogle.privacy.dlp.v2.DeleteJobTriggerReq" + + "uest\032\026.google.protobuf.Empty\"+\202\323\344\223\002%*#/v" + + "2/{name=projects/*/jobTriggers/*}\022\205\001\n\014Cr" + + "eateDlpJob\022*.google.privacy.dlp.v2.Creat" + + "eDlpJobRequest\032\035.google.privacy.dlp.v2.D" + + "lpJob\"*\202\323\344\223\002$\"\037/v2/{parent=projects/*}/d" + + "lpJobs:\001*\022\215\001\n\013ListDlpJobs\022).google.priva" + + "cy.dlp.v2.ListDlpJobsRequest\032*.google.pr" + + "ivacy.dlp.v2.ListDlpJobsResponse\"\'\202\323\344\223\002!" + + "\022\037/v2/{parent=projects/*}/dlpJobs\022|\n\tGet" + + "DlpJob\022\'.google.privacy.dlp.v2.GetDlpJob" + + "Request\032\035.google.privacy.dlp.v2.DlpJob\"\'" + + "\202\323\344\223\002!\022\037/v2/{name=projects/*/dlpJobs/*}\022" + + "{\n\014DeleteDlpJob\022*.google.privacy.dlp.v2." + + "DeleteDlpJobRequest\032\026.google.protobuf.Em" + + "pty\"\'\202\323\344\223\002!*\037/v2/{name=projects/*/dlpJob" + + "s/*}\022\205\001\n\014CancelDlpJob\022*.google.privacy.d" + + "lp.v2.CancelDlpJobRequest\032\026.google.proto" + + "buf.Empty\"1\202\323\344\223\002+\"&/v2/{name=projects/*/" + + "dlpJobs/*}:cancel:\001*\022\330\001\n\024CreateStoredInf" + + "oType\0222.google.privacy.dlp.v2.CreateStor" + + "edInfoTypeRequest\032%.google.privacy.dlp.v" + + "2.StoredInfoType\"e\202\323\344\223\002_\",/v2/{parent=or" + + "ganizations/*}/storedInfoTypes:\001*Z,\"\'/v2" + + "/{parent=projects/*}/storedInfoTypes:\001*\022" + + "\330\001\n\024UpdateStoredInfoType\0222.google.privac" + + "y.dlp.v2.UpdateStoredInfoTypeRequest\032%.g" + + "oogle.privacy.dlp.v2.StoredInfoType\"e\202\323\344" + + "\223\002_2,/v2/{name=organizations/*/storedInf" + + "oTypes/*}:\001*Z,2\'/v2/{name=projects/*/sto" + + "redInfoTypes/*}:\001*\022\314\001\n\021GetStoredInfoType" + + "\022/.google.privacy.dlp.v2.GetStoredInfoTy" + + "peRequest\032%.google.privacy.dlp.v2.Stored" + + "InfoType\"_\202\323\344\223\002Y\022,/v2/{name=organization" + + "s/*/storedInfoTypes/*}Z)\022\'/v2/{name=proj" + + "ects/*/storedInfoTypes/*}\022\335\001\n\023ListStored" + + "InfoTypes\0221.google.privacy.dlp.v2.ListSt" + + "oredInfoTypesRequest\0322.google.privacy.dl" + + "p.v2.ListStoredInfoTypesResponse\"_\202\323\344\223\002Y" + + "\022,/v2/{parent=organizations/*}/storedInf" + + "oTypesZ)\022\'/v2/{parent=projects/*}/stored" + + "InfoTypes\022\303\001\n\024DeleteStoredInfoType\0222.goo" + + "gle.privacy.dlp.v2.DeleteStoredInfoTypeR" + + "equest\032\026.google.protobuf.Empty\"_\202\323\344\223\002Y*," + + "/v2/{name=organizations/*/storedInfoType" + + "s/*}Z)*\'/v2/{name=projects/*/storedInfoT" + + "ypes/*}B\215\001\n\031com.google.privacy.dlp.v2B\010D" + + "lpProtoP\001Z8google.golang.org/genproto/go" + + "ogleapis/privacy/dlp/v2;dlp\252\002\023Google.Clo" + + "ud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1552,12 +1595,36 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.type.DayOfWeekProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), }, assigner); - internal_static_google_privacy_dlp_v2_InspectConfig_descriptor = + internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor, + new java.lang.String[] { "InfoTypes", }); + internal_static_google_privacy_dlp_v2_ExclusionRule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_privacy_dlp_v2_ExclusionRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ExclusionRule_descriptor, + new java.lang.String[] { "Dictionary", "Regex", "ExcludeInfoTypes", "MatchingType", "Type", }); + internal_static_google_privacy_dlp_v2_InspectionRule_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_privacy_dlp_v2_InspectionRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_InspectionRule_descriptor, + new java.lang.String[] { "HotwordRule", "ExclusionRule", "Type", }); + internal_static_google_privacy_dlp_v2_InspectionRuleSet_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_privacy_dlp_v2_InspectionRuleSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_InspectionRuleSet_descriptor, + new java.lang.String[] { "InfoTypes", "Rules", }); + internal_static_google_privacy_dlp_v2_InspectConfig_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_privacy_dlp_v2_InspectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectConfig_descriptor, - new java.lang.String[] { "InfoTypes", "MinLikelihood", "Limits", "IncludeQuote", "ExcludeInfoTypes", "CustomInfoTypes", "ContentOptions", }); + new java.lang.String[] { "InfoTypes", "MinLikelihood", "Limits", "IncludeQuote", "ExcludeInfoTypes", "CustomInfoTypes", "ContentOptions", "RuleSet", }); internal_static_google_privacy_dlp_v2_InspectConfig_FindingLimits_descriptor = internal_static_google_privacy_dlp_v2_InspectConfig_descriptor.getNestedTypes().get(0); internal_static_google_privacy_dlp_v2_InspectConfig_FindingLimits_fieldAccessorTable = new @@ -1571,19 +1638,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_InspectConfig_FindingLimits_InfoTypeLimit_descriptor, new java.lang.String[] { "InfoType", "MaxFindings", }); internal_static_google_privacy_dlp_v2_ByteContentItem_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(5); internal_static_google_privacy_dlp_v2_ByteContentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ByteContentItem_descriptor, new java.lang.String[] { "Type", "Data", }); internal_static_google_privacy_dlp_v2_ContentItem_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(6); internal_static_google_privacy_dlp_v2_ContentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ContentItem_descriptor, new java.lang.String[] { "Value", "Table", "ByteItem", "DataItem", }); internal_static_google_privacy_dlp_v2_Table_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(7); internal_static_google_privacy_dlp_v2_Table_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Table_descriptor, @@ -1595,67 +1662,67 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_Table_Row_descriptor, new java.lang.String[] { "Values", }); internal_static_google_privacy_dlp_v2_InspectResult_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_privacy_dlp_v2_InspectResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectResult_descriptor, new java.lang.String[] { "Findings", "FindingsTruncated", }); internal_static_google_privacy_dlp_v2_Finding_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_privacy_dlp_v2_Finding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Finding_descriptor, new java.lang.String[] { "Quote", "InfoType", "Likelihood", "Location", "CreateTime", "QuoteInfo", }); internal_static_google_privacy_dlp_v2_Location_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(10); internal_static_google_privacy_dlp_v2_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Location_descriptor, new java.lang.String[] { "ByteRange", "CodepointRange", "ContentLocations", }); internal_static_google_privacy_dlp_v2_ContentLocation_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(11); internal_static_google_privacy_dlp_v2_ContentLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ContentLocation_descriptor, new java.lang.String[] { "ContainerName", "RecordLocation", "ImageLocation", "DocumentLocation", "ContainerTimestamp", "ContainerVersion", "Location", }); internal_static_google_privacy_dlp_v2_DocumentLocation_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_privacy_dlp_v2_DocumentLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DocumentLocation_descriptor, new java.lang.String[] { "FileOffset", }); internal_static_google_privacy_dlp_v2_RecordLocation_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_privacy_dlp_v2_RecordLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordLocation_descriptor, new java.lang.String[] { "RecordKey", "FieldId", "TableLocation", }); internal_static_google_privacy_dlp_v2_TableLocation_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_privacy_dlp_v2_TableLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableLocation_descriptor, new java.lang.String[] { "RowIndex", }); internal_static_google_privacy_dlp_v2_Range_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(15); internal_static_google_privacy_dlp_v2_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Range_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_google_privacy_dlp_v2_ImageLocation_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_privacy_dlp_v2_ImageLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ImageLocation_descriptor, new java.lang.String[] { "BoundingBoxes", }); internal_static_google_privacy_dlp_v2_BoundingBox_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(17); internal_static_google_privacy_dlp_v2_BoundingBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BoundingBox_descriptor, new java.lang.String[] { "Top", "Left", "Width", "Height", }); internal_static_google_privacy_dlp_v2_RedactImageRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_privacy_dlp_v2_RedactImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactImageRequest_descriptor, @@ -1667,67 +1734,67 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_RedactImageRequest_ImageRedactionConfig_descriptor, new java.lang.String[] { "InfoType", "RedactAllText", "RedactionColor", "Target", }); internal_static_google_privacy_dlp_v2_Color_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_privacy_dlp_v2_Color_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Color_descriptor, new java.lang.String[] { "Red", "Green", "Blue", }); internal_static_google_privacy_dlp_v2_RedactImageResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(20); internal_static_google_privacy_dlp_v2_RedactImageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactImageResponse_descriptor, new java.lang.String[] { "RedactedImage", "ExtractedText", "InspectResult", }); internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(21); internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_descriptor, new java.lang.String[] { "Parent", "DeidentifyConfig", "InspectConfig", "Item", "InspectTemplateName", "DeidentifyTemplateName", }); internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(22); internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_descriptor, new java.lang.String[] { "Item", "Overview", }); internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(23); internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_descriptor, new java.lang.String[] { "Parent", "ReidentifyConfig", "InspectConfig", "Item", "InspectTemplateName", "ReidentifyTemplateName", }); internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(24); internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_descriptor, new java.lang.String[] { "Item", "Overview", }); internal_static_google_privacy_dlp_v2_InspectContentRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(25); internal_static_google_privacy_dlp_v2_InspectContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectContentRequest_descriptor, new java.lang.String[] { "Parent", "InspectConfig", "Item", "InspectTemplateName", }); internal_static_google_privacy_dlp_v2_InspectContentResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(26); internal_static_google_privacy_dlp_v2_InspectContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectContentResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_google_privacy_dlp_v2_OutputStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(27); internal_static_google_privacy_dlp_v2_OutputStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OutputStorageConfig_descriptor, new java.lang.String[] { "Table", "OutputSchema", "Type", }); internal_static_google_privacy_dlp_v2_InfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(28); internal_static_google_privacy_dlp_v2_InfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeStats_descriptor, new java.lang.String[] { "InfoType", "Count", }); internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(29); internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_descriptor, @@ -1745,37 +1812,37 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_Result_descriptor, new java.lang.String[] { "ProcessedBytes", "TotalEstimatedBytes", "InfoTypeStats", }); internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(30); internal_static_google_privacy_dlp_v2_InfoTypeDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor, new java.lang.String[] { "Name", "DisplayName", "SupportedBy", }); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(31); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor, new java.lang.String[] { "LanguageCode", "Filter", }); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(32); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor, new java.lang.String[] { "InfoTypes", }); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(33); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor, new java.lang.String[] { "PrivacyMetric", "SourceTable", "Actions", }); internal_static_google_privacy_dlp_v2_QuasiId_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(34); internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuasiId_descriptor, new java.lang.String[] { "Field", "InfoType", "CustomTag", "Inferred", "Tag", }); internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(35); internal_static_google_privacy_dlp_v2_StatisticalTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor, @@ -1787,7 +1854,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_StatisticalTable_QuasiIdentifierField_descriptor, new java.lang.String[] { "Field", "CustomTag", }); internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(36); internal_static_google_privacy_dlp_v2_PrivacyMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor, @@ -1847,7 +1914,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_PrivacyMetric_DeltaPresenceEstimationConfig_descriptor, new java.lang.String[] { "QuasiIds", "RegionCode", "AuxiliaryTables", }); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(37); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor, @@ -1943,25 +2010,25 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket_descriptor, new java.lang.String[] { "MinProbability", "MaxProbability", "BucketSize", "BucketValues", "BucketValueCount", }); internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(38); internal_static_google_privacy_dlp_v2_ValueFrequency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor, new java.lang.String[] { "Value", "Count", }); internal_static_google_privacy_dlp_v2_Value_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(39); internal_static_google_privacy_dlp_v2_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Value_descriptor, new java.lang.String[] { "IntegerValue", "FloatValue", "StringValue", "BooleanValue", "TimestampValue", "TimeValue", "DateValue", "DayOfWeekValue", "Type", }); internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(40); internal_static_google_privacy_dlp_v2_QuoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor, new java.lang.String[] { "DateTime", "ParsedQuote", }); internal_static_google_privacy_dlp_v2_DateTime_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(41); internal_static_google_privacy_dlp_v2_DateTime_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateTime_descriptor, @@ -1973,67 +2040,67 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_DateTime_TimeZone_descriptor, new java.lang.String[] { "OffsetMinutes", }); internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(42); internal_static_google_privacy_dlp_v2_DeidentifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor, new java.lang.String[] { "InfoTypeTransformations", "RecordTransformations", "Transformation", }); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(43); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor, new java.lang.String[] { "ReplaceConfig", "RedactConfig", "CharacterMaskConfig", "CryptoReplaceFfxFpeConfig", "FixedSizeBucketingConfig", "BucketingConfig", "ReplaceWithInfoTypeConfig", "TimePartConfig", "CryptoHashConfig", "DateShiftConfig", "Transformation", }); internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(44); internal_static_google_privacy_dlp_v2_TimePartConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor, new java.lang.String[] { "PartToExtract", }); internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(45); internal_static_google_privacy_dlp_v2_CryptoHashConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor, new java.lang.String[] { "CryptoKey", }); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(46); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor, new java.lang.String[] { "NewValue", }); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(47); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor, new java.lang.String[] { }); internal_static_google_privacy_dlp_v2_RedactConfig_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(48); internal_static_google_privacy_dlp_v2_RedactConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactConfig_descriptor, new java.lang.String[] { }); internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(49); internal_static_google_privacy_dlp_v2_CharsToIgnore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor, new java.lang.String[] { "CharactersToSkip", "CommonCharactersToIgnore", "Characters", }); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(50); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor, new java.lang.String[] { "MaskingCharacter", "NumberToMask", "ReverseOrder", "CharactersToIgnore", }); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(51); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor, new java.lang.String[] { "LowerBound", "UpperBound", "BucketSize", }); internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(52); internal_static_google_privacy_dlp_v2_BucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor, @@ -2045,43 +2112,43 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_BucketingConfig_Bucket_descriptor, new java.lang.String[] { "Min", "Max", "ReplacementValue", }); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(53); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor, new java.lang.String[] { "CryptoKey", "Context", "CommonAlphabet", "CustomAlphabet", "Radix", "SurrogateInfoType", "Alphabet", }); internal_static_google_privacy_dlp_v2_CryptoKey_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(54); internal_static_google_privacy_dlp_v2_CryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoKey_descriptor, new java.lang.String[] { "Transient", "Unwrapped", "KmsWrapped", "Source", }); internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(55); internal_static_google_privacy_dlp_v2_TransientCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(56); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor, new java.lang.String[] { "Key", }); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(57); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor, new java.lang.String[] { "WrappedKey", "CryptoKeyName", }); internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(58); internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor, new java.lang.String[] { "UpperBoundDays", "LowerBoundDays", "Context", "CryptoKey", "Method", }); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(59); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor, @@ -2093,25 +2160,25 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_InfoTypeTransformations_InfoTypeTransformation_descriptor, new java.lang.String[] { "InfoTypes", "PrimitiveTransformation", }); internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(60); internal_static_google_privacy_dlp_v2_FieldTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor, new java.lang.String[] { "Fields", "Condition", "PrimitiveTransformation", "InfoTypeTransformations", "Transformation", }); internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(61); internal_static_google_privacy_dlp_v2_RecordTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor, new java.lang.String[] { "FieldTransformations", "RecordSuppressions", }); internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(62); internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor, new java.lang.String[] { "Condition", }); internal_static_google_privacy_dlp_v2_RecordCondition_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(63); internal_static_google_privacy_dlp_v2_RecordCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordCondition_descriptor, @@ -2135,13 +2202,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_RecordCondition_Expressions_descriptor, new java.lang.String[] { "LogicalOperator", "Conditions", "Type", }); internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(64); internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor, new java.lang.String[] { "TransformedBytes", "TransformationSummaries", }); internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(65); internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor, @@ -2153,31 +2220,31 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_descriptor, new java.lang.String[] { "Count", "Code", "Details", }); internal_static_google_privacy_dlp_v2_Schedule_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(66); internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Schedule_descriptor, new java.lang.String[] { "RecurrencePeriodDuration", "Option", }); internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(67); internal_static_google_privacy_dlp_v2_InspectTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor, new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "InspectConfig", }); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(68); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor, new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "DeidentifyConfig", }); internal_static_google_privacy_dlp_v2_Error_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(69); internal_static_google_privacy_dlp_v2_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Error_descriptor, new java.lang.String[] { "Details", "Timestamps", }); internal_static_google_privacy_dlp_v2_JobTrigger_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(70); internal_static_google_privacy_dlp_v2_JobTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_JobTrigger_descriptor, @@ -2189,7 +2256,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_JobTrigger_Trigger_descriptor, new java.lang.String[] { "Schedule", "Trigger", }); internal_static_google_privacy_dlp_v2_Action_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(71); internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_descriptor, @@ -2213,217 +2280,217 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor, new java.lang.String[] { }); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(72); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor, new java.lang.String[] { "Parent", "InspectTemplate", "TemplateId", }); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(73); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor, new java.lang.String[] { "Name", "InspectTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(74); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(75); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + new java.lang.String[] { "Parent", "PageToken", "PageSize", "OrderBy", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(76); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor, new java.lang.String[] { "InspectTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(77); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(78); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor, new java.lang.String[] { "Parent", "JobTrigger", "TriggerId", }); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(79); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor, new java.lang.String[] { "Name", "JobTrigger", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(80); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(81); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor, new java.lang.String[] { "Parent", "InspectJob", "RiskJob", "JobId", "Job", }); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(82); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor, new java.lang.String[] { "Parent", "PageToken", "PageSize", "OrderBy", }); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(83); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor, new java.lang.String[] { "JobTriggers", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(84); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(85); internal_static_google_privacy_dlp_v2_InspectJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor, new java.lang.String[] { "StorageConfig", "InspectConfig", "InspectTemplateName", "Actions", }); internal_static_google_privacy_dlp_v2_DlpJob_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(86); internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DlpJob_descriptor, new java.lang.String[] { "Name", "Type", "State", "RiskDetails", "InspectDetails", "CreateTime", "StartTime", "EndTime", "JobTriggerName", "Errors", "Details", }); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(87); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(88); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor, new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", "Type", }); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(89); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor, new java.lang.String[] { "Jobs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(90); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(91); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(92); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor, new java.lang.String[] { "Parent", "DeidentifyTemplate", "TemplateId", }); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(93); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor, new java.lang.String[] { "Name", "DeidentifyTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(94); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(95); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + new java.lang.String[] { "Parent", "PageToken", "PageSize", "OrderBy", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(96); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor, new java.lang.String[] { "DeidentifyTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(97); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(98); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor, new java.lang.String[] { "OutputPath", "CloudStorageFileSet", "BigQueryField", "Source", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(99); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor, new java.lang.String[] { "DisplayName", "Description", "LargeCustomDictionary", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(100); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor, new java.lang.String[] { "Config", "CreateTime", "State", "Errors", }); internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(101); internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor, new java.lang.String[] { "Name", "CurrentVersion", "PendingVersions", }); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(102); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor, new java.lang.String[] { "Parent", "Config", "StoredInfoTypeId", }); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(103); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor, new java.lang.String[] { "Name", "Config", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(104); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(105); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + new java.lang.String[] { "Parent", "PageToken", "PageSize", "OrderBy", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(106); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor, new java.lang.String[] { "StoredInfoTypes", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(107); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor, diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java index c0f6eb2b4118..56b1579e9d15 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java @@ -178,7 +178,7 @@ public static void registerAllExtensions( "ions.proto\032\037google/protobuf/timestamp.pr" + "oto\"\030\n\010InfoType\022\014\n\004name\030\001 \001(\t\"K\n\nStoredT" + "ype\022\014\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032" + - ".google.protobuf.Timestamp\"\227\n\n\016CustomInf" + + ".google.protobuf.Timestamp\"\261\013\n\016CustomInf" + "oType\0222\n\tinfo_type\030\001 \001(\0132\037.google.privac" + "y.dlp.v2.InfoType\0225\n\nlikelihood\030\006 \001(\0162!." + "google.privacy.dlp.v2.Likelihood\022F\n\ndict" + @@ -190,96 +190,99 @@ public static void registerAllExtensions( "ypeH\000\0228\n\013stored_type\030\005 \001(\0132!.google.priv" + "acy.dlp.v2.StoredTypeH\000\022L\n\017detection_rul" + "es\030\007 \003(\01323.google.privacy.dlp.v2.CustomI" + - "nfoType.DetectionRule\032\310\001\n\nDictionary\022N\n\t" + - "word_list\030\001 \001(\01329.google.privacy.dlp.v2." + - "CustomInfoType.Dictionary.WordListH\000\022E\n\022" + - "cloud_storage_path\030\003 \001(\0132\'.google.privac" + - "y.dlp.v2.CloudStoragePathH\000\032\031\n\010WordList\022" + - "\r\n\005words\030\001 \003(\tB\010\n\006source\032\030\n\005Regex\022\017\n\007pat" + - "tern\030\001 \001(\t\032\017\n\rSurrogateType\032\276\004\n\rDetectio" + - "nRule\022W\n\014hotword_rule\030\001 \001(\0132?.google.pri" + - "vacy.dlp.v2.CustomInfoType.DetectionRule" + - ".HotwordRuleH\000\0328\n\tProximity\022\025\n\rwindow_be" + - "fore\030\001 \001(\005\022\024\n\014window_after\030\002 \001(\005\032\202\001\n\024Lik" + - "elihoodAdjustment\022=\n\020fixed_likelihood\030\001 " + - "\001(\0162!.google.privacy.dlp.v2.LikelihoodH\000" + - "\022\035\n\023relative_likelihood\030\002 \001(\005H\000B\014\n\nadjus" + - "tment\032\214\002\n\013HotwordRule\022B\n\rhotword_regex\030\001" + - " \001(\0132+.google.privacy.dlp.v2.CustomInfoT" + - "ype.Regex\022P\n\tproximity\030\002 \001(\0132=.google.pr" + - "ivacy.dlp.v2.CustomInfoType.DetectionRul" + - "e.Proximity\022g\n\025likelihood_adjustment\030\003 \001" + - "(\0132H.google.privacy.dlp.v2.CustomInfoTyp" + - "e.DetectionRule.LikelihoodAdjustmentB\006\n\004" + - "typeB\006\n\004type\"\027\n\007FieldId\022\014\n\004name\030\001 \001(\t\"7\n" + - "\013PartitionId\022\022\n\nproject_id\030\002 \001(\t\022\024\n\014name" + - "space_id\030\004 \001(\t\"\036\n\016KindExpression\022\014\n\004name" + - "\030\001 \001(\t\"\201\001\n\020DatastoreOptions\0228\n\014partition" + - "_id\030\001 \001(\0132\".google.privacy.dlp.v2.Partit" + - "ionId\0223\n\004kind\030\002 \001(\0132%.google.privacy.dlp" + - ".v2.KindExpression\"\243\003\n\023CloudStorageOptio" + - "ns\022D\n\010file_set\030\001 \001(\01322.google.privacy.dl" + - "p.v2.CloudStorageOptions.FileSet\022\034\n\024byte" + - "s_limit_per_file\030\004 \001(\003\022$\n\034bytes_limit_pe" + - "r_file_percent\030\010 \001(\005\0223\n\nfile_types\030\005 \003(\016" + - "2\037.google.privacy.dlp.v2.FileType\022N\n\rsam" + - "ple_method\030\006 \001(\01627.google.privacy.dlp.v2" + - ".CloudStorageOptions.SampleMethod\022\033\n\023fil" + - "es_limit_percent\030\007 \001(\005\032\026\n\007FileSet\022\013\n\003url" + - "\030\001 \001(\t\"H\n\014SampleMethod\022\035\n\031SAMPLE_METHOD_" + - "UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002" + - "\"\"\n\023CloudStorageFileSet\022\013\n\003url\030\001 \001(\t\" \n\020" + - "CloudStoragePath\022\014\n\004path\030\001 \001(\t\"\322\002\n\017BigQu" + - "eryOptions\022=\n\017table_reference\030\001 \001(\0132$.go" + - "ogle.privacy.dlp.v2.BigQueryTable\022:\n\022ide" + - "ntifying_fields\030\002 \003(\0132\036.google.privacy.d" + - "lp.v2.FieldId\022\022\n\nrows_limit\030\003 \001(\003\022\032\n\022row" + - "s_limit_percent\030\006 \001(\005\022J\n\rsample_method\030\004" + - " \001(\01623.google.privacy.dlp.v2.BigQueryOpt" + - "ions.SampleMethod\"H\n\014SampleMethod\022\035\n\031SAM" + - "PLE_METHOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RAN" + - "DOM_START\020\002\"\232\004\n\rStorageConfig\022D\n\021datasto" + - "re_options\030\002 \001(\0132\'.google.privacy.dlp.v2" + - ".DatastoreOptionsH\000\022K\n\025cloud_storage_opt" + - "ions\030\003 \001(\0132*.google.privacy.dlp.v2.Cloud" + - "StorageOptionsH\000\022C\n\021big_query_options\030\004 " + - "\001(\0132&.google.privacy.dlp.v2.BigQueryOpti" + - "onsH\000\022L\n\017timespan_config\030\006 \001(\01323.google." + - "privacy.dlp.v2.StorageConfig.TimespanCon" + - "fig\032\332\001\n\016TimespanConfig\022.\n\nstart_time\030\001 \001" + - "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + - "me\030\002 \001(\0132\032.google.protobuf.Timestamp\0227\n\017" + - "timestamp_field\030\003 \001(\0132\036.google.privacy.d" + - "lp.v2.FieldId\0221\n)enable_auto_population_" + - "of_timespan_config\030\004 \001(\010B\006\n\004type\"`\n\013BigQ" + - "ueryKey\022=\n\017table_reference\030\001 \001(\0132$.googl" + - "e.privacy.dlp.v2.BigQueryTable\022\022\n\nrow_nu" + - "mber\030\002 \001(\003\">\n\014DatastoreKey\022.\n\nentity_key" + - "\030\001 \001(\0132\032.google.privacy.dlp.v2.Key\"\273\001\n\003K" + - "ey\0228\n\014partition_id\030\001 \001(\0132\".google.privac" + - "y.dlp.v2.PartitionId\0224\n\004path\030\002 \003(\0132&.goo" + - "gle.privacy.dlp.v2.Key.PathElement\032D\n\013Pa" + - "thElement\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000\022\016\n" + - "\004name\030\003 \001(\tH\000B\t\n\007id_type\"\216\001\n\tRecordKey\022<" + - "\n\rdatastore_key\030\002 \001(\0132#.google.privacy.d" + - "lp.v2.DatastoreKeyH\000\022;\n\rbig_query_key\030\003 " + - "\001(\0132\".google.privacy.dlp.v2.BigQueryKeyH" + - "\000B\006\n\004type\"I\n\rBigQueryTable\022\022\n\nproject_id" + - "\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table_id\030\003" + - " \001(\t\"s\n\rBigQueryField\0223\n\005table\030\001 \001(\0132$.g" + - "oogle.privacy.dlp.v2.BigQueryTable\022-\n\005fi" + - "eld\030\002 \001(\0132\036.google.privacy.dlp.v2.FieldI" + - "d\"9\n\010EntityId\022-\n\005field\030\001 \001(\0132\036.google.pr" + - "ivacy.dlp.v2.FieldId*t\n\nLikelihood\022\032\n\026LI" + - "KELIHOOD_UNSPECIFIED\020\000\022\021\n\rVERY_UNLIKELY\020" + - "\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020" + - "\004\022\017\n\013VERY_LIKELY\020\005*E\n\010FileType\022\031\n\025FILE_T" + - "YPE_UNSPECIFIED\020\000\022\017\n\013BINARY_FILE\020\001\022\r\n\tTE" + - "XT_FILE\020\002B\217\001\n\031com.google.privacy.dlp.v2B" + - "\nDlpStorageP\001Z8google.golang.org/genprot" + - "o/googleapis/privacy/dlp/v2;dlp\252\002\023Google" + - ".Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2b\006pro" + - "to3" + "nfoType.DetectionRule\022K\n\016exclusion_type\030" + + "\010 \001(\01623.google.privacy.dlp.v2.CustomInfo" + + "Type.ExclusionType\032\310\001\n\nDictionary\022N\n\twor" + + "d_list\030\001 \001(\01329.google.privacy.dlp.v2.Cus" + + "tomInfoType.Dictionary.WordListH\000\022E\n\022clo" + + "ud_storage_path\030\003 \001(\0132\'.google.privacy.d" + + "lp.v2.CloudStoragePathH\000\032\031\n\010WordList\022\r\n\005" + + "words\030\001 \003(\tB\010\n\006source\032\030\n\005Regex\022\017\n\007patter" + + "n\030\001 \001(\t\032\017\n\rSurrogateType\032\276\004\n\rDetectionRu" + + "le\022W\n\014hotword_rule\030\001 \001(\0132?.google.privac" + + "y.dlp.v2.CustomInfoType.DetectionRule.Ho" + + "twordRuleH\000\0328\n\tProximity\022\025\n\rwindow_befor" + + "e\030\001 \001(\005\022\024\n\014window_after\030\002 \001(\005\032\202\001\n\024Likeli" + + "hoodAdjustment\022=\n\020fixed_likelihood\030\001 \001(\016" + + "2!.google.privacy.dlp.v2.LikelihoodH\000\022\035\n" + + "\023relative_likelihood\030\002 \001(\005H\000B\014\n\nadjustme" + + "nt\032\214\002\n\013HotwordRule\022B\n\rhotword_regex\030\001 \001(" + + "\0132+.google.privacy.dlp.v2.CustomInfoType" + + ".Regex\022P\n\tproximity\030\002 \001(\0132=.google.priva" + + "cy.dlp.v2.CustomInfoType.DetectionRule.P" + + "roximity\022g\n\025likelihood_adjustment\030\003 \001(\0132" + + "H.google.privacy.dlp.v2.CustomInfoType.D" + + "etectionRule.LikelihoodAdjustmentB\006\n\004typ" + + "e\"K\n\rExclusionType\022\036\n\032EXCLUSION_TYPE_UNS" + + "PECIFIED\020\000\022\032\n\026EXCLUSION_TYPE_EXCLUDE\020\001B\006" + + "\n\004type\"\027\n\007FieldId\022\014\n\004name\030\001 \001(\t\"7\n\013Parti" + + "tionId\022\022\n\nproject_id\030\002 \001(\t\022\024\n\014namespace_" + + "id\030\004 \001(\t\"\036\n\016KindExpression\022\014\n\004name\030\001 \001(\t" + + "\"\201\001\n\020DatastoreOptions\0228\n\014partition_id\030\001 " + + "\001(\0132\".google.privacy.dlp.v2.PartitionId\022" + + "3\n\004kind\030\002 \001(\0132%.google.privacy.dlp.v2.Ki" + + "ndExpression\"\243\003\n\023CloudStorageOptions\022D\n\010" + + "file_set\030\001 \001(\01322.google.privacy.dlp.v2.C" + + "loudStorageOptions.FileSet\022\034\n\024bytes_limi" + + "t_per_file\030\004 \001(\003\022$\n\034bytes_limit_per_file" + + "_percent\030\010 \001(\005\0223\n\nfile_types\030\005 \003(\0162\037.goo" + + "gle.privacy.dlp.v2.FileType\022N\n\rsample_me" + + "thod\030\006 \001(\01627.google.privacy.dlp.v2.Cloud" + + "StorageOptions.SampleMethod\022\033\n\023files_lim" + + "it_percent\030\007 \001(\005\032\026\n\007FileSet\022\013\n\003url\030\001 \001(\t" + + "\"H\n\014SampleMethod\022\035\n\031SAMPLE_METHOD_UNSPEC" + + "IFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002\"\"\n\023Cl" + + "oudStorageFileSet\022\013\n\003url\030\001 \001(\t\" \n\020CloudS" + + "toragePath\022\014\n\004path\030\001 \001(\t\"\322\002\n\017BigQueryOpt" + + "ions\022=\n\017table_reference\030\001 \001(\0132$.google.p" + + "rivacy.dlp.v2.BigQueryTable\022:\n\022identifyi" + + "ng_fields\030\002 \003(\0132\036.google.privacy.dlp.v2." + + "FieldId\022\022\n\nrows_limit\030\003 \001(\003\022\032\n\022rows_limi" + + "t_percent\030\006 \001(\005\022J\n\rsample_method\030\004 \001(\01623" + + ".google.privacy.dlp.v2.BigQueryOptions.S" + + "ampleMethod\"H\n\014SampleMethod\022\035\n\031SAMPLE_ME" + + "THOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_ST" + + "ART\020\002\"\232\004\n\rStorageConfig\022D\n\021datastore_opt" + + "ions\030\002 \001(\0132\'.google.privacy.dlp.v2.Datas" + + "toreOptionsH\000\022K\n\025cloud_storage_options\030\003" + + " \001(\0132*.google.privacy.dlp.v2.CloudStorag" + + "eOptionsH\000\022C\n\021big_query_options\030\004 \001(\0132&." + + "google.privacy.dlp.v2.BigQueryOptionsH\000\022" + + "L\n\017timespan_config\030\006 \001(\01323.google.privac" + + "y.dlp.v2.StorageConfig.TimespanConfig\032\332\001" + + "\n\016TimespanConfig\022.\n\nstart_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\0227\n\017timest" + + "amp_field\030\003 \001(\0132\036.google.privacy.dlp.v2." + + "FieldId\0221\n)enable_auto_population_of_tim" + + "espan_config\030\004 \001(\010B\006\n\004type\"`\n\013BigQueryKe" + + "y\022=\n\017table_reference\030\001 \001(\0132$.google.priv" + + "acy.dlp.v2.BigQueryTable\022\022\n\nrow_number\030\002" + + " \001(\003\">\n\014DatastoreKey\022.\n\nentity_key\030\001 \001(\013" + + "2\032.google.privacy.dlp.v2.Key\"\273\001\n\003Key\0228\n\014" + + "partition_id\030\001 \001(\0132\".google.privacy.dlp." + + "v2.PartitionId\0224\n\004path\030\002 \003(\0132&.google.pr" + + "ivacy.dlp.v2.Key.PathElement\032D\n\013PathElem" + + "ent\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000\022\016\n\004name\030" + + "\003 \001(\tH\000B\t\n\007id_type\"\216\001\n\tRecordKey\022<\n\rdata" + + "store_key\030\002 \001(\0132#.google.privacy.dlp.v2." + + "DatastoreKeyH\000\022;\n\rbig_query_key\030\003 \001(\0132\"." + + "google.privacy.dlp.v2.BigQueryKeyH\000B\006\n\004t" + + "ype\"I\n\rBigQueryTable\022\022\n\nproject_id\030\001 \001(\t" + + "\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\"s" + + "\n\rBigQueryField\0223\n\005table\030\001 \001(\0132$.google." + + "privacy.dlp.v2.BigQueryTable\022-\n\005field\030\002 " + + "\001(\0132\036.google.privacy.dlp.v2.FieldId\"9\n\010E" + + "ntityId\022-\n\005field\030\001 \001(\0132\036.google.privacy." + + "dlp.v2.FieldId*t\n\nLikelihood\022\032\n\026LIKELIHO" + + "OD_UNSPECIFIED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010U" + + "NLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013V" + + "ERY_LIKELY\020\005*E\n\010FileType\022\031\n\025FILE_TYPE_UN" + + "SPECIFIED\020\000\022\017\n\013BINARY_FILE\020\001\022\r\n\tTEXT_FIL" + + "E\020\002B\217\001\n\031com.google.privacy.dlp.v2B\nDlpSt" + + "orageP\001Z8google.golang.org/genproto/goog" + + "leapis/privacy/dlp/v2;dlp\252\002\023Google.Cloud" + + ".Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -312,7 +315,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_privacy_dlp_v2_CustomInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CustomInfoType_descriptor, - new java.lang.String[] { "InfoType", "Likelihood", "Dictionary", "Regex", "SurrogateType", "StoredType", "DetectionRules", "Type", }); + new java.lang.String[] { "InfoType", "Likelihood", "Dictionary", "Regex", "SurrogateType", "StoredType", "DetectionRules", "ExclusionType", "Type", }); internal_static_google_privacy_dlp_v2_CustomInfoType_Dictionary_descriptor = internal_static_google_privacy_dlp_v2_CustomInfoType_descriptor.getNestedTypes().get(0); internal_static_google_privacy_dlp_v2_CustomInfoType_Dictionary_fieldAccessorTable = new diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java new file mode 100644 index 000000000000..c766ce1a36d4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java @@ -0,0 +1,1020 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + *
+ * List of exclude infoTypes.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.ExcludeInfoTypes} + */ +public final class ExcludeInfoTypes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ExcludeInfoTypes) + ExcludeInfoTypesOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExcludeInfoTypes.newBuilder() to construct. + private ExcludeInfoTypes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExcludeInfoTypes() { + infoTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExcludeInfoTypes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + infoTypes_.add( + input.readMessage(com.google.privacy.dlp.v2.InfoType.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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) == 0x00000001)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ExcludeInfoTypes.class, com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder.class); + } + + public static final int INFO_TYPES_FIELD_NUMBER = 1; + private java.util.List infoTypes_; + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List getInfoTypesList() { + return infoTypes_; + } + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesOrBuilderList() { + return infoTypes_; + } + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public int getInfoTypesCount() { + return infoTypes_.size(); + } + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) { + return infoTypes_.get(index); + } + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index) { + return infoTypes_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < infoTypes_.size(); i++) { + output.writeMessage(1, infoTypes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < infoTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, infoTypes_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.ExcludeInfoTypes)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ExcludeInfoTypes other = (com.google.privacy.dlp.v2.ExcludeInfoTypes) obj; + + boolean result = true; + result = result && getInfoTypesList() + .equals(other.getInfoTypesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInfoTypesCount() > 0) { + hash = (37 * hash) + INFO_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getInfoTypesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ExcludeInfoTypes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExcludeInfoTypes 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.ExcludeInfoTypes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExcludeInfoTypes 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.ExcludeInfoTypes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExcludeInfoTypes 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.ExcludeInfoTypes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.ExcludeInfoTypes 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.ExcludeInfoTypes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.ExcludeInfoTypes 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.ExcludeInfoTypes 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.ExcludeInfoTypes 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.ExcludeInfoTypes 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; + } + /** + *
+   * List of exclude infoTypes.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.ExcludeInfoTypes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ExcludeInfoTypes) + com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ExcludeInfoTypes.class, com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ExcludeInfoTypes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInfoTypesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (infoTypesBuilder_ == null) { + infoTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infoTypesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExcludeInfoTypes getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExcludeInfoTypes build() { + com.google.privacy.dlp.v2.ExcludeInfoTypes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExcludeInfoTypes buildPartial() { + com.google.privacy.dlp.v2.ExcludeInfoTypes result = new com.google.privacy.dlp.v2.ExcludeInfoTypes(this); + int from_bitField0_ = bitField0_; + if (infoTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.infoTypes_ = infoTypes_; + } else { + result.infoTypes_ = infoTypesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ExcludeInfoTypes) { + return mergeFrom((com.google.privacy.dlp.v2.ExcludeInfoTypes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ExcludeInfoTypes other) { + if (other == com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance()) return this; + if (infoTypesBuilder_ == null) { + if (!other.infoTypes_.isEmpty()) { + if (infoTypes_.isEmpty()) { + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoTypesIsMutable(); + infoTypes_.addAll(other.infoTypes_); + } + onChanged(); + } + } else { + if (!other.infoTypes_.isEmpty()) { + if (infoTypesBuilder_.isEmpty()) { + infoTypesBuilder_.dispose(); + infoTypesBuilder_ = null; + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + infoTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInfoTypesFieldBuilder() : null; + } else { + infoTypesBuilder_.addAllMessages(other.infoTypes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.privacy.dlp.v2.ExcludeInfoTypes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.ExcludeInfoTypes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List infoTypes_ = + java.util.Collections.emptyList(); + private void ensureInfoTypesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = new java.util.ArrayList(infoTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder> infoTypesBuilder_; + + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List getInfoTypesList() { + if (infoTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(infoTypes_); + } else { + return infoTypesBuilder_.getMessageList(); + } + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public int getInfoTypesCount() { + if (infoTypesBuilder_ == null) { + return infoTypes_.size(); + } else { + return infoTypesBuilder_.getCount(); + } + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) { + if (infoTypesBuilder_ == null) { + return infoTypes_.get(index); + } else { + return infoTypesBuilder_.getMessage(index); + } + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder setInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.set(index, value); + onChanged(); + } else { + infoTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder setInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.add(value); + onChanged(); + } else { + infoTypesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.add(index, value); + onChanged(); + } else { + infoTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.add(builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addAllInfoTypes( + java.lang.Iterable values) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, infoTypes_); + onChanged(); + } else { + infoTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder clearInfoTypes() { + if (infoTypesBuilder_ == null) { + infoTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoTypesBuilder_.clear(); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder removeInfoTypes(int index) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.remove(index); + onChanged(); + } else { + infoTypesBuilder_.remove(index); + } + return this; + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypesBuilder( + int index) { + return getInfoTypesFieldBuilder().getBuilder(index); + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index) { + if (infoTypesBuilder_ == null) { + return infoTypes_.get(index); } else { + return infoTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesOrBuilderList() { + if (infoTypesBuilder_ != null) { + return infoTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infoTypes_); + } + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder() { + return getInfoTypesFieldBuilder().addBuilder( + com.google.privacy.dlp.v2.InfoType.getDefaultInstance()); + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder( + int index) { + return getInfoTypesFieldBuilder().addBuilder( + index, com.google.privacy.dlp.v2.InfoType.getDefaultInstance()); + } + /** + *
+     * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+     * contained within with a finding of an infoType from this list. For
+     * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+     * `exclusion_rule` containing `exclude_info_types.info_types` with
+     * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+     * with EMAIL_ADDRESS finding.
+     * That leads to "555-222-2222@example.org" to generate only a single
+     * finding, namely email address.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesBuilderList() { + return getInfoTypesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder> + getInfoTypesFieldBuilder() { + if (infoTypesBuilder_ == null) { + infoTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder>( + infoTypes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + infoTypes_ = null; + } + return infoTypesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.ExcludeInfoTypes) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExcludeInfoTypes) + private static final com.google.privacy.dlp.v2.ExcludeInfoTypes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ExcludeInfoTypes(); + } + + public static com.google.privacy.dlp.v2.ExcludeInfoTypes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExcludeInfoTypes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExcludeInfoTypes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExcludeInfoTypes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypesOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypesOrBuilder.java new file mode 100644 index 000000000000..521bd5256281 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypesOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +public interface ExcludeInfoTypesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ExcludeInfoTypes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + java.util.List + getInfoTypesList(); + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + com.google.privacy.dlp.v2.InfoType getInfoTypes(int index); + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + int getInfoTypesCount(); + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + java.util.List + getInfoTypesOrBuilderList(); + /** + *
+   * InfoType list in ExclusionRule rule drops a finding when it overlaps or
+   * contained within with a finding of an infoType from this list. For
+   * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
+   * `exclusion_rule` containing `exclude_info_types.info_types` with
+   * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
+   * with EMAIL_ADDRESS finding.
+   * That leads to "555-222-2222@example.org" to generate only a single
+   * finding, namely email address.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRule.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRule.java new file mode 100644 index 000000000000..fe5714c989e0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRule.java @@ -0,0 +1,1361 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + *
+ * The rule that specifies conditions when findings of infoTypes specified in
+ * `InspectionRuleSet` are removed from results.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.ExclusionRule} + */ +public final class ExclusionRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ExclusionRule) + ExclusionRuleOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExclusionRule.newBuilder() to construct. + private ExclusionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExclusionRule() { + matchingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExclusionRule( + 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.CustomInfoType.Dictionary.Builder subBuilder = null; + if (typeCase_ == 1) { + subBuilder = ((com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.privacy.dlp.v2.CustomInfoType.Dictionary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 1; + break; + } + case 18: { + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((com.google.privacy.dlp.v2.CustomInfoType.Regex) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.privacy.dlp.v2.CustomInfoType.Regex.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((com.google.privacy.dlp.v2.ExcludeInfoTypes) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.privacy.dlp.v2.ExcludeInfoTypes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.ExcludeInfoTypes) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 32: { + int rawValue = input.readEnum(); + + matchingType_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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_ExclusionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExclusionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ExclusionRule.class, com.google.privacy.dlp.v2.ExclusionRule.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + DICTIONARY(1), + REGEX(2), + EXCLUDE_INFO_TYPES(3), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return DICTIONARY; + case 2: return REGEX; + case 3: return EXCLUDE_INFO_TYPES; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int DICTIONARY_FIELD_NUMBER = 1; + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public boolean hasDictionary() { + return typeCase_ == 1; + } + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary() { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + + public static final int REGEX_FIELD_NUMBER = 2; + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public boolean hasRegex() { + return typeCase_ == 2; + } + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + + public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER = 3; + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public boolean hasExcludeInfoTypes() { + return typeCase_ == 3; + } + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public com.google.privacy.dlp.v2.ExcludeInfoTypes getExcludeInfoTypes() { + if (typeCase_ == 3) { + return (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_; + } + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder() { + if (typeCase_ == 3) { + return (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_; + } + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + + public static final int MATCHING_TYPE_FIELD_NUMBER = 4; + private int matchingType_; + /** + *
+   * How the rule is applied, see MatchingType documentation for details.
+   * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public int getMatchingTypeValue() { + return matchingType_; + } + /** + *
+   * How the rule is applied, see MatchingType documentation for details.
+   * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public com.google.privacy.dlp.v2.MatchingType getMatchingType() { + @SuppressWarnings("deprecation") + com.google.privacy.dlp.v2.MatchingType result = com.google.privacy.dlp.v2.MatchingType.valueOf(matchingType_); + return result == null ? com.google.privacy.dlp.v2.MatchingType.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 (typeCase_ == 1) { + output.writeMessage(1, (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_); + } + if (matchingType_ != com.google.privacy.dlp.v2.MatchingType.MATCHING_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, matchingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_); + } + if (matchingType_ != com.google.privacy.dlp.v2.MatchingType.MATCHING_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, matchingType_); + } + 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.ExclusionRule)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ExclusionRule other = (com.google.privacy.dlp.v2.ExclusionRule) obj; + + boolean result = true; + result = result && matchingType_ == other.matchingType_; + result = result && getTypeCase().equals( + other.getTypeCase()); + if (!result) return false; + switch (typeCase_) { + case 1: + result = result && getDictionary() + .equals(other.getDictionary()); + break; + case 2: + result = result && getRegex() + .equals(other.getRegex()); + break; + case 3: + result = result && getExcludeInfoTypes() + .equals(other.getExcludeInfoTypes()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MATCHING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchingType_; + switch (typeCase_) { + case 1: + hash = (37 * hash) + DICTIONARY_FIELD_NUMBER; + hash = (53 * hash) + getDictionary().hashCode(); + break; + case 2: + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + break; + case 3: + hash = (37 * hash) + EXCLUDE_INFO_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeInfoTypes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ExclusionRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExclusionRule 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.ExclusionRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExclusionRule 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.ExclusionRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.ExclusionRule 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.ExclusionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.ExclusionRule 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.ExclusionRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.ExclusionRule 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.ExclusionRule 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.ExclusionRule 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.ExclusionRule 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 rule that specifies conditions when findings of infoTypes specified in
+   * `InspectionRuleSet` are removed from results.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.ExclusionRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ExclusionRule) + com.google.privacy.dlp.v2.ExclusionRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExclusionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExclusionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ExclusionRule.class, com.google.privacy.dlp.v2.ExclusionRule.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ExclusionRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + matchingType_ = 0; + + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ExclusionRule_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExclusionRule getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExclusionRule build() { + com.google.privacy.dlp.v2.ExclusionRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExclusionRule buildPartial() { + com.google.privacy.dlp.v2.ExclusionRule result = new com.google.privacy.dlp.v2.ExclusionRule(this); + if (typeCase_ == 1) { + if (dictionaryBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = dictionaryBuilder_.build(); + } + } + if (typeCase_ == 2) { + if (regexBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = regexBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (excludeInfoTypesBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = excludeInfoTypesBuilder_.build(); + } + } + result.matchingType_ = matchingType_; + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ExclusionRule) { + return mergeFrom((com.google.privacy.dlp.v2.ExclusionRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ExclusionRule other) { + if (other == com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance()) return this; + if (other.matchingType_ != 0) { + setMatchingTypeValue(other.getMatchingTypeValue()); + } + switch (other.getTypeCase()) { + case DICTIONARY: { + mergeDictionary(other.getDictionary()); + break; + } + case REGEX: { + mergeRegex(other.getRegex()); + break; + } + case EXCLUDE_INFO_TYPES: { + mergeExcludeInfoTypes(other.getExcludeInfoTypes()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.privacy.dlp.v2.ExclusionRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.ExclusionRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder> dictionaryBuilder_; + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public boolean hasDictionary() { + return typeCase_ == 1; + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return dictionaryBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public Builder setDictionary(com.google.privacy.dlp.v2.CustomInfoType.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + dictionaryBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public Builder setDictionary( + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder builderForValue) { + if (dictionaryBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + dictionaryBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public Builder mergeDictionary(com.google.privacy.dlp.v2.CustomInfoType.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1 && + type_ != com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance()) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Dictionary.newBuilder((com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + dictionaryBuilder_.mergeFrom(value); + } + dictionaryBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public Builder clearDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + dictionaryBuilder_.clear(); + } + return this; + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder getDictionaryBuilder() { + return getDictionaryFieldBuilder().getBuilder(); + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() { + if ((typeCase_ == 1) && (dictionaryBuilder_ != null)) { + return dictionaryBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + } + /** + *
+     * Dictionary which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder> + getDictionaryFieldBuilder() { + if (dictionaryBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + dictionaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder>( + (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged();; + return dictionaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder> regexBuilder_; + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public boolean hasRegex() { + return typeCase_ == 2; + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return regexBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public Builder setRegex(com.google.privacy.dlp.v2.CustomInfoType.Regex value) { + if (regexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + regexBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public Builder setRegex( + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder builderForValue) { + if (regexBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + regexBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public Builder mergeRegex(com.google.privacy.dlp.v2.CustomInfoType.Regex value) { + if (regexBuilder_ == null) { + if (typeCase_ == 2 && + type_ != com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance()) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Regex.newBuilder((com.google.privacy.dlp.v2.CustomInfoType.Regex) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + regexBuilder_.mergeFrom(value); + } + regexBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public Builder clearRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + regexBuilder_.clear(); + } + return this; + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder getRegexBuilder() { + return getRegexFieldBuilder().getBuilder(); + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() { + if ((typeCase_ == 2) && (regexBuilder_ != null)) { + return regexBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + } + /** + *
+     * Regular expression which defines the rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder> + getRegexFieldBuilder() { + if (regexBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + regexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder>( + (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return regexBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExcludeInfoTypes, com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder, com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder> excludeInfoTypesBuilder_; + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public boolean hasExcludeInfoTypes() { + return typeCase_ == 3; + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public com.google.privacy.dlp.v2.ExcludeInfoTypes getExcludeInfoTypes() { + if (excludeInfoTypesBuilder_ == null) { + if (typeCase_ == 3) { + return (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_; + } + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return excludeInfoTypesBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public Builder setExcludeInfoTypes(com.google.privacy.dlp.v2.ExcludeInfoTypes value) { + if (excludeInfoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + excludeInfoTypesBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public Builder setExcludeInfoTypes( + com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder builderForValue) { + if (excludeInfoTypesBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + excludeInfoTypesBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public Builder mergeExcludeInfoTypes(com.google.privacy.dlp.v2.ExcludeInfoTypes value) { + if (excludeInfoTypesBuilder_ == null) { + if (typeCase_ == 3 && + type_ != com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance()) { + type_ = com.google.privacy.dlp.v2.ExcludeInfoTypes.newBuilder((com.google.privacy.dlp.v2.ExcludeInfoTypes) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + excludeInfoTypesBuilder_.mergeFrom(value); + } + excludeInfoTypesBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public Builder clearExcludeInfoTypes() { + if (excludeInfoTypesBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + excludeInfoTypesBuilder_.clear(); + } + return this; + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder getExcludeInfoTypesBuilder() { + return getExcludeInfoTypesFieldBuilder().getBuilder(); + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + public com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder() { + if ((typeCase_ == 3) && (excludeInfoTypesBuilder_ != null)) { + return excludeInfoTypesBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_; + } + return com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + } + /** + *
+     * Set of infoTypes for which findings would affect this rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExcludeInfoTypes, com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder, com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder> + getExcludeInfoTypesFieldBuilder() { + if (excludeInfoTypesBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = com.google.privacy.dlp.v2.ExcludeInfoTypes.getDefaultInstance(); + } + excludeInfoTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExcludeInfoTypes, com.google.privacy.dlp.v2.ExcludeInfoTypes.Builder, com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder>( + (com.google.privacy.dlp.v2.ExcludeInfoTypes) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return excludeInfoTypesBuilder_; + } + + private int matchingType_ = 0; + /** + *
+     * How the rule is applied, see MatchingType documentation for details.
+     * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public int getMatchingTypeValue() { + return matchingType_; + } + /** + *
+     * How the rule is applied, see MatchingType documentation for details.
+     * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public Builder setMatchingTypeValue(int value) { + matchingType_ = value; + onChanged(); + return this; + } + /** + *
+     * How the rule is applied, see MatchingType documentation for details.
+     * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public com.google.privacy.dlp.v2.MatchingType getMatchingType() { + @SuppressWarnings("deprecation") + com.google.privacy.dlp.v2.MatchingType result = com.google.privacy.dlp.v2.MatchingType.valueOf(matchingType_); + return result == null ? com.google.privacy.dlp.v2.MatchingType.UNRECOGNIZED : result; + } + /** + *
+     * How the rule is applied, see MatchingType documentation for details.
+     * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public Builder setMatchingType(com.google.privacy.dlp.v2.MatchingType value) { + if (value == null) { + throw new NullPointerException(); + } + + matchingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * How the rule is applied, see MatchingType documentation for details.
+     * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + public Builder clearMatchingType() { + + matchingType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.ExclusionRule) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ExclusionRule) + private static final com.google.privacy.dlp.v2.ExclusionRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ExclusionRule(); + } + + public static com.google.privacy.dlp.v2.ExclusionRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExclusionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExclusionRule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ExclusionRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRuleOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRuleOrBuilder.java new file mode 100644 index 000000000000..0f7671792243 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExclusionRuleOrBuilder.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +public interface ExclusionRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ExclusionRule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + boolean hasDictionary(); + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary(); + /** + *
+   * Dictionary which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + */ + com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder(); + + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + boolean hasRegex(); + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex(); + /** + *
+   * Regular expression which defines the rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + */ + com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder(); + + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + boolean hasExcludeInfoTypes(); + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + com.google.privacy.dlp.v2.ExcludeInfoTypes getExcludeInfoTypes(); + /** + *
+   * Set of infoTypes for which findings would affect this rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + */ + com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder(); + + /** + *
+   * How the rule is applied, see MatchingType documentation for details.
+   * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + int getMatchingTypeValue(); + /** + *
+   * How the rule is applied, see MatchingType documentation for details.
+   * 
+ * + * .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + com.google.privacy.dlp.v2.MatchingType getMatchingType(); + + public com.google.privacy.dlp.v2.ExclusionRule.TypeCase getTypeCase(); +} diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java index 08cf7a5eadea..49fdc1d8d6e8 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java @@ -104,7 +104,7 @@ public InfoTypeSupportedBy findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(1); + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(2); } private static final InfoTypeSupportedBy[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java index 668efd358c54..3d9094104872 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java @@ -28,6 +28,7 @@ private InspectConfig() { excludeInfoTypes_ = false; customInfoTypes_ = java.util.Collections.emptyList(); contentOptions_ = java.util.Collections.emptyList(); + ruleSet_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -124,6 +125,15 @@ private InspectConfig( input.popLimit(oldLimit); break; } + case 82: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + ruleSet_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + ruleSet_.add( + input.readMessage(com.google.privacy.dlp.v2.InspectionRuleSet.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -148,6 +158,9 @@ private InspectConfig( if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { contentOptions_ = java.util.Collections.unmodifiableList(contentOptions_); } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + ruleSet_ = java.util.Collections.unmodifiableList(ruleSet_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2367,6 +2380,71 @@ public int getContentOptionsValue(int index) { } private int contentOptionsMemoizedSerializedSize; + public static final int RULE_SET_FIELD_NUMBER = 10; + private java.util.List ruleSet_; + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public java.util.List getRuleSetList() { + return ruleSet_; + } + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public java.util.List + getRuleSetOrBuilderList() { + return ruleSet_; + } + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public int getRuleSetCount() { + return ruleSet_.size(); + } + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSet getRuleSet(int index) { + return ruleSet_.get(index); + } + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder getRuleSetOrBuilder( + int index) { + return ruleSet_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2407,6 +2485,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < contentOptions_.size(); i++) { output.writeEnumNoTag(contentOptions_.get(i)); } + for (int i = 0; i < ruleSet_.size(); i++) { + output.writeMessage(10, ruleSet_.get(i)); + } unknownFields.writeTo(output); } @@ -2452,6 +2533,10 @@ public int getSerializedSize() { .computeUInt32SizeNoTag(dataSize); }contentOptionsMemoizedSerializedSize = dataSize; } + for (int i = 0; i < ruleSet_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, ruleSet_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2483,6 +2568,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getCustomInfoTypesList() .equals(other.getCustomInfoTypesList()); result = result && contentOptions_.equals(other.contentOptions_); + result = result && getRuleSetList() + .equals(other.getRuleSetList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -2518,6 +2605,10 @@ public int hashCode() { hash = (37 * hash) + CONTENT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + contentOptions_.hashCode(); } + if (getRuleSetCount() > 0) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSetList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2654,6 +2745,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getInfoTypesFieldBuilder(); getCustomInfoTypesFieldBuilder(); + getRuleSetFieldBuilder(); } } @java.lang.Override @@ -2685,6 +2777,12 @@ public Builder clear() { } contentOptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ruleSetBuilder_.clear(); + } return this; } @@ -2744,6 +2842,15 @@ public com.google.privacy.dlp.v2.InspectConfig buildPartial() { bitField0_ = (bitField0_ & ~0x00000040); } result.contentOptions_ = contentOptions_; + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + ruleSet_ = java.util.Collections.unmodifiableList(ruleSet_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.ruleSet_ = ruleSet_; + } else { + result.ruleSet_ = ruleSetBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2867,6 +2974,32 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InspectConfig other) { } onChanged(); } + if (ruleSetBuilder_ == null) { + if (!other.ruleSet_.isEmpty()) { + if (ruleSet_.isEmpty()) { + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureRuleSetIsMutable(); + ruleSet_.addAll(other.ruleSet_); + } + onChanged(); + } + } else { + if (!other.ruleSet_.isEmpty()) { + if (ruleSetBuilder_.isEmpty()) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000080); + ruleSetBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleSetFieldBuilder() : null; + } else { + ruleSetBuilder_.addAllMessages(other.ruleSet_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4149,6 +4282,354 @@ public Builder addAllContentOptionsValue( onChanged(); return this; } + + private java.util.List ruleSet_ = + java.util.Collections.emptyList(); + private void ensureRuleSetIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + ruleSet_ = new java.util.ArrayList(ruleSet_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRuleSet, com.google.privacy.dlp.v2.InspectionRuleSet.Builder, com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder> ruleSetBuilder_; + + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public java.util.List getRuleSetList() { + if (ruleSetBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleSet_); + } else { + return ruleSetBuilder_.getMessageList(); + } + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public int getRuleSetCount() { + if (ruleSetBuilder_ == null) { + return ruleSet_.size(); + } else { + return ruleSetBuilder_.getCount(); + } + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSet getRuleSet(int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); + } else { + return ruleSetBuilder_.getMessage(index); + } + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder setRuleSet( + int index, com.google.privacy.dlp.v2.InspectionRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.set(index, value); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder setRuleSet( + int index, com.google.privacy.dlp.v2.InspectionRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder addRuleSet(com.google.privacy.dlp.v2.InspectionRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder addRuleSet( + int index, com.google.privacy.dlp.v2.InspectionRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(index, value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder addRuleSet( + com.google.privacy.dlp.v2.InspectionRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder addRuleSet( + int index, com.google.privacy.dlp.v2.InspectionRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder addAllRuleSet( + java.lang.Iterable values) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleSet_); + onChanged(); + } else { + ruleSetBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder clearRuleSet() { + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + ruleSetBuilder_.clear(); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public Builder removeRuleSet(int index) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.remove(index); + onChanged(); + } else { + ruleSetBuilder_.remove(index); + } + return this; + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSet.Builder getRuleSetBuilder( + int index) { + return getRuleSetFieldBuilder().getBuilder(index); + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder getRuleSetOrBuilder( + int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); } else { + return ruleSetBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public java.util.List + getRuleSetOrBuilderList() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleSet_); + } + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSet.Builder addRuleSetBuilder() { + return getRuleSetFieldBuilder().addBuilder( + com.google.privacy.dlp.v2.InspectionRuleSet.getDefaultInstance()); + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public com.google.privacy.dlp.v2.InspectionRuleSet.Builder addRuleSetBuilder( + int index) { + return getRuleSetFieldBuilder().addBuilder( + index, com.google.privacy.dlp.v2.InspectionRuleSet.getDefaultInstance()); + } + /** + *
+     * Set of rules to apply to the findings for this InspectConfig.
+     * Exclusion rules, contained in the set are executed in the end, other
+     * rules are executed in the order they are specified for each info type.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + public java.util.List + getRuleSetBuilderList() { + return getRuleSetFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRuleSet, com.google.privacy.dlp.v2.InspectionRuleSet.Builder, com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder> + getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRuleSet, com.google.privacy.dlp.v2.InspectionRuleSet.Builder, com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder>( + ruleSet_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + ruleSet_ = null; + } + return ruleSetBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java index 36cf563cd270..286dcb2ddb62 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java @@ -244,4 +244,58 @@ com.google.privacy.dlp.v2.CustomInfoTypeOrBuilder getCustomInfoTypesOrBuilder( * repeated .google.privacy.dlp.v2.ContentOption content_options = 8; */ int getContentOptionsValue(int index); + + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + java.util.List + getRuleSetList(); + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + com.google.privacy.dlp.v2.InspectionRuleSet getRuleSet(int index); + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + int getRuleSetCount(); + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + java.util.List + getRuleSetOrBuilderList(); + /** + *
+   * Set of rules to apply to the findings for this InspectConfig.
+   * Exclusion rules, contained in the set are executed in the end, other
+   * rules are executed in the order they are specified for each info type.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder getRuleSetOrBuilder( + int index); } diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRule.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRule.java new file mode 100644 index 000000000000..e7160b2a20ab --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRule.java @@ -0,0 +1,996 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + *
+ * A single inspection rule to be applied to infoTypes, specified in
+ * `InspectionRuleSet`.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.InspectionRule} + */ +public final class InspectionRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InspectionRule) + InspectionRuleOrBuilder { +private static final long serialVersionUID = 0L; + // Use InspectionRule.newBuilder() to construct. + private InspectionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InspectionRule() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InspectionRule( + 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.CustomInfoType.DetectionRule.HotwordRule.Builder subBuilder = null; + if (typeCase_ == 1) { + subBuilder = ((com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 1; + break; + } + case 18: { + com.google.privacy.dlp.v2.ExclusionRule.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((com.google.privacy.dlp.v2.ExclusionRule) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.privacy.dlp.v2.ExclusionRule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.ExclusionRule) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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_InspectionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.InspectionRule.class, com.google.privacy.dlp.v2.InspectionRule.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + HOTWORD_RULE(1), + EXCLUSION_RULE(2), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return HOTWORD_RULE; + case 2: return EXCLUSION_RULE; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int HOTWORD_RULE_FIELD_NUMBER = 1; + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public boolean hasHotwordRule() { + return typeCase_ == 1; + } + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule getHotwordRule() { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder getHotwordRuleOrBuilder() { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } + + public static final int EXCLUSION_RULE_FIELD_NUMBER = 2; + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public boolean hasExclusionRule() { + return typeCase_ == 2; + } + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public com.google.privacy.dlp.v2.ExclusionRule getExclusionRule() { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.ExclusionRule) type_; + } + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public com.google.privacy.dlp.v2.ExclusionRuleOrBuilder getExclusionRuleOrBuilder() { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.ExclusionRule) type_; + } + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (typeCase_ == 1) { + output.writeMessage(1, (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.privacy.dlp.v2.ExclusionRule) type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.privacy.dlp.v2.ExclusionRule) type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.InspectionRule)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.InspectionRule other = (com.google.privacy.dlp.v2.InspectionRule) obj; + + boolean result = true; + result = result && getTypeCase().equals( + other.getTypeCase()); + if (!result) return false; + switch (typeCase_) { + case 1: + result = result && getHotwordRule() + .equals(other.getHotwordRule()); + break; + case 2: + result = result && getExclusionRule() + .equals(other.getExclusionRule()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeCase_) { + case 1: + hash = (37 * hash) + HOTWORD_RULE_FIELD_NUMBER; + hash = (53 * hash) + getHotwordRule().hashCode(); + break; + case 2: + hash = (37 * hash) + EXCLUSION_RULE_FIELD_NUMBER; + hash = (53 * hash) + getExclusionRule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.InspectionRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRule 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.InspectionRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRule 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.InspectionRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRule 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.InspectionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.InspectionRule 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.InspectionRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.InspectionRule 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.InspectionRule 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.InspectionRule 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.InspectionRule 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 single inspection rule to be applied to infoTypes, specified in
+   * `InspectionRuleSet`.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.InspectionRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.InspectionRule) + com.google.privacy.dlp.v2.InspectionRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.InspectionRule.class, com.google.privacy.dlp.v2.InspectionRule.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.InspectionRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRule_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRule getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.InspectionRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRule build() { + com.google.privacy.dlp.v2.InspectionRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRule buildPartial() { + com.google.privacy.dlp.v2.InspectionRule result = new com.google.privacy.dlp.v2.InspectionRule(this); + if (typeCase_ == 1) { + if (hotwordRuleBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = hotwordRuleBuilder_.build(); + } + } + if (typeCase_ == 2) { + if (exclusionRuleBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = exclusionRuleBuilder_.build(); + } + } + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.InspectionRule) { + return mergeFrom((com.google.privacy.dlp.v2.InspectionRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.InspectionRule other) { + if (other == com.google.privacy.dlp.v2.InspectionRule.getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case HOTWORD_RULE: { + mergeHotwordRule(other.getHotwordRule()); + break; + } + case EXCLUSION_RULE: { + mergeExclusionRule(other.getExclusionRule()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.privacy.dlp.v2.InspectionRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.InspectionRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder> hotwordRuleBuilder_; + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public boolean hasHotwordRule() { + return typeCase_ == 1; + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule getHotwordRule() { + if (hotwordRuleBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return hotwordRuleBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public Builder setHotwordRule(com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule value) { + if (hotwordRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + hotwordRuleBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public Builder setHotwordRule( + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder builderForValue) { + if (hotwordRuleBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + hotwordRuleBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public Builder mergeHotwordRule(com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule value) { + if (hotwordRuleBuilder_ == null) { + if (typeCase_ == 1 && + type_ != com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance()) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.newBuilder((com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + hotwordRuleBuilder_.mergeFrom(value); + } + hotwordRuleBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public Builder clearHotwordRule() { + if (hotwordRuleBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + hotwordRuleBuilder_.clear(); + } + return this; + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder getHotwordRuleBuilder() { + return getHotwordRuleFieldBuilder().getBuilder(); + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder getHotwordRuleOrBuilder() { + if ((typeCase_ == 1) && (hotwordRuleBuilder_ != null)) { + return hotwordRuleBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } + } + /** + *
+     * Hotword-based detection rule.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder> + getHotwordRuleFieldBuilder() { + if (hotwordRuleBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.getDefaultInstance(); + } + hotwordRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder, com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder>( + (com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged();; + return hotwordRuleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExclusionRule, com.google.privacy.dlp.v2.ExclusionRule.Builder, com.google.privacy.dlp.v2.ExclusionRuleOrBuilder> exclusionRuleBuilder_; + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public boolean hasExclusionRule() { + return typeCase_ == 2; + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public com.google.privacy.dlp.v2.ExclusionRule getExclusionRule() { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.ExclusionRule) type_; + } + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return exclusionRuleBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public Builder setExclusionRule(com.google.privacy.dlp.v2.ExclusionRule value) { + if (exclusionRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + exclusionRuleBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public Builder setExclusionRule( + com.google.privacy.dlp.v2.ExclusionRule.Builder builderForValue) { + if (exclusionRuleBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + exclusionRuleBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public Builder mergeExclusionRule(com.google.privacy.dlp.v2.ExclusionRule value) { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 2 && + type_ != com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance()) { + type_ = com.google.privacy.dlp.v2.ExclusionRule.newBuilder((com.google.privacy.dlp.v2.ExclusionRule) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + exclusionRuleBuilder_.mergeFrom(value); + } + exclusionRuleBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public Builder clearExclusionRule() { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + exclusionRuleBuilder_.clear(); + } + return this; + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public com.google.privacy.dlp.v2.ExclusionRule.Builder getExclusionRuleBuilder() { + return getExclusionRuleFieldBuilder().getBuilder(); + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + public com.google.privacy.dlp.v2.ExclusionRuleOrBuilder getExclusionRuleOrBuilder() { + if ((typeCase_ == 2) && (exclusionRuleBuilder_ != null)) { + return exclusionRuleBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.privacy.dlp.v2.ExclusionRule) type_; + } + return com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + } + /** + *
+     * Exclusion rule.
+     * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExclusionRule, com.google.privacy.dlp.v2.ExclusionRule.Builder, com.google.privacy.dlp.v2.ExclusionRuleOrBuilder> + getExclusionRuleFieldBuilder() { + if (exclusionRuleBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.privacy.dlp.v2.ExclusionRule.getDefaultInstance(); + } + exclusionRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ExclusionRule, com.google.privacy.dlp.v2.ExclusionRule.Builder, com.google.privacy.dlp.v2.ExclusionRuleOrBuilder>( + (com.google.privacy.dlp.v2.ExclusionRule) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return exclusionRuleBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.InspectionRule) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRule) + private static final com.google.privacy.dlp.v2.InspectionRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.InspectionRule(); + } + + public static com.google.privacy.dlp.v2.InspectionRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InspectionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InspectionRule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleOrBuilder.java new file mode 100644 index 000000000000..ddfa31dc583c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +public interface InspectionRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.InspectionRule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + boolean hasHotwordRule(); + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule getHotwordRule(); + /** + *
+   * Hotword-based detection rule.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + */ + com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleOrBuilder getHotwordRuleOrBuilder(); + + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + boolean hasExclusionRule(); + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + com.google.privacy.dlp.v2.ExclusionRule getExclusionRule(); + /** + *
+   * Exclusion rule.
+   * 
+ * + * .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + */ + com.google.privacy.dlp.v2.ExclusionRuleOrBuilder getExclusionRuleOrBuilder(); + + public com.google.privacy.dlp.v2.InspectionRule.TypeCase getTypeCase(); +} diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSet.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSet.java new file mode 100644 index 000000000000..68f02915d66c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSet.java @@ -0,0 +1,1296 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + *
+ * Rule set for modifying a set of infoTypes to alter behavior under certain
+ * circumstances, depending on the specific details of the rules within the set.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.InspectionRuleSet} + */ +public final class InspectionRuleSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InspectionRuleSet) + InspectionRuleSetOrBuilder { +private static final long serialVersionUID = 0L; + // Use InspectionRuleSet.newBuilder() to construct. + private InspectionRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InspectionRuleSet() { + infoTypes_ = java.util.Collections.emptyList(); + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InspectionRuleSet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + infoTypes_.add( + input.readMessage(com.google.privacy.dlp.v2.InfoType.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + rules_.add( + input.readMessage(com.google.privacy.dlp.v2.InspectionRule.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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) == 0x00000001)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + } + 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_InspectionRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.InspectionRuleSet.class, com.google.privacy.dlp.v2.InspectionRuleSet.Builder.class); + } + + public static final int INFO_TYPES_FIELD_NUMBER = 1; + private java.util.List infoTypes_; + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List getInfoTypesList() { + return infoTypes_; + } + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesOrBuilderList() { + return infoTypes_; + } + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public int getInfoTypesCount() { + return infoTypes_.size(); + } + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) { + return infoTypes_.get(index); + } + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index) { + return infoTypes_.get(index); + } + + public static final int RULES_FIELD_NUMBER = 2; + private java.util.List rules_; + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public java.util.List getRulesList() { + return rules_; + } + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public int getRulesCount() { + return rules_.size(); + } + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRule getRules(int index) { + return rules_.get(index); + } + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRuleOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < infoTypes_.size(); i++) { + output.writeMessage(1, infoTypes_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < infoTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, infoTypes_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, rules_.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.InspectionRuleSet)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.InspectionRuleSet other = (com.google.privacy.dlp.v2.InspectionRuleSet) obj; + + boolean result = true; + result = result && getInfoTypesList() + .equals(other.getInfoTypesList()); + result = result && getRulesList() + .equals(other.getRulesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInfoTypesCount() > 0) { + hash = (37 * hash) + INFO_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getInfoTypesList().hashCode(); + } + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.InspectionRuleSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRuleSet 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.InspectionRuleSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRuleSet 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.InspectionRuleSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.privacy.dlp.v2.InspectionRuleSet 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.InspectionRuleSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.InspectionRuleSet 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.InspectionRuleSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.privacy.dlp.v2.InspectionRuleSet 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.InspectionRuleSet 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.InspectionRuleSet 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.InspectionRuleSet 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; + } + /** + *
+   * Rule set for modifying a set of infoTypes to alter behavior under certain
+   * circumstances, depending on the specific details of the rules within the set.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.InspectionRuleSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.InspectionRuleSet) + com.google.privacy.dlp.v2.InspectionRuleSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.InspectionRuleSet.class, com.google.privacy.dlp.v2.InspectionRuleSet.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.InspectionRuleSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInfoTypesFieldBuilder(); + getRulesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (infoTypesBuilder_ == null) { + infoTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infoTypesBuilder_.clear(); + } + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + rulesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectionRuleSet_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRuleSet getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.InspectionRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRuleSet build() { + com.google.privacy.dlp.v2.InspectionRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRuleSet buildPartial() { + com.google.privacy.dlp.v2.InspectionRuleSet result = new com.google.privacy.dlp.v2.InspectionRuleSet(this); + int from_bitField0_ = bitField0_; + if (infoTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.infoTypes_ = infoTypes_; + } else { + result.infoTypes_ = infoTypesBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.InspectionRuleSet) { + return mergeFrom((com.google.privacy.dlp.v2.InspectionRuleSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.InspectionRuleSet other) { + if (other == com.google.privacy.dlp.v2.InspectionRuleSet.getDefaultInstance()) return this; + if (infoTypesBuilder_ == null) { + if (!other.infoTypes_.isEmpty()) { + if (infoTypes_.isEmpty()) { + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoTypesIsMutable(); + infoTypes_.addAll(other.infoTypes_); + } + onChanged(); + } + } else { + if (!other.infoTypes_.isEmpty()) { + if (infoTypesBuilder_.isEmpty()) { + infoTypesBuilder_.dispose(); + infoTypesBuilder_ = null; + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + infoTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInfoTypesFieldBuilder() : null; + } else { + infoTypesBuilder_.addAllMessages(other.infoTypes_); + } + } + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.privacy.dlp.v2.InspectionRuleSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.InspectionRuleSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List infoTypes_ = + java.util.Collections.emptyList(); + private void ensureInfoTypesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + infoTypes_ = new java.util.ArrayList(infoTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder> infoTypesBuilder_; + + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List getInfoTypesList() { + if (infoTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(infoTypes_); + } else { + return infoTypesBuilder_.getMessageList(); + } + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public int getInfoTypesCount() { + if (infoTypesBuilder_ == null) { + return infoTypes_.size(); + } else { + return infoTypesBuilder_.getCount(); + } + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) { + if (infoTypesBuilder_ == null) { + return infoTypes_.get(index); + } else { + return infoTypesBuilder_.getMessage(index); + } + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder setInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.set(index, value); + onChanged(); + } else { + infoTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder setInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.add(value); + onChanged(); + } else { + infoTypesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType value) { + if (infoTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoTypesIsMutable(); + infoTypes_.add(index, value); + onChanged(); + } else { + infoTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.add(builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addInfoTypes( + int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + infoTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder addAllInfoTypes( + java.lang.Iterable values) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, infoTypes_); + onChanged(); + } else { + infoTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder clearInfoTypes() { + if (infoTypesBuilder_ == null) { + infoTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoTypesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public Builder removeInfoTypes(int index) { + if (infoTypesBuilder_ == null) { + ensureInfoTypesIsMutable(); + infoTypes_.remove(index); + onChanged(); + } else { + infoTypesBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypesBuilder( + int index) { + return getInfoTypesFieldBuilder().getBuilder(index); + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index) { + if (infoTypesBuilder_ == null) { + return infoTypes_.get(index); } else { + return infoTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesOrBuilderList() { + if (infoTypesBuilder_ != null) { + return infoTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infoTypes_); + } + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder() { + return getInfoTypesFieldBuilder().addBuilder( + com.google.privacy.dlp.v2.InfoType.getDefaultInstance()); + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder( + int index) { + return getInfoTypesFieldBuilder().addBuilder( + index, com.google.privacy.dlp.v2.InfoType.getDefaultInstance()); + } + /** + *
+     * List of infoTypes this rule set is applied to.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + public java.util.List + getInfoTypesBuilderList() { + return getInfoTypesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder> + getInfoTypesFieldBuilder() { + if (infoTypesBuilder_ == null) { + infoTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, com.google.privacy.dlp.v2.InfoType.Builder, com.google.privacy.dlp.v2.InfoTypeOrBuilder>( + infoTypes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + infoTypes_ = null; + } + return infoTypesBuilder_; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRule, com.google.privacy.dlp.v2.InspectionRule.Builder, com.google.privacy.dlp.v2.InspectionRuleOrBuilder> rulesBuilder_; + + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder setRules( + int index, com.google.privacy.dlp.v2.InspectionRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder setRules( + int index, com.google.privacy.dlp.v2.InspectionRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder addRules(com.google.privacy.dlp.v2.InspectionRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder addRules( + int index, com.google.privacy.dlp.v2.InspectionRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder addRules( + com.google.privacy.dlp.v2.InspectionRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder addRules( + int index, com.google.privacy.dlp.v2.InspectionRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + com.google.privacy.dlp.v2.InspectionRule.getDefaultInstance()); + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public com.google.privacy.dlp.v2.InspectionRule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, com.google.privacy.dlp.v2.InspectionRule.getDefaultInstance()); + } + /** + *
+     * Set of rules to be applied to infoTypes. The rules are applied in order.
+     * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRule, com.google.privacy.dlp.v2.InspectionRule.Builder, com.google.privacy.dlp.v2.InspectionRuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InspectionRule, com.google.privacy.dlp.v2.InspectionRule.Builder, com.google.privacy.dlp.v2.InspectionRuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.InspectionRuleSet) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.InspectionRuleSet) + private static final com.google.privacy.dlp.v2.InspectionRuleSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.InspectionRuleSet(); + } + + public static com.google.privacy.dlp.v2.InspectionRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InspectionRuleSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InspectionRuleSet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.InspectionRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSetOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSetOrBuilder.java new file mode 100644 index 000000000000..2584c2b9b23c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectionRuleSetOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +public interface InspectionRuleSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.InspectionRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + java.util.List + getInfoTypesList(); + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + com.google.privacy.dlp.v2.InfoType getInfoTypes(int index); + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + int getInfoTypesCount(); + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + java.util.List + getInfoTypesOrBuilderList(); + /** + *
+   * List of infoTypes this rule set is applied to.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder( + int index); + + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + java.util.List + getRulesList(); + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + com.google.privacy.dlp.v2.InspectionRule getRules(int index); + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + int getRulesCount(); + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + java.util.List + getRulesOrBuilderList(); + /** + *
+   * Set of rules to be applied to infoTypes. The rules are applied in order.
+   * 
+ * + * repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + com.google.privacy.dlp.v2.InspectionRuleOrBuilder getRulesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java index 85d7b7f8346a..b717c7208be6 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java @@ -23,6 +23,7 @@ private ListDeidentifyTemplatesRequest() { parent_ = ""; pageToken_ = ""; pageSize_ = 0; + orderBy_ = ""; } @java.lang.Override @@ -66,6 +67,12 @@ private ListDeidentifyTemplatesRequest( pageSize_ = input.readInt32(); break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -200,6 +207,66 @@ public int getPageSize() { return pageSize_; } + public static final int ORDER_BY_FIELD_NUMBER = 4; + private volatile java.lang.Object orderBy_; + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -223,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } unknownFields.writeTo(output); } @@ -242,6 +312,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -264,6 +337,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); + result = result && getOrderBy() + .equals(other.getOrderBy()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -281,6 +356,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -424,6 +501,8 @@ public Builder clear() { pageSize_ = 0; + orderBy_ = ""; + return this; } @@ -453,6 +532,7 @@ public com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest buildPartial() { result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; + result.orderBy_ = orderBy_; onBuilt(); return result; } @@ -512,6 +592,10 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.ListDeidentifyTemplatesReques if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -769,6 +853,140 @@ public Builder clearPageSize() { onChanged(); return this; } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java index a86dd28bd612..ec5c1f259053 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java @@ -56,4 +56,40 @@ public interface ListDeidentifyTemplatesRequestOrBuilder extends * int32 page_size = 3; */ int getPageSize(); + + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + java.lang.String getOrderBy(); + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java index 82455fcf20ae..2988812ec912 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java @@ -23,6 +23,7 @@ private ListInspectTemplatesRequest() { parent_ = ""; pageToken_ = ""; pageSize_ = 0; + orderBy_ = ""; } @java.lang.Override @@ -66,6 +67,12 @@ private ListInspectTemplatesRequest( pageSize_ = input.readInt32(); break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -200,6 +207,66 @@ public int getPageSize() { return pageSize_; } + public static final int ORDER_BY_FIELD_NUMBER = 4; + private volatile java.lang.Object orderBy_; + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -223,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } unknownFields.writeTo(output); } @@ -242,6 +312,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -264,6 +337,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); + result = result && getOrderBy() + .equals(other.getOrderBy()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -281,6 +356,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -424,6 +501,8 @@ public Builder clear() { pageSize_ = 0; + orderBy_ = ""; + return this; } @@ -453,6 +532,7 @@ public com.google.privacy.dlp.v2.ListInspectTemplatesRequest buildPartial() { result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; + result.orderBy_ = orderBy_; onBuilt(); return result; } @@ -512,6 +592,10 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.ListInspectTemplatesRequest o if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -769,6 +853,140 @@ public Builder clearPageSize() { onChanged(); return this; } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc,update_time, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the template was created.
+     * - `update_time`: corresponds to time the template was last updated.
+     * - `name`: corresponds to template's name.
+     * - `display_name`: corresponds to template's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java index e076086deded..7330314c5591 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java @@ -56,4 +56,40 @@ public interface ListInspectTemplatesRequestOrBuilder extends * int32 page_size = 3; */ int getPageSize(); + + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + java.lang.String getOrderBy(); + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc,update_time, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the template was created.
+   * - `update_time`: corresponds to time the template was last updated.
+   * - `name`: corresponds to template's name.
+   * - `display_name`: corresponds to template's display name.
+   * 
+ * + * string order_by = 4; + */ + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java index 2d793a409409..85e530b701c8 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java @@ -216,9 +216,11 @@ public int getPageSize() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -243,9 +245,11 @@ public java.lang.String getOrderBy() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -857,9 +861,11 @@ public Builder clearPageSize() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -884,9 +890,11 @@ public java.lang.String getOrderBy() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -912,9 +920,11 @@ public java.lang.String getOrderBy() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -937,9 +947,11 @@ public Builder setOrderBy( * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -958,9 +970,11 @@ public Builder clearOrderBy() { * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java index 259f9f863eb4..51b10778173c 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java @@ -64,9 +64,11 @@ public interface ListJobTriggersRequestOrBuilder extends * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; @@ -80,9 +82,11 @@ public interface ListJobTriggersRequestOrBuilder extends * insignificant. * Example: `name asc,update_time, create_time desc` * Supported fields are: - * - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. + * - `create_time`: corresponds to time the JobTrigger was created. + * - `update_time`: corresponds to time the JobTrigger was last updated. * - `name`: corresponds to JobTrigger's name. + * - `display_name`: corresponds to JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. * * * string order_by = 4; diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java index 540687620e10..2ac9ff4a7532 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java @@ -23,6 +23,7 @@ private ListStoredInfoTypesRequest() { parent_ = ""; pageToken_ = ""; pageSize_ = 0; + orderBy_ = ""; } @java.lang.Override @@ -66,6 +67,12 @@ private ListStoredInfoTypesRequest( pageSize_ = input.readInt32(); break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -200,6 +207,68 @@ public int getPageSize() { return pageSize_; } + public static final int ORDER_BY_FIELD_NUMBER = 4; + private volatile java.lang.Object orderBy_; + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc, display_name, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the most recent version of the
+   * resource was created.
+   * - `state`: corresponds to the state of the resource.
+   * - `name`: corresponds to resource name.
+   * - `display_name`: corresponds to info type's display name.
+   * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc, display_name, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the most recent version of the
+   * resource was created.
+   * - `state`: corresponds to the state of the resource.
+   * - `name`: corresponds to resource name.
+   * - `display_name`: corresponds to info type's display name.
+   * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -223,6 +292,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } unknownFields.writeTo(output); } @@ -242,6 +314,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, pageSize_); } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -264,6 +339,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); + result = result && getOrderBy() + .equals(other.getOrderBy()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -281,6 +358,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -424,6 +503,8 @@ public Builder clear() { pageSize_ = 0; + orderBy_ = ""; + return this; } @@ -453,6 +534,7 @@ public com.google.privacy.dlp.v2.ListStoredInfoTypesRequest buildPartial() { result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; + result.orderBy_ = orderBy_; onBuilt(); return result; } @@ -512,6 +594,10 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.ListStoredInfoTypesRequest ot if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -769,6 +855,145 @@ public Builder clearPageSize() { onChanged(); return this; } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc, display_name, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the most recent version of the
+     * resource was created.
+     * - `state`: corresponds to the state of the resource.
+     * - `name`: corresponds to resource name.
+     * - `display_name`: corresponds to info type's display name.
+     * 
+ * + * string order_by = 4; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc, display_name, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the most recent version of the
+     * resource was created.
+     * - `state`: corresponds to the state of the resource.
+     * - `name`: corresponds to resource name.
+     * - `display_name`: corresponds to info type's display name.
+     * 
+ * + * string order_by = 4; + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc, display_name, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the most recent version of the
+     * resource was created.
+     * - `state`: corresponds to the state of the resource.
+     * - `name`: corresponds to resource name.
+     * - `display_name`: corresponds to info type's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc, display_name, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the most recent version of the
+     * resource was created.
+     * - `state`: corresponds to the state of the resource.
+     * - `name`: corresponds to resource name.
+     * - `display_name`: corresponds to info type's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * Optional comma separated list of fields to order by,
+     * followed by `asc` or `desc` postfix. This list is case-insensitive,
+     * default sorting order is ascending, redundant space characters are
+     * insignificant.
+     * Example: `name asc, display_name, create_time desc`
+     * Supported fields are:
+     * - `create_time`: corresponds to time the most recent version of the
+     * resource was created.
+     * - `state`: corresponds to the state of the resource.
+     * - `name`: corresponds to resource name.
+     * - `display_name`: corresponds to info type's display name.
+     * 
+ * + * string order_by = 4; + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java index 81958a2cc189..5000fec5b061 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java @@ -56,4 +56,42 @@ public interface ListStoredInfoTypesRequestOrBuilder extends * int32 page_size = 3; */ int getPageSize(); + + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc, display_name, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the most recent version of the
+   * resource was created.
+   * - `state`: corresponds to the state of the resource.
+   * - `name`: corresponds to resource name.
+   * - `display_name`: corresponds to info type's display name.
+   * 
+ * + * string order_by = 4; + */ + java.lang.String getOrderBy(); + /** + *
+   * Optional comma separated list of fields to order by,
+   * followed by `asc` or `desc` postfix. This list is case-insensitive,
+   * default sorting order is ascending, redundant space characters are
+   * insignificant.
+   * Example: `name asc, display_name, create_time desc`
+   * Supported fields are:
+   * - `create_time`: corresponds to time the most recent version of the
+   * resource was created.
+   * - `state`: corresponds to the state of the resource.
+   * - `name`: corresponds to resource name.
+   * - `display_name`: corresponds to info type's display name.
+   * 
+ * + * string order_by = 4; + */ + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java new file mode 100644 index 000000000000..6868d1d4a948 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java @@ -0,0 +1,177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +package com.google.privacy.dlp.v2; + +/** + *
+ * Type of the match which can be applied to different ways of matching, like
+ * Dictionary, regular expression and intersecting with findings of another
+ * info type.
+ * 
+ * + * Protobuf enum {@code google.privacy.dlp.v2.MatchingType} + */ +public enum MatchingType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Invalid.
+   * 
+ * + * MATCHING_TYPE_UNSPECIFIED = 0; + */ + MATCHING_TYPE_UNSPECIFIED(0), + /** + *
+   * Full match.
+   * - Dictionary: join of Dictionary results matched complete finding quote
+   * - Regex: all regex matches fill a finding quote start to end
+   * - Exclude info type: completely inside affecting info types findings
+   * 
+ * + * MATCHING_TYPE_FULL_MATCH = 1; + */ + MATCHING_TYPE_FULL_MATCH(1), + /** + *
+   * Partial match.
+   * - Dictionary: at least one of the tokens in the finding matches
+   * - Regex: substring of the finding matches
+   * - Exclude info type: intersects with affecting info types findings
+   * 
+ * + * MATCHING_TYPE_PARTIAL_MATCH = 2; + */ + MATCHING_TYPE_PARTIAL_MATCH(2), + /** + *
+   * Inverse match.
+   * - Dictionary: no tokens in the finding match the dictionary
+   * - Regex: finding doesn't match the regex
+   * - Exclude info type: no intersection with affecting info types findings
+   * 
+ * + * MATCHING_TYPE_INVERSE_MATCH = 3; + */ + MATCHING_TYPE_INVERSE_MATCH(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Invalid.
+   * 
+ * + * MATCHING_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCHING_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Full match.
+   * - Dictionary: join of Dictionary results matched complete finding quote
+   * - Regex: all regex matches fill a finding quote start to end
+   * - Exclude info type: completely inside affecting info types findings
+   * 
+ * + * MATCHING_TYPE_FULL_MATCH = 1; + */ + public static final int MATCHING_TYPE_FULL_MATCH_VALUE = 1; + /** + *
+   * Partial match.
+   * - Dictionary: at least one of the tokens in the finding matches
+   * - Regex: substring of the finding matches
+   * - Exclude info type: intersects with affecting info types findings
+   * 
+ * + * MATCHING_TYPE_PARTIAL_MATCH = 2; + */ + public static final int MATCHING_TYPE_PARTIAL_MATCH_VALUE = 2; + /** + *
+   * Inverse match.
+   * - Dictionary: no tokens in the finding match the dictionary
+   * - Regex: finding doesn't match the regex
+   * - Exclude info type: no intersection with affecting info types findings
+   * 
+ * + * MATCHING_TYPE_INVERSE_MATCH = 3; + */ + public static final int MATCHING_TYPE_INVERSE_MATCH_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchingType valueOf(int value) { + return forNumber(value); + } + + public static MatchingType forNumber(int value) { + switch (value) { + case 0: return MATCHING_TYPE_UNSPECIFIED; + case 1: return MATCHING_TYPE_FULL_MATCH; + case 2: return MATCHING_TYPE_PARTIAL_MATCH; + case 3: return MATCHING_TYPE_INVERSE_MATCH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MatchingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchingType findValueByNumber(int number) { + return MatchingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(1); + } + + private static final MatchingType[] VALUES = values(); + + public static MatchingType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.MatchingType) +} + diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java index 9cdf963e9cf2..b71a459050a1 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java @@ -189,7 +189,7 @@ public RelationalOperator findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(2); + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(3); } private static final RelationalOperator[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java index f9204b537777..29f7cd8fa067 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java @@ -144,7 +144,7 @@ public StoredInfoTypeState findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(4); + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(5); } private static final StoredInfoTypeState[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index fdf835822747..0e3931e74e12 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -400,6 +401,59 @@ service DlpService { } } +// List of exclude infoTypes. +message ExcludeInfoTypes { + // InfoType list in ExclusionRule rule drops a finding when it overlaps or + // contained within with a finding of an infoType from this list. For + // example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and + // `exclusion_rule` containing `exclude_info_types.info_types` with + // "EMAIL_ADDRESS" the phone number findings are dropped if they overlap + // with EMAIL_ADDRESS finding. + // That leads to "555-222-2222@example.org" to generate only a single + // finding, namely email address. + repeated InfoType info_types = 1; +} + +// The rule that specifies conditions when findings of infoTypes specified in +// `InspectionRuleSet` are removed from results. +message ExclusionRule { + oneof type { + // Dictionary which defines the rule. + CustomInfoType.Dictionary dictionary = 1; + + // Regular expression which defines the rule. + CustomInfoType.Regex regex = 2; + + // Set of infoTypes for which findings would affect this rule. + ExcludeInfoTypes exclude_info_types = 3; + } + + // How the rule is applied, see MatchingType documentation for details. + MatchingType matching_type = 4; +} + +// A single inspection rule to be applied to infoTypes, specified in +// `InspectionRuleSet`. +message InspectionRule { + oneof type { + // Hotword-based detection rule. + CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + + // Exclusion rule. + ExclusionRule exclusion_rule = 2; + } +} + +// Rule set for modifying a set of infoTypes to alter behavior under certain +// circumstances, depending on the specific details of the rules within the set. +message InspectionRuleSet { + // List of infoTypes this rule set is applied to. + repeated InfoType info_types = 1; + + // Set of rules to be applied to infoTypes. The rules are applied in order. + repeated InspectionRule rules = 2; +} + // Configuration description of the scanning process. // When used with redactContent only info_types and min_likelihood are currently // used. @@ -468,6 +522,11 @@ message InspectConfig { // List of options defining data content to scan. // If empty, text, images, and other content will be included. repeated ContentOption content_options = 8; + + // Set of rules to apply to the findings for this InspectConfig. + // Exclusion rules, contained in the set are executed in the end, other + // rules are executed in the order they are specified for each info type. + repeated InspectionRuleSet rule_set = 10; } // Container for bytes to inspect or redact. @@ -2335,6 +2394,21 @@ message ListInspectTemplatesRequest { // Optional size of the page, can be limited by server. If zero server returns // a page of max size 100. int32 page_size = 3; + + // Optional comma separated list of fields to order by, + // followed by `asc` or `desc` postfix. This list is case-insensitive, + // default sorting order is ascending, redundant space characters are + // insignificant. + // + // Example: `name asc,update_time, create_time desc` + // + // Supported fields are: + // + // - `create_time`: corresponds to time the template was created. + // - `update_time`: corresponds to time the template was last updated. + // - `name`: corresponds to template's name. + // - `display_name`: corresponds to template's display name. + string order_by = 4; } // Response message for ListInspectTemplates. @@ -2433,9 +2507,11 @@ message ListJobTriggersRequest { // // Supported fields are: // - // - `create_time`: corresponds to time the triggeredJob was created. - // - `update_time`: corresponds to time the triggeredJob was last updated. + // - `create_time`: corresponds to time the JobTrigger was created. + // - `update_time`: corresponds to time the JobTrigger was last updated. // - `name`: corresponds to JobTrigger's name. + // - `display_name`: corresponds to JobTrigger's display name. + // - `status`: corresponds to JobTrigger's status. string order_by = 4; } @@ -2646,6 +2722,21 @@ message ListDeidentifyTemplatesRequest { // Optional size of the page, can be limited by server. If zero server returns // a page of max size 100. int32 page_size = 3; + + // Optional comma separated list of fields to order by, + // followed by `asc` or `desc` postfix. This list is case-insensitive, + // default sorting order is ascending, redundant space characters are + // insignificant. + // + // Example: `name asc,update_time, create_time desc` + // + // Supported fields are: + // + // - `create_time`: corresponds to time the template was created. + // - `update_time`: corresponds to time the template was last updated. + // - `name`: corresponds to template's name. + // - `display_name`: corresponds to template's display name. + string order_by = 4; } // Response message for ListDeidentifyTemplates. @@ -2798,6 +2889,22 @@ message ListStoredInfoTypesRequest { // Optional size of the page, can be limited by server. If zero server returns // a page of max size 100. int32 page_size = 3; + + // Optional comma separated list of fields to order by, + // followed by `asc` or `desc` postfix. This list is case-insensitive, + // default sorting order is ascending, redundant space characters are + // insignificant. + // + // Example: `name asc, display_name, create_time desc` + // + // Supported fields are: + // + // - `create_time`: corresponds to time the most recent version of the + // resource was created. + // - `state`: corresponds to the state of the resource. + // - `name`: corresponds to resource name. + // - `display_name`: corresponds to info type's display name. + string order_by = 4; } // Response message for ListStoredInfoTypes. @@ -2830,6 +2937,35 @@ enum ContentOption { CONTENT_IMAGE = 2; } +// Type of the match which can be applied to different ways of matching, like +// Dictionary, regular expression and intersecting with findings of another +// info type. +enum MatchingType { + // Invalid. + MATCHING_TYPE_UNSPECIFIED = 0; + + // Full match. + // + // - Dictionary: join of Dictionary results matched complete finding quote + // - Regex: all regex matches fill a finding quote start to end + // - Exclude info type: completely inside affecting info types findings + MATCHING_TYPE_FULL_MATCH = 1; + + // Partial match. + // + // - Dictionary: at least one of the tokens in the finding matches + // - Regex: substring of the finding matches + // - Exclude info type: intersects with affecting info types findings + MATCHING_TYPE_PARTIAL_MATCH = 2; + + // Inverse match. + // + // - Dictionary: no tokens in the finding match the dictionary + // - Regex: finding doesn't match the regex + // - Exclude info type: no intersection with affecting info types findings + MATCHING_TYPE_INVERSE_MATCH = 3; +} + // Parts of the APIs which use certain infoTypes. enum InfoTypeSupportedBy { ENUM_TYPE_UNSPECIFIED = 0; diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto index 54c47e9eb985..c86a6dd57a31 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -95,7 +96,9 @@ message CustomInfoType { // Message defining a custom regular expression. message Regex { - // Pattern defining the regular expression. + // Pattern defining the regular expression. Its syntax + // (https://github.com/google/re2/wiki/Syntax) can be found under the + // google/re2 repository on GitHub. string pattern = 1; } @@ -170,8 +173,21 @@ message CustomInfoType { } } - // All CustomInfoTypes must have a name - // that does not conflict with built-in InfoTypes or other CustomInfoTypes. + enum ExclusionType { + // A finding of this custom info type will not be excluded from results. + EXCLUSION_TYPE_UNSPECIFIED = 0; + + // A finding of this custom info type will be excluded from final results, + // but can still affect rule execution. + EXCLUSION_TYPE_EXCLUDE = 1; + } + + // CustomInfoType can either be a new infoType, or an extension of built-in + // infoType, when the name matches one of existing infoTypes and that infoType + // is specified in `InspectContent.info_types` field. Specifying the latter + // adds findings to the one detected by the system. If built-in info type is + // not specified in `InspectContent.info_types` list then the name is treated + // as a custom info type. InfoType info_type = 1; // Likelihood to return for this CustomInfoType. This base value can be @@ -199,6 +215,10 @@ message CustomInfoType { // Rules are applied in order that they are specified. Not supported for the // `surrogate_type` CustomInfoType. repeated DetectionRule detection_rules = 7; + + // If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding + // to be returned. It still can be used for rules matching. + ExclusionType exclusion_type = 8; } // General identifier of a data field in a storage service. @@ -237,13 +257,13 @@ message DatastoreOptions { KindExpression kind = 2; } -// Options defining a file or a set of files (path ending with *) within -// a Google Cloud Storage bucket. +// Options defining a file or a set of files within a Google Cloud Storage +// bucket. message CloudStorageOptions { // Set of files to scan. message FileSet { - // The url, in the format `gs:///`. Trailing wildcard in the - // path is allowed. + // The Cloud Storage url of the file(s) to scan, in the format + // `gs:///`. Trailing wildcard in the path is allowed. string url = 1; } @@ -261,6 +281,7 @@ message CloudStorageOptions { RANDOM_START = 2; } + // The set of one or more files to scan. FileSet file_set = 1; // Max number of bytes to scan from a file. If a scanned file's size is bigger