|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.dlp.v2.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * The file cluster summary. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed |
| 24 | + * explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class GooglePrivacyDlpV2FileClusterSummary extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * The data risk level of this cluster. RISK_LOW if nothing has been scanned. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private GooglePrivacyDlpV2DataRiskLevel dataRiskLevel; |
| 39 | + |
| 40 | + /** |
| 41 | + * A list of Errors detected while scanning this cluster. The list is truncated to 10 per cluster. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.util.List<GooglePrivacyDlpV2Error> errors; |
| 46 | + |
| 47 | + static { |
| 48 | + // hack to force ProGuard to consider GooglePrivacyDlpV2Error used, since otherwise it would be stripped out |
| 49 | + // see https://github.com/google/google-api-java-client/issues/543 |
| 50 | + com.google.api.client.util.Data.nullOf(GooglePrivacyDlpV2Error.class); |
| 51 | + } |
| 52 | + |
| 53 | + /** |
| 54 | + * The file cluster type. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private GooglePrivacyDlpV2FileClusterType fileClusterType; |
| 59 | + |
| 60 | + /** |
| 61 | + * A sample of file types scanned in this cluster. Empty if no files were scanned. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.util.List<GooglePrivacyDlpV2FileExtensionInfo> fileExtensionsScanned; |
| 66 | + |
| 67 | + /** |
| 68 | + * A sample of file types seen in this cluster. Empty if no files were seen. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private java.util.List<GooglePrivacyDlpV2FileExtensionInfo> fileExtensionsSeen; |
| 73 | + |
| 74 | + /** |
| 75 | + * InfoTypes detected in this cluster. |
| 76 | + * The value may be {@code null}. |
| 77 | + */ |
| 78 | + @com.google.api.client.util.Key |
| 79 | + private java.util.List<GooglePrivacyDlpV2FileStoreInfoTypeSummary> fileStoreInfoTypeSummaries; |
| 80 | + |
| 81 | + /** |
| 82 | + * True if no files exist in this cluster. If the bucket had more files than could be listed, this |
| 83 | + * will be false even if no files for this cluster were seen and file_extensions_seen is empty. |
| 84 | + * The value may be {@code null}. |
| 85 | + */ |
| 86 | + @com.google.api.client.util.Key |
| 87 | + private java.lang.Boolean noFilesExist; |
| 88 | + |
| 89 | + /** |
| 90 | + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been |
| 91 | + * scanned. |
| 92 | + * The value may be {@code null}. |
| 93 | + */ |
| 94 | + @com.google.api.client.util.Key |
| 95 | + private GooglePrivacyDlpV2SensitivityScore sensitivityScore; |
| 96 | + |
| 97 | + /** |
| 98 | + * The data risk level of this cluster. RISK_LOW if nothing has been scanned. |
| 99 | + * @return value or {@code null} for none |
| 100 | + */ |
| 101 | + public GooglePrivacyDlpV2DataRiskLevel getDataRiskLevel() { |
| 102 | + return dataRiskLevel; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * The data risk level of this cluster. RISK_LOW if nothing has been scanned. |
| 107 | + * @param dataRiskLevel dataRiskLevel or {@code null} for none |
| 108 | + */ |
| 109 | + public GooglePrivacyDlpV2FileClusterSummary setDataRiskLevel(GooglePrivacyDlpV2DataRiskLevel dataRiskLevel) { |
| 110 | + this.dataRiskLevel = dataRiskLevel; |
| 111 | + return this; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * A list of Errors detected while scanning this cluster. The list is truncated to 10 per cluster. |
| 116 | + * @return value or {@code null} for none |
| 117 | + */ |
| 118 | + public java.util.List<GooglePrivacyDlpV2Error> getErrors() { |
| 119 | + return errors; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * A list of Errors detected while scanning this cluster. The list is truncated to 10 per cluster. |
| 124 | + * @param errors errors or {@code null} for none |
| 125 | + */ |
| 126 | + public GooglePrivacyDlpV2FileClusterSummary setErrors(java.util.List<GooglePrivacyDlpV2Error> errors) { |
| 127 | + this.errors = errors; |
| 128 | + return this; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * The file cluster type. |
| 133 | + * @return value or {@code null} for none |
| 134 | + */ |
| 135 | + public GooglePrivacyDlpV2FileClusterType getFileClusterType() { |
| 136 | + return fileClusterType; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * The file cluster type. |
| 141 | + * @param fileClusterType fileClusterType or {@code null} for none |
| 142 | + */ |
| 143 | + public GooglePrivacyDlpV2FileClusterSummary setFileClusterType(GooglePrivacyDlpV2FileClusterType fileClusterType) { |
| 144 | + this.fileClusterType = fileClusterType; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * A sample of file types scanned in this cluster. Empty if no files were scanned. |
| 150 | + * @return value or {@code null} for none |
| 151 | + */ |
| 152 | + public java.util.List<GooglePrivacyDlpV2FileExtensionInfo> getFileExtensionsScanned() { |
| 153 | + return fileExtensionsScanned; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * A sample of file types scanned in this cluster. Empty if no files were scanned. |
| 158 | + * @param fileExtensionsScanned fileExtensionsScanned or {@code null} for none |
| 159 | + */ |
| 160 | + public GooglePrivacyDlpV2FileClusterSummary setFileExtensionsScanned(java.util.List<GooglePrivacyDlpV2FileExtensionInfo> fileExtensionsScanned) { |
| 161 | + this.fileExtensionsScanned = fileExtensionsScanned; |
| 162 | + return this; |
| 163 | + } |
| 164 | + |
| 165 | + /** |
| 166 | + * A sample of file types seen in this cluster. Empty if no files were seen. |
| 167 | + * @return value or {@code null} for none |
| 168 | + */ |
| 169 | + public java.util.List<GooglePrivacyDlpV2FileExtensionInfo> getFileExtensionsSeen() { |
| 170 | + return fileExtensionsSeen; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * A sample of file types seen in this cluster. Empty if no files were seen. |
| 175 | + * @param fileExtensionsSeen fileExtensionsSeen or {@code null} for none |
| 176 | + */ |
| 177 | + public GooglePrivacyDlpV2FileClusterSummary setFileExtensionsSeen(java.util.List<GooglePrivacyDlpV2FileExtensionInfo> fileExtensionsSeen) { |
| 178 | + this.fileExtensionsSeen = fileExtensionsSeen; |
| 179 | + return this; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * InfoTypes detected in this cluster. |
| 184 | + * @return value or {@code null} for none |
| 185 | + */ |
| 186 | + public java.util.List<GooglePrivacyDlpV2FileStoreInfoTypeSummary> getFileStoreInfoTypeSummaries() { |
| 187 | + return fileStoreInfoTypeSummaries; |
| 188 | + } |
| 189 | + |
| 190 | + /** |
| 191 | + * InfoTypes detected in this cluster. |
| 192 | + * @param fileStoreInfoTypeSummaries fileStoreInfoTypeSummaries or {@code null} for none |
| 193 | + */ |
| 194 | + public GooglePrivacyDlpV2FileClusterSummary setFileStoreInfoTypeSummaries(java.util.List<GooglePrivacyDlpV2FileStoreInfoTypeSummary> fileStoreInfoTypeSummaries) { |
| 195 | + this.fileStoreInfoTypeSummaries = fileStoreInfoTypeSummaries; |
| 196 | + return this; |
| 197 | + } |
| 198 | + |
| 199 | + /** |
| 200 | + * True if no files exist in this cluster. If the bucket had more files than could be listed, this |
| 201 | + * will be false even if no files for this cluster were seen and file_extensions_seen is empty. |
| 202 | + * @return value or {@code null} for none |
| 203 | + */ |
| 204 | + public java.lang.Boolean getNoFilesExist() { |
| 205 | + return noFilesExist; |
| 206 | + } |
| 207 | + |
| 208 | + /** |
| 209 | + * True if no files exist in this cluster. If the bucket had more files than could be listed, this |
| 210 | + * will be false even if no files for this cluster were seen and file_extensions_seen is empty. |
| 211 | + * @param noFilesExist noFilesExist or {@code null} for none |
| 212 | + */ |
| 213 | + public GooglePrivacyDlpV2FileClusterSummary setNoFilesExist(java.lang.Boolean noFilesExist) { |
| 214 | + this.noFilesExist = noFilesExist; |
| 215 | + return this; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been |
| 220 | + * scanned. |
| 221 | + * @return value or {@code null} for none |
| 222 | + */ |
| 223 | + public GooglePrivacyDlpV2SensitivityScore getSensitivityScore() { |
| 224 | + return sensitivityScore; |
| 225 | + } |
| 226 | + |
| 227 | + /** |
| 228 | + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been |
| 229 | + * scanned. |
| 230 | + * @param sensitivityScore sensitivityScore or {@code null} for none |
| 231 | + */ |
| 232 | + public GooglePrivacyDlpV2FileClusterSummary setSensitivityScore(GooglePrivacyDlpV2SensitivityScore sensitivityScore) { |
| 233 | + this.sensitivityScore = sensitivityScore; |
| 234 | + return this; |
| 235 | + } |
| 236 | + |
| 237 | + @Override |
| 238 | + public GooglePrivacyDlpV2FileClusterSummary set(String fieldName, Object value) { |
| 239 | + return (GooglePrivacyDlpV2FileClusterSummary) super.set(fieldName, value); |
| 240 | + } |
| 241 | + |
| 242 | + @Override |
| 243 | + public GooglePrivacyDlpV2FileClusterSummary clone() { |
| 244 | + return (GooglePrivacyDlpV2FileClusterSummary) super.clone(); |
| 245 | + } |
| 246 | + |
| 247 | +} |
0 commit comments