|
| 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 | + * Details about a piece of potentially sensitive information that was detected when the data |
| 21 | + * resource was profiled. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed |
| 25 | + * explanation see: |
| 26 | + * <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> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class GooglePrivacyDlpV2DataProfileFinding extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Resource name of the data profile associated with the finding. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String dataProfileResourceName; |
| 40 | + |
| 41 | + /** |
| 42 | + * A unique identifier for the finding. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String findingId; |
| 47 | + |
| 48 | + /** |
| 49 | + * The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes- |
| 50 | + * reference) that might have been found. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private GooglePrivacyDlpV2InfoType infotype; |
| 55 | + |
| 56 | + /** |
| 57 | + * Where the content was found. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private GooglePrivacyDlpV2DataProfileFindingLocation location; |
| 62 | + |
| 63 | + /** |
| 64 | + * The content that was found. Even if the content is not textual, it may be converted to a |
| 65 | + * textual representation here. If the finding exceeds 4096 bytes in length, the quote may be |
| 66 | + * omitted. |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private java.lang.String quote; |
| 71 | + |
| 72 | + /** |
| 73 | + * Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME. |
| 74 | + * The value may be {@code null}. |
| 75 | + */ |
| 76 | + @com.google.api.client.util.Key |
| 77 | + private GooglePrivacyDlpV2QuoteInfo quoteInfo; |
| 78 | + |
| 79 | + /** |
| 80 | + * How broadly a resource has been shared. |
| 81 | + * The value may be {@code null}. |
| 82 | + */ |
| 83 | + @com.google.api.client.util.Key |
| 84 | + private java.lang.String resourceVisibility; |
| 85 | + |
| 86 | + /** |
| 87 | + * Timestamp when the finding was detected. |
| 88 | + * The value may be {@code null}. |
| 89 | + */ |
| 90 | + @com.google.api.client.util.Key |
| 91 | + private String timestamp; |
| 92 | + |
| 93 | + /** |
| 94 | + * Resource name of the data profile associated with the finding. |
| 95 | + * @return value or {@code null} for none |
| 96 | + */ |
| 97 | + public java.lang.String getDataProfileResourceName() { |
| 98 | + return dataProfileResourceName; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Resource name of the data profile associated with the finding. |
| 103 | + * @param dataProfileResourceName dataProfileResourceName or {@code null} for none |
| 104 | + */ |
| 105 | + public GooglePrivacyDlpV2DataProfileFinding setDataProfileResourceName(java.lang.String dataProfileResourceName) { |
| 106 | + this.dataProfileResourceName = dataProfileResourceName; |
| 107 | + return this; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * A unique identifier for the finding. |
| 112 | + * @return value or {@code null} for none |
| 113 | + */ |
| 114 | + public java.lang.String getFindingId() { |
| 115 | + return findingId; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * A unique identifier for the finding. |
| 120 | + * @param findingId findingId or {@code null} for none |
| 121 | + */ |
| 122 | + public GooglePrivacyDlpV2DataProfileFinding setFindingId(java.lang.String findingId) { |
| 123 | + this.findingId = findingId; |
| 124 | + return this; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes- |
| 129 | + * reference) that might have been found. |
| 130 | + * @return value or {@code null} for none |
| 131 | + */ |
| 132 | + public GooglePrivacyDlpV2InfoType getInfotype() { |
| 133 | + return infotype; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes- |
| 138 | + * reference) that might have been found. |
| 139 | + * @param infotype infotype or {@code null} for none |
| 140 | + */ |
| 141 | + public GooglePrivacyDlpV2DataProfileFinding setInfotype(GooglePrivacyDlpV2InfoType infotype) { |
| 142 | + this.infotype = infotype; |
| 143 | + return this; |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * Where the content was found. |
| 148 | + * @return value or {@code null} for none |
| 149 | + */ |
| 150 | + public GooglePrivacyDlpV2DataProfileFindingLocation getLocation() { |
| 151 | + return location; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Where the content was found. |
| 156 | + * @param location location or {@code null} for none |
| 157 | + */ |
| 158 | + public GooglePrivacyDlpV2DataProfileFinding setLocation(GooglePrivacyDlpV2DataProfileFindingLocation location) { |
| 159 | + this.location = location; |
| 160 | + return this; |
| 161 | + } |
| 162 | + |
| 163 | + /** |
| 164 | + * The content that was found. Even if the content is not textual, it may be converted to a |
| 165 | + * textual representation here. If the finding exceeds 4096 bytes in length, the quote may be |
| 166 | + * omitted. |
| 167 | + * @return value or {@code null} for none |
| 168 | + */ |
| 169 | + public java.lang.String getQuote() { |
| 170 | + return quote; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * The content that was found. Even if the content is not textual, it may be converted to a |
| 175 | + * textual representation here. If the finding exceeds 4096 bytes in length, the quote may be |
| 176 | + * omitted. |
| 177 | + * @param quote quote or {@code null} for none |
| 178 | + */ |
| 179 | + public GooglePrivacyDlpV2DataProfileFinding setQuote(java.lang.String quote) { |
| 180 | + this.quote = quote; |
| 181 | + return this; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME. |
| 186 | + * @return value or {@code null} for none |
| 187 | + */ |
| 188 | + public GooglePrivacyDlpV2QuoteInfo getQuoteInfo() { |
| 189 | + return quoteInfo; |
| 190 | + } |
| 191 | + |
| 192 | + /** |
| 193 | + * Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME. |
| 194 | + * @param quoteInfo quoteInfo or {@code null} for none |
| 195 | + */ |
| 196 | + public GooglePrivacyDlpV2DataProfileFinding setQuoteInfo(GooglePrivacyDlpV2QuoteInfo quoteInfo) { |
| 197 | + this.quoteInfo = quoteInfo; |
| 198 | + return this; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * How broadly a resource has been shared. |
| 203 | + * @return value or {@code null} for none |
| 204 | + */ |
| 205 | + public java.lang.String getResourceVisibility() { |
| 206 | + return resourceVisibility; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * How broadly a resource has been shared. |
| 211 | + * @param resourceVisibility resourceVisibility or {@code null} for none |
| 212 | + */ |
| 213 | + public GooglePrivacyDlpV2DataProfileFinding setResourceVisibility(java.lang.String resourceVisibility) { |
| 214 | + this.resourceVisibility = resourceVisibility; |
| 215 | + return this; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * Timestamp when the finding was detected. |
| 220 | + * @return value or {@code null} for none |
| 221 | + */ |
| 222 | + public String getTimestamp() { |
| 223 | + return timestamp; |
| 224 | + } |
| 225 | + |
| 226 | + /** |
| 227 | + * Timestamp when the finding was detected. |
| 228 | + * @param timestamp timestamp or {@code null} for none |
| 229 | + */ |
| 230 | + public GooglePrivacyDlpV2DataProfileFinding setTimestamp(String timestamp) { |
| 231 | + this.timestamp = timestamp; |
| 232 | + return this; |
| 233 | + } |
| 234 | + |
| 235 | + @Override |
| 236 | + public GooglePrivacyDlpV2DataProfileFinding set(String fieldName, Object value) { |
| 237 | + return (GooglePrivacyDlpV2DataProfileFinding) super.set(fieldName, value); |
| 238 | + } |
| 239 | + |
| 240 | + @Override |
| 241 | + public GooglePrivacyDlpV2DataProfileFinding clone() { |
| 242 | + return (GooglePrivacyDlpV2DataProfileFinding) super.clone(); |
| 243 | + } |
| 244 | + |
| 245 | +} |
0 commit comments