blob: ae9f88861d9c83b5ca24c7aaccf86f4157657672 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dlp_v2.html">Cloud Data Loss Prevention (DLP) API</a> . <a href="dlp_v2.projects.html">projects</a> . <a href="dlp_v2.projects.locations.html">locations</a> . <a href="dlp_v2.projects.locations.content.html">content</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#deidentify">deidentify(parent, locationId, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">De-identifies potentially sensitive info from a ContentItem.</p>
80<p class="toc_element">
81 <code><a href="#inspect">inspect(parent, locationId, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Finds potentially sensitive info in content.</p>
83<p class="toc_element">
84 <code><a href="#reidentify">reidentify(parent, locationId, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Re-identifies content that has been de-identified.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="deidentify">deidentify(parent, locationId, body=None, x__xgafv=None)</code>
89 <pre>De-identifies potentially sensitive info from a ContentItem.
90This method has limits on input size and output size.
91See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
92learn more.
93
94When no InfoTypes or CustomInfoTypes are specified in this request, the
95system will automatically choose what detectors to run. By default this may
96be all types, but may change over time as detectors are updated.
97
98Args:
99 parent: string, The parent resource name, for example projects/my-project-id. (required)
100 locationId: string, The geographic location to process de-identification. Reserved for future
101extensions. (required)
102 body: object, The request body.
103 The object takes the form of:
104
105{ # Request to de-identify a list of items.
106 &quot;item&quot;: { # Container structure for the content to inspect. # The item to de-identify. Will be treated as text.
107 &quot;byteItem&quot;: { # Container for bytes to inspect or redact. # Content data to inspect or redact. Replaces `type` and `data`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;data&quot;: &quot;A String&quot;, # Content data to inspect or redact.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700109 &quot;type&quot;: &quot;A String&quot;, # The type of data stored in the bytes string. Default will be TEXT_UTF8.
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 },
111 &quot;value&quot;: &quot;A String&quot;, # String data to inspect or redact.
112 &quot;table&quot;: { # Structured content to inspect. Up to 50,000 `Value`s per request allowed. # Structured content for inspection. See
113 # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
114 # learn more.
115 # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
116 # learn more.
117 &quot;rows&quot;: [ # Rows of the table.
118 { # Values of the row.
119 &quot;values&quot;: [ # Individual cells.
120 { # Set of primitive values supported by the system.
121 # Note that for the purposes of inspection or transformation, the number
122 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
123 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
124 # 123456789, the number of bytes would be counted as 9, even though an
125 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
127 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
128 # and time zone are either specified elsewhere or are not significant. The date
129 # is relative to the Proleptic Gregorian Calendar. This can represent:
130 #
131 # * A full date, with non-zero year, month and day values
132 # * A month and day value, with a zero year, e.g. an anniversary
133 # * A year on its own, with zero month and day values
134 # * A year and month value, with a zero day, e.g. a credit card expiration date
135 #
136 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
137 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
138 # a year.
139 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
140 # month and day.
141 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
142 # if specifying a year by itself or a year and month where the day is not
143 # significant.
144 },
145 &quot;stringValue&quot;: &quot;A String&quot;, # string
146 &quot;integerValue&quot;: &quot;A String&quot;, # integer
147 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
148 # or are specified elsewhere. An API may choose to allow leap seconds. Related
149 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
151 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
152 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
154 # allow the value 60 if it allows leap-seconds.
155 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700157 &quot;booleanValue&quot;: True or False, # boolean
158 &quot;floatValue&quot;: 3.14, # float
159 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 },
161 ],
162 },
163 ],
164 &quot;headers&quot;: [ # Headers of the table.
165 { # General identifier of a data field in a storage service.
166 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
167 },
168 ],
169 },
170 },
171 &quot;inspectTemplateName&quot;: &quot;A String&quot;, # Template to use. Any configuration directly specified in
172 # inspect_config will override those set in the template. Singular fields
173 # that are set in this request will replace their corresponding fields in the
174 # template. Repeated fields are appended. Singular sub-messages and groups
175 # are recursively merged.
176 &quot;deidentifyTemplateName&quot;: &quot;A String&quot;, # Template to use. Any configuration directly specified in
177 # deidentify_config will override those set in the template. Singular fields
178 # that are set in this request will replace their corresponding fields in the
179 # template. Repeated fields are appended. Singular sub-messages and groups
180 # are recursively merged.
181 &quot;inspectConfig&quot;: { # Configuration description of the scanning process. # Configuration for the inspector.
182 # Items specified here will override the template referenced by the
183 # inspect_template_name argument.
184 # When used with redactContent only info_types and min_likelihood are currently
185 # used.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700186 &quot;minLikelihood&quot;: &quot;A String&quot;, # Only returns findings equal or above this threshold. The default is
187 # POSSIBLE.
188 # See https://cloud.google.com/dlp/docs/likelihood to learn more.
189 &quot;contentOptions&quot;: [ # List of options defining data content to scan.
190 # If empty, text, images, and other content will be included.
191 &quot;A String&quot;,
192 ],
193 &quot;infoTypes&quot;: [ # Restricts what info_types to look for. The values must correspond to
194 # InfoType values returned by ListInfoTypes or listed at
195 # https://cloud.google.com/dlp/docs/infotypes-reference.
196 #
197 # When no InfoTypes or CustomInfoTypes are specified in a request, the
198 # system may automatically choose what detectors to run. By default this may
199 # be all types, but may change over time as detectors are updated.
200 #
201 # If you need precise control and predictability as to what detectors are
202 # run you should specify specific InfoTypes listed in the reference,
203 # otherwise a default list will be used, which may change over time.
204 { # Type of information detected by the API.
205 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
206 # creating a CustomInfoType, or one of the names listed
207 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
208 # a built-in type. InfoType names should conform to the pattern
209 # `[a-zA-Z0-9_]{1,64}`.
210 },
211 ],
212 &quot;excludeInfoTypes&quot;: True or False, # When true, excludes type information of the findings.
213 &quot;customInfoTypes&quot;: [ # CustomInfoTypes provided by the user. See
214 # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
215 { # Custom information type provided by the user. Used to find domain-specific
216 # sensitive information configurable to the data in question.
217 &quot;surrogateType&quot;: { # Message for detecting output from deidentification transformations # Message for detecting output from deidentification transformations that
218 # support reversing.
219 # such as
220 # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
221 # These types of transformations are
222 # those that perform pseudonymization, thereby producing a &quot;surrogate&quot; as
223 # output. This should be used in conjunction with a field on the
224 # transformation such as `surrogate_info_type`. This CustomInfoType does
225 # not support the use of `detection_rules`.
226 },
227 &quot;likelihood&quot;: &quot;A String&quot;, # Likelihood to return for this CustomInfoType. This base value can be
228 # altered by a detection rule if the finding meets the criteria specified by
229 # the rule. Defaults to `VERY_LIKELY` if not specified.
230 &quot;infoType&quot;: { # Type of information detected by the API. # CustomInfoType can either be a new infoType, or an extension of built-in
231 # infoType, when the name matches one of existing infoTypes and that infoType
232 # is specified in `InspectContent.info_types` field. Specifying the latter
233 # adds findings to the one detected by the system. If built-in info type is
234 # not specified in `InspectContent.info_types` list then the name is treated
235 # as a custom info type.
236 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
237 # creating a CustomInfoType, or one of the names listed
238 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
239 # a built-in type. InfoType names should conform to the pattern
240 # `[a-zA-Z0-9_]{1,64}`.
241 },
242 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression based CustomInfoType.
243 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
244 # specified, the entire match is returned. No more than 3 may be included.
245 42,
246 ],
247 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
248 # (https://github.com/google/re2/wiki/Syntax) can be found under the
249 # google/re2 repository on GitHub.
250 },
251 &quot;detectionRules&quot;: [ # Set of detection rules to apply to all findings of this CustomInfoType.
252 # Rules are applied in order that they are specified. Not supported for the
253 # `surrogate_type` CustomInfoType.
254 { # Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
255 # `CustomInfoType` to alter behavior under certain circumstances, depending
256 # on the specific details of the rule. Not supported for the `surrogate_type`
257 # custom infoType.
258 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
259 # proximity of hotwords.
260 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
261 # part of a detection rule.
262 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
263 # levels. For example, if a finding would be `POSSIBLE` without the
264 # detection rule and `relative_likelihood` is 1, then it is upgraded to
265 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
266 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
267 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
268 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
269 # a final likelihood of `LIKELY`.
270 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
271 },
272 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
273 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
274 # specified, the entire match is returned. No more than 3 may be included.
275 42,
276 ],
277 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
278 # (https://github.com/google/re2/wiki/Syntax) can be found under the
279 # google/re2 repository on GitHub.
280 },
281 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
282 # The total length of the window cannot exceed 1000 characters. Note that
283 # the finding itself will be included in the window, so that hotwords may
284 # be used to match substrings of the finding itself. For example, the
285 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
286 # adjusted upwards if the area code is known to be the local area code of
287 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
288 # is the area code in question.
289 # rule.
290 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
291 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
292 },
293 },
294 },
295 ],
296 &quot;exclusionType&quot;: &quot;A String&quot;, # If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
297 # to be returned. It still can be used for rules matching.
298 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # A list of phrases to detect as a CustomInfoType.
299 # be used to match sensitive information specific to the data, such as a list
300 # of employee IDs or job titles.
301 #
302 # Dictionary words are case-insensitive and all characters other than letters
303 # and digits in the unicode [Basic Multilingual
304 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
305 # will be replaced with whitespace when scanning for matches, so the
306 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
307 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
308 # surrounding any match must be of a different type than the adjacent
309 # characters within the word, so letters must be next to non-letters and
310 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
311 # match the first three letters of the text &quot;jen123&quot; but will return no
312 # matches for &quot;jennifer&quot;.
313 #
314 # Dictionary words containing a large number of characters that are not
315 # letters or digits may result in unexpected findings because such characters
316 # are treated as whitespace. The
317 # [limits](https://cloud.google.com/dlp/limits) page contains details about
318 # the size limits of dictionaries. For dictionaries that do not fit within
319 # these constraints, consider using `LargeCustomDictionaryConfig` in the
320 # `StoredInfoType` API.
321 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
322 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
323 # at least one phrase and every phrase must contain at least 2 characters
324 # that are letters or digits. [required]
325 &quot;A String&quot;,
326 ],
327 },
328 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
329 # is accepted.
330 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
331 # Example: gs://[BUCKET_NAME]/dictionary.txt
332 },
333 },
334 &quot;storedType&quot;: { # A reference to a StoredInfoType to use with scanning. # Load an existing `StoredInfoType` resource for use in
335 # `InspectDataSource`. Not currently supported in `InspectContent`.
336 &quot;name&quot;: &quot;A String&quot;, # Resource name of the requested `StoredInfoType`, for example
337 # `organizations/433245324/storedInfoTypes/432452342` or
338 # `projects/project-id/storedInfoTypes/432452342`.
339 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp indicating when the version of the `StoredInfoType` used for
340 # inspection was created. Output-only field, populated by the system.
341 },
342 },
343 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;includeQuote&quot;: True or False, # When true, a contextual quote from the data that triggered a finding is
345 # included in the response; see Finding.quote.
346 &quot;ruleSet&quot;: [ # Set of rules to apply to the findings for this InspectConfig.
347 # Exclusion rules, contained in the set are executed in the end, other
348 # rules are executed in the order they are specified for each info type.
349 { # Rule set for modifying a set of infoTypes to alter behavior under certain
350 # circumstances, depending on the specific details of the rules within the set.
351 &quot;infoTypes&quot;: [ # List of infoTypes this rule set is applied to.
352 { # Type of information detected by the API.
353 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
354 # creating a CustomInfoType, or one of the names listed
355 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
356 # a built-in type. InfoType names should conform to the pattern
357 # `[a-zA-Z0-9_]{1,64}`.
358 },
359 ],
360 &quot;rules&quot;: [ # Set of rules to be applied to infoTypes. The rules are applied in order.
361 { # A single inspection rule to be applied to infoTypes, specified in
362 # `InspectionRuleSet`.
363 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
364 # proximity of hotwords.
365 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
366 # part of a detection rule.
367 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
368 # levels. For example, if a finding would be `POSSIBLE` without the
369 # detection rule and `relative_likelihood` is 1, then it is upgraded to
370 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
371 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
372 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
373 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
374 # a final likelihood of `LIKELY`.
375 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
376 },
377 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
378 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
379 # specified, the entire match is returned. No more than 3 may be included.
380 42,
381 ],
382 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
383 # (https://github.com/google/re2/wiki/Syntax) can be found under the
384 # google/re2 repository on GitHub.
385 },
386 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
387 # The total length of the window cannot exceed 1000 characters. Note that
388 # the finding itself will be included in the window, so that hotwords may
389 # be used to match substrings of the finding itself. For example, the
390 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
391 # adjusted upwards if the area code is known to be the local area code of
392 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
393 # is the area code in question.
394 # rule.
395 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
396 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
397 },
398 },
399 &quot;exclusionRule&quot;: { # The rule that specifies conditions when findings of infoTypes specified in # Exclusion rule.
400 # `InspectionRuleSet` are removed from results.
401 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # Dictionary which defines the rule.
402 # be used to match sensitive information specific to the data, such as a list
403 # of employee IDs or job titles.
404 #
405 # Dictionary words are case-insensitive and all characters other than letters
406 # and digits in the unicode [Basic Multilingual
407 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
408 # will be replaced with whitespace when scanning for matches, so the
409 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
410 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
411 # surrounding any match must be of a different type than the adjacent
412 # characters within the word, so letters must be next to non-letters and
413 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
414 # match the first three letters of the text &quot;jen123&quot; but will return no
415 # matches for &quot;jennifer&quot;.
416 #
417 # Dictionary words containing a large number of characters that are not
418 # letters or digits may result in unexpected findings because such characters
419 # are treated as whitespace. The
420 # [limits](https://cloud.google.com/dlp/limits) page contains details about
421 # the size limits of dictionaries. For dictionaries that do not fit within
422 # these constraints, consider using `LargeCustomDictionaryConfig` in the
423 # `StoredInfoType` API.
424 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
425 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
426 # at least one phrase and every phrase must contain at least 2 characters
427 # that are letters or digits. [required]
428 &quot;A String&quot;,
429 ],
430 },
431 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
432 # is accepted.
433 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
434 # Example: gs://[BUCKET_NAME]/dictionary.txt
435 },
436 },
437 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression which defines the rule.
438 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
439 # specified, the entire match is returned. No more than 3 may be included.
440 42,
441 ],
442 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
443 # (https://github.com/google/re2/wiki/Syntax) can be found under the
444 # google/re2 repository on GitHub.
445 },
446 &quot;excludeInfoTypes&quot;: { # List of exclude infoTypes. # Set of infoTypes for which findings would affect this rule.
447 &quot;infoTypes&quot;: [ # InfoType list in ExclusionRule rule drops a finding when it overlaps or
448 # contained within with a finding of an infoType from this list. For
449 # example, for `InspectionRuleSet.info_types` containing &quot;PHONE_NUMBER&quot;` and
450 # `exclusion_rule` containing `exclude_info_types.info_types` with
451 # &quot;EMAIL_ADDRESS&quot; the phone number findings are dropped if they overlap
452 # with EMAIL_ADDRESS finding.
453 # That leads to &quot;555-222-2222@example.org&quot; to generate only a single
454 # finding, namely email address.
455 { # Type of information detected by the API.
456 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
457 # creating a CustomInfoType, or one of the names listed
458 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
459 # a built-in type. InfoType names should conform to the pattern
460 # `[a-zA-Z0-9_]{1,64}`.
461 },
462 ],
463 },
464 &quot;matchingType&quot;: &quot;A String&quot;, # How the rule is applied, see MatchingType documentation for details.
465 },
466 },
467 ],
468 },
469 ],
470 &quot;limits&quot;: { # Configuration to control the number of findings returned. # Configuration to control the number of findings returned.
471 &quot;maxFindingsPerItem&quot;: 42, # Max number of findings that will be returned for each item scanned.
472 # When set within `InspectJobConfig`,
473 # the maximum returned is 2000 regardless if this is set higher.
474 # When set within `InspectContentRequest`, this field is ignored.
475 &quot;maxFindingsPerInfoType&quot;: [ # Configuration of findings limit given for specified infoTypes.
476 { # Max findings configuration per infoType, per content item or long
477 # running DlpJob.
478 &quot;maxFindings&quot;: 42, # Max findings limit for the given infoType.
479 &quot;infoType&quot;: { # Type of information detected by the API. # Type of information the findings limit applies to. Only one limit per
480 # info_type should be provided. If InfoTypeLimit does not have an
481 # info_type, the DLP API applies the limit against all info_types that
482 # are found but not specified in another InfoTypeLimit.
483 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
484 # creating a CustomInfoType, or one of the names listed
485 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
486 # a built-in type. InfoType names should conform to the pattern
487 # `[a-zA-Z0-9_]{1,64}`.
488 },
489 },
490 ],
491 &quot;maxFindingsPerRequest&quot;: 42, # Max number of findings that will be returned per request/job.
492 # When set within `InspectContentRequest`, the maximum returned is 2000
493 # regardless if this is set higher.
494 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 },
496 &quot;deidentifyConfig&quot;: { # The configuration that controls how the data will change. # Configuration for the de-identification of the content item.
497 # Items specified here will override the template referenced by the
498 # deidentify_template_name argument.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700499 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the dataset as free-form text and apply the same free text
500 # transformation everywhere.
501 # apply various `PrimitiveTransformation`s to each finding, where the
502 # transformation is applied to only values that were identified as a specific
503 # info_type.
504 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
505 # for a given infoType.
506 { # A transformation to apply to text that is identified as a specific
507 # info_type.
508 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
509 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
510 # portion of the value.
511 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
512 },
513 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
514 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
515 # to learn more.
516 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
517 # If set, must also set cryptoKey. If set, shift will be consistent for the
518 # given context.
519 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
520 },
521 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
522 # range (inclusive ends). Negative means shift to earlier in time. Must not
523 # be more than 365250 days (1000 years) each direction.
524 #
525 # For example, 3 means shift date to at most 3 days into the future.
526 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
527 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
528 # results in the same shift for the same context and crypto_key. If
529 # set, must also set context. Can only be applied to table items.
530 # a key encryption key (KEK) stored by KMS).
531 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
532 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
533 # unwrap the data crypto key.
534 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
535 # leaking the key. Choose another type of key if possible.
536 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
537 },
538 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
539 # It will be discarded after the request finishes.
540 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
541 # This is an arbitrary string used to differentiate different keys.
542 # A unique key is generated per name: two separate `TransientCryptoKey`
543 # protos share the same generated key if their names are the same.
544 # When the data crypto key is generated, this name is not used in any way
545 # (repeating the api call will result in a different key being generated).
546 },
547 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
548 # The wrapped key must be a 128/192/256 bit key.
549 # Authorization requires the following IAM permissions when sending a request
550 # to perform a crypto transformation using a kms-wrapped crypto key:
551 # dlp.kms.encrypt
552 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
553 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
554 },
555 },
556 },
557 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
558 },
559 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
560 # Uses SHA-256.
561 # The key size must be either 32 or 64 bytes.
562 # Outputs a base64 encoded representation of the hashed output
563 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
564 # Currently, only string and integer values can be hashed.
565 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
566 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
567 # a key encryption key (KEK) stored by KMS).
568 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
569 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
570 # unwrap the data crypto key.
571 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
572 # leaking the key. Choose another type of key if possible.
573 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
574 },
575 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
576 # It will be discarded after the request finishes.
577 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
578 # This is an arbitrary string used to differentiate different keys.
579 # A unique key is generated per name: two separate `TransientCryptoKey`
580 # protos share the same generated key if their names are the same.
581 # When the data crypto key is generated, this name is not used in any way
582 # (repeating the api call will result in a different key being generated).
583 },
584 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
585 # The wrapped key must be a 128/192/256 bit key.
586 # Authorization requires the following IAM permissions when sending a request
587 # to perform a crypto transformation using a kms-wrapped crypto key:
588 # dlp.kms.encrypt
589 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
590 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
591 },
592 },
593 },
594 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
595 # (FPE) with the FFX mode of operation; however when used in the
596 # `ReidentifyContent` API method, it serves the opposite function by reversing
597 # the surrogate back into the original identifier. The identifier must be
598 # encoded as ASCII. For a given crypto key and context, the same identifier
599 # will be replaced with the same surrogate. Identifiers must be at least two
600 # characters long. In the case that the identifier is the empty string, it will
601 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
602 # more.
603 #
604 # Note: We recommend using CryptoDeterministicConfig for all use cases which
605 # do not require preserving the input alphabet space and size, plus warrant
606 # referential integrity.
607 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
608 # This annotation will be applied to the surrogate by prefixing it with
609 # the name of the custom infoType followed by the number of
610 # characters comprising the surrogate. The following scheme defines the
611 # format: info_type_name(surrogate_character_count):surrogate
612 #
613 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
614 # the surrogate is &#x27;abc&#x27;, the full replacement value
615 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
616 #
617 # This annotation identifies the surrogate when inspecting content using the
618 # custom infoType
619 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
620 # This facilitates reversal of the surrogate when it occurs in free text.
621 #
622 # In order for inspection to work properly, the name of this infoType must
623 # not occur naturally anywhere in your data; otherwise, inspection may
624 # find a surrogate that does not correspond to an actual identifier.
625 # Therefore, choose your custom infoType name carefully after considering
626 # what your data looks like. One way to select a name that has a high chance
627 # of yielding reliable detection is to include one or more unicode characters
628 # that are highly improbable to exist in your data.
629 # For example, assuming your data is entered from a regular ASCII keyboard,
630 # the symbol with the hex code point 29DD might be used like so:
631 # ⧝MY_TOKEN_TYPE
632 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
633 # creating a CustomInfoType, or one of the names listed
634 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
635 # a built-in type. InfoType names should conform to the pattern
636 # `[a-zA-Z0-9_]{1,64}`.
637 },
638 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
639 # identifier in two different contexts won&#x27;t be given the same surrogate. If
640 # the context is not set, a default tweak will be used.
641 #
642 # If the context is set but:
643 #
644 # 1. there is no record present when transforming a given value or
645 # 1. the field is not present when transforming a given value,
646 #
647 # a default tweak will be used.
648 #
649 # Note that case (1) is expected when an `InfoTypeTransformation` is
650 # applied to both structured and non-structured `ContentItem`s.
651 # Currently, the referenced field may be of value type integer or string.
652 #
653 # The tweak is constructed as a sequence of bytes in big endian byte order
654 # such that:
655 #
656 # - a 64 bit integer is encoded followed by a single byte of value 1
657 # - a string is encoded in UTF-8 format followed by a single byte of value 2
658 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
659 },
660 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
661 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
662 # a key encryption key (KEK) stored by KMS).
663 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
664 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
665 # unwrap the data crypto key.
666 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
667 # leaking the key. Choose another type of key if possible.
668 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
669 },
670 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
671 # It will be discarded after the request finishes.
672 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
673 # This is an arbitrary string used to differentiate different keys.
674 # A unique key is generated per name: two separate `TransientCryptoKey`
675 # protos share the same generated key if their names are the same.
676 # When the data crypto key is generated, this name is not used in any way
677 # (repeating the api call will result in a different key being generated).
678 },
679 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
680 # The wrapped key must be a 128/192/256 bit key.
681 # Authorization requires the following IAM permissions when sending a request
682 # to perform a crypto transformation using a kms-wrapped crypto key:
683 # dlp.kms.encrypt
684 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
685 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
686 },
687 },
688 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
689 # that the FFX mode natively supports. This happens before/after
690 # encryption/decryption.
691 # Each character listed must appear only once.
692 # Number of characters must be in the range [2, 95].
693 # This must be encoded as ASCII.
694 # The order of characters does not matter.
695 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
696 },
697 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
698 # input. Outputs a base64 encoded representation of the encrypted output.
699 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
700 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
701 # This annotation will be applied to the surrogate by prefixing it with
702 # the name of the custom info type followed by the number of
703 # characters comprising the surrogate. The following scheme defines the
704 # format: {info type name}({surrogate character count}):{surrogate}
705 #
706 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
707 # the surrogate is &#x27;abc&#x27;, the full replacement value
708 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
709 #
710 # This annotation identifies the surrogate when inspecting content using the
711 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
712 # surrogate when it occurs in free text.
713 #
714 # Note: For record transformations where the entire cell in a table is being
715 # transformed, surrogates are not mandatory. Surrogates are used to denote
716 # the location of the token and are necessary for re-identification in free
717 # form text.
718 #
719 # In order for inspection to work properly, the name of this info type must
720 # not occur naturally anywhere in your data; otherwise, inspection may either
721 #
722 # - reverse a surrogate that does not correspond to an actual identifier
723 # - be unable to parse the surrogate and result in an error
724 #
725 # Therefore, choose your custom info type name carefully after considering
726 # what your data looks like. One way to select a name that has a high chance
727 # of yielding reliable detection is to include one or more unicode characters
728 # that are highly improbable to exist in your data.
729 # For example, assuming your data is entered from a regular ASCII keyboard,
730 # the symbol with the hex code point 29DD might be used like so:
731 # ⧝MY_TOKEN_TYPE.
732 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
733 # creating a CustomInfoType, or one of the names listed
734 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
735 # a built-in type. InfoType names should conform to the pattern
736 # `[a-zA-Z0-9_]{1,64}`.
737 },
738 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
739 # referential integrity such that the same identifier in two different
740 # contexts will be given a distinct surrogate. The context is appended to
741 # plaintext value being encrypted. On decryption the provided context is
742 # validated against the value used during encryption. If a context was
743 # provided during encryption, same context must be provided during decryption
744 # as well.
745 #
746 # If the context is not set, plaintext would be used as is for encryption.
747 # If the context is set but:
748 #
749 # 1. there is no record present when transforming a given value or
750 # 2. the field is not present when transforming a given value,
751 #
752 # plaintext would be used as is for encryption.
753 #
754 # Note that case (1) is expected when an `InfoTypeTransformation` is
755 # applied to both structured and non-structured `ContentItem`s.
756 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
757 },
758 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
759 # a key encryption key (KEK) stored by KMS).
760 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
761 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
762 # unwrap the data crypto key.
763 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
764 # leaking the key. Choose another type of key if possible.
765 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
766 },
767 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
768 # It will be discarded after the request finishes.
769 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
770 # This is an arbitrary string used to differentiate different keys.
771 # A unique key is generated per name: two separate `TransientCryptoKey`
772 # protos share the same generated key if their names are the same.
773 # When the data crypto key is generated, this name is not used in any way
774 # (repeating the api call will result in a different key being generated).
775 },
776 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
777 # The wrapped key must be a 128/192/256 bit key.
778 # Authorization requires the following IAM permissions when sending a request
779 # to perform a crypto transformation using a kms-wrapped crypto key:
780 # dlp.kms.encrypt
781 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
782 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
783 },
784 },
785 },
786 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
787 # replacement values are dynamically provided by the user for custom behavior,
788 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
789 # This can be used on
790 # data of type: number, long, string, timestamp.
791 # If the bound `Value` type differs from the type of data being transformed, we
792 # will first attempt converting the type of the data to be transformed to match
793 # the type of the bound before comparing.
794 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
795 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
796 { # Bucket is represented as a range, along with replacement values.
797 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
798 # the default behavior will be to hyphenate the min-max range.
799 # Note that for the purposes of inspection or transformation, the number
800 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
801 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
802 # 123456789, the number of bytes would be counted as 9, even though an
803 # int64 only holds up to 8 bytes of data.
804 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
805 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
806 # and time zone are either specified elsewhere or are not significant. The date
807 # is relative to the Proleptic Gregorian Calendar. This can represent:
808 #
809 # * A full date, with non-zero year, month and day values
810 # * A month and day value, with a zero year, e.g. an anniversary
811 # * A year on its own, with zero month and day values
812 # * A year and month value, with a zero day, e.g. a credit card expiration date
813 #
814 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
815 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
816 # a year.
817 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
818 # month and day.
819 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
820 # if specifying a year by itself or a year and month where the day is not
821 # significant.
822 },
823 &quot;stringValue&quot;: &quot;A String&quot;, # string
824 &quot;integerValue&quot;: &quot;A String&quot;, # integer
825 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
826 # or are specified elsewhere. An API may choose to allow leap seconds. Related
827 # types are google.type.Date and `google.protobuf.Timestamp`.
828 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
829 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
830 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
831 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
832 # allow the value 60 if it allows leap-seconds.
833 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
834 },
835 &quot;booleanValue&quot;: True or False, # boolean
836 &quot;floatValue&quot;: 3.14, # float
837 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
838 },
839 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
840 # used.
841 # Note that for the purposes of inspection or transformation, the number
842 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
843 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
844 # 123456789, the number of bytes would be counted as 9, even though an
845 # int64 only holds up to 8 bytes of data.
846 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
847 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
848 # and time zone are either specified elsewhere or are not significant. The date
849 # is relative to the Proleptic Gregorian Calendar. This can represent:
850 #
851 # * A full date, with non-zero year, month and day values
852 # * A month and day value, with a zero year, e.g. an anniversary
853 # * A year on its own, with zero month and day values
854 # * A year and month value, with a zero day, e.g. a credit card expiration date
855 #
856 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
857 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
858 # a year.
859 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
860 # month and day.
861 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
862 # if specifying a year by itself or a year and month where the day is not
863 # significant.
864 },
865 &quot;stringValue&quot;: &quot;A String&quot;, # string
866 &quot;integerValue&quot;: &quot;A String&quot;, # integer
867 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
868 # or are specified elsewhere. An API may choose to allow leap seconds. Related
869 # types are google.type.Date and `google.protobuf.Timestamp`.
870 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
871 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
872 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
873 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
874 # allow the value 60 if it allows leap-seconds.
875 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
876 },
877 &quot;booleanValue&quot;: True or False, # boolean
878 &quot;floatValue&quot;: 3.14, # float
879 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
880 },
881 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
882 # Note that for the purposes of inspection or transformation, the number
883 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
884 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
885 # 123456789, the number of bytes would be counted as 9, even though an
886 # int64 only holds up to 8 bytes of data.
887 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
888 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
889 # and time zone are either specified elsewhere or are not significant. The date
890 # is relative to the Proleptic Gregorian Calendar. This can represent:
891 #
892 # * A full date, with non-zero year, month and day values
893 # * A month and day value, with a zero year, e.g. an anniversary
894 # * A year on its own, with zero month and day values
895 # * A year and month value, with a zero day, e.g. a credit card expiration date
896 #
897 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
898 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
899 # a year.
900 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
901 # month and day.
902 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
903 # if specifying a year by itself or a year and month where the day is not
904 # significant.
905 },
906 &quot;stringValue&quot;: &quot;A String&quot;, # string
907 &quot;integerValue&quot;: &quot;A String&quot;, # integer
908 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
909 # or are specified elsewhere. An API may choose to allow leap seconds. Related
910 # types are google.type.Date and `google.protobuf.Timestamp`.
911 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
912 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
913 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
914 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
915 # allow the value 60 if it allows leap-seconds.
916 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
917 },
918 &quot;booleanValue&quot;: True or False, # boolean
919 &quot;floatValue&quot;: 3.14, # float
920 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
921 },
922 },
923 ],
924 },
925 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
926 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
927 # output would be &#x27;My phone number is &#x27;.
928 },
929 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
930 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
931 # Note that for the purposes of inspection or transformation, the number
932 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
933 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
934 # 123456789, the number of bytes would be counted as 9, even though an
935 # int64 only holds up to 8 bytes of data.
936 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
937 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
938 # and time zone are either specified elsewhere or are not significant. The date
939 # is relative to the Proleptic Gregorian Calendar. This can represent:
940 #
941 # * A full date, with non-zero year, month and day values
942 # * A month and day value, with a zero year, e.g. an anniversary
943 # * A year on its own, with zero month and day values
944 # * A year and month value, with a zero day, e.g. a credit card expiration date
945 #
946 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
947 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
948 # a year.
949 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
950 # month and day.
951 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
952 # if specifying a year by itself or a year and month where the day is not
953 # significant.
954 },
955 &quot;stringValue&quot;: &quot;A String&quot;, # string
956 &quot;integerValue&quot;: &quot;A String&quot;, # integer
957 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
958 # or are specified elsewhere. An API may choose to allow leap seconds. Related
959 # types are google.type.Date and `google.protobuf.Timestamp`.
960 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
961 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
962 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
963 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
964 # allow the value 60 if it allows leap-seconds.
965 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
966 },
967 &quot;booleanValue&quot;: True or False, # boolean
968 &quot;floatValue&quot;: 3.14, # float
969 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
970 },
971 },
972 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
973 # Bucketing transformation can provide all of this functionality,
974 # but requires more configuration. This message is provided as a convenience to
975 # the user for simple bucketing strategies.
976 #
977 # The transformed value will be a hyphenated string of
978 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
979 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
980 #
981 # This can be used on data of type: double, long.
982 #
983 # If the bound Value type differs from the type of data
984 # being transformed, we will first attempt converting the type of the data to
985 # be transformed to match the type of the bound before comparing.
986 #
987 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
988 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
989 # grouped together into a single bucket; for example if `upper_bound` = 89,
990 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
991 # Note that for the purposes of inspection or transformation, the number
992 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
993 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
994 # 123456789, the number of bytes would be counted as 9, even though an
995 # int64 only holds up to 8 bytes of data.
996 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
997 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
998 # and time zone are either specified elsewhere or are not significant. The date
999 # is relative to the Proleptic Gregorian Calendar. This can represent:
1000 #
1001 # * A full date, with non-zero year, month and day values
1002 # * A month and day value, with a zero year, e.g. an anniversary
1003 # * A year on its own, with zero month and day values
1004 # * A year and month value, with a zero day, e.g. a credit card expiration date
1005 #
1006 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1007 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1008 # a year.
1009 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1010 # month and day.
1011 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1012 # if specifying a year by itself or a year and month where the day is not
1013 # significant.
1014 },
1015 &quot;stringValue&quot;: &quot;A String&quot;, # string
1016 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1017 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1018 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1019 # types are google.type.Date and `google.protobuf.Timestamp`.
1020 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1021 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1022 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1023 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1024 # allow the value 60 if it allows leap-seconds.
1025 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1026 },
1027 &quot;booleanValue&quot;: True or False, # boolean
1028 &quot;floatValue&quot;: 3.14, # float
1029 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
1030 },
1031 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
1032 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1033 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1034 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
1035 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
1036 # grouped together into a single bucket; for example if `lower_bound` = 10,
1037 # then all values less than 10 are replaced with the value &quot;-10&quot;.
1038 # Note that for the purposes of inspection or transformation, the number
1039 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1040 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1041 # 123456789, the number of bytes would be counted as 9, even though an
1042 # int64 only holds up to 8 bytes of data.
1043 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1044 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1045 # and time zone are either specified elsewhere or are not significant. The date
1046 # is relative to the Proleptic Gregorian Calendar. This can represent:
1047 #
1048 # * A full date, with non-zero year, month and day values
1049 # * A month and day value, with a zero year, e.g. an anniversary
1050 # * A year on its own, with zero month and day values
1051 # * A year and month value, with a zero day, e.g. a credit card expiration date
1052 #
1053 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1054 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1055 # a year.
1056 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1057 # month and day.
1058 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1059 # if specifying a year by itself or a year and month where the day is not
1060 # significant.
1061 },
1062 &quot;stringValue&quot;: &quot;A String&quot;, # string
1063 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1064 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1065 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1066 # types are google.type.Date and `google.protobuf.Timestamp`.
1067 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1068 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1069 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1070 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1071 # allow the value 60 if it allows leap-seconds.
1072 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1073 },
1074 &quot;booleanValue&quot;: True or False, # boolean
1075 &quot;floatValue&quot;: 3.14, # float
1076 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
1077 },
1078 },
1079 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
1080 # fixed character. Masking can start from the beginning or end of the string.
1081 # This can be used on data of any type (numbers, longs, and so on) and when
1082 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
1083 # type. (This allows you to take a long like 123 and modify it to a string like
1084 # **3.
1085 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
1086 # characters. For example, if the input string is `555-555-5555` and you
1087 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
1088 # returns `***-**5-5555`.
1089 { # Characters to skip when doing deidentification of a value. These will be left
1090 # alone and skipped.
1091 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
1092 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
1093 # punctuation.
1094 },
1095 ],
1096 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
1097 # masked. Skipped characters do not count towards this tally.
1098 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
1099 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
1100 # code or credit card number. This string must have a length of 1. If not
1101 # supplied, this value defaults to `*` for strings, and `0` for digits.
1102 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
1103 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
1104 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
1105 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
1106 # is `true`, then the string `12345` is masked as `12***`.
1107 },
1108 },
1109 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
1110 # this transformation to apply to all findings that correspond to
1111 # infoTypes that were requested in `InspectConfig`.
1112 { # Type of information detected by the API.
1113 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
1114 # creating a CustomInfoType, or one of the names listed
1115 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
1116 # a built-in type. InfoType names should conform to the pattern
1117 # `[a-zA-Z0-9_]{1,64}`.
1118 },
1119 ],
1120 },
1121 ],
1122 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 &quot;transformationErrorHandling&quot;: { # How to handle transformation errors during de-identification. A # Mode for handling transformation errors. If left unspecified, the default
1124 # mode is `TransformationErrorHandling.ThrowError`.
1125 # transformation error occurs when the requested transformation is incompatible
1126 # with the data. For example, trying to de-identify an IP address using a
1127 # `DateShift` transformation would result in a transformation error, since date
1128 # info cannot be extracted from an IP address.
1129 # Information about any incompatible transformations, and how they were
1130 # handled, is returned in the response as part of the
1131 # `TransformationOverviews`.
1132 &quot;throwError&quot;: { # Throw an error and fail the request when a transformation error occurs. # Throw an error
1133 },
1134 &quot;leaveUntransformed&quot;: { # Skips the data without modifying it if the requested transformation would # Ignore errors
1135 # cause an error. For example, if a `DateShift` transformation were applied
1136 # an an IP address, this mode would leave the IP address unchanged in the
1137 # response.
1138 },
1139 },
1140 &quot;recordTransformations&quot;: { # A type of transformation that is applied over structured data such as a # Treat the dataset as structured. Transformations can be applied to
1141 # specific locations within structured datasets, such as transforming
1142 # a column within a table.
1143 # table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001144 &quot;fieldTransformations&quot;: [ # Transform the record by applying various field transformations.
1145 { # The transformation to apply to the field.
1146 &quot;fields&quot;: [ # Required. Input field(s) to apply the transformation to.
1147 { # General identifier of a data field in a storage service.
1148 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1149 },
1150 ],
1151 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the contents of the field as free text, and selectively
1152 # transform content that matches an `InfoType`.
1153 # apply various `PrimitiveTransformation`s to each finding, where the
1154 # transformation is applied to only values that were identified as a specific
1155 # info_type.
1156 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
1157 # for a given infoType.
1158 { # A transformation to apply to text that is identified as a specific
1159 # info_type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
1161 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
1162 # portion of the value.
1163 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
1164 },
1165 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
1166 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
1167 # to learn more.
1168 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
1169 # If set, must also set cryptoKey. If set, shift will be consistent for the
1170 # given context.
1171 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1172 },
1173 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
1174 # range (inclusive ends). Negative means shift to earlier in time. Must not
1175 # be more than 365250 days (1000 years) each direction.
1176 #
1177 # For example, 3 means shift date to at most 3 days into the future.
1178 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
1179 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
1180 # results in the same shift for the same context and crypto_key. If
1181 # set, must also set context. Can only be applied to table items.
1182 # a key encryption key (KEK) stored by KMS).
1183 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1184 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1185 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001186 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1187 # leaking the key. Choose another type of key if possible.
1188 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1189 },
1190 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1191 # It will be discarded after the request finishes.
1192 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1193 # This is an arbitrary string used to differentiate different keys.
1194 # A unique key is generated per name: two separate `TransientCryptoKey`
1195 # protos share the same generated key if their names are the same.
1196 # When the data crypto key is generated, this name is not used in any way
1197 # (repeating the api call will result in a different key being generated).
1198 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001199 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1200 # The wrapped key must be a 128/192/256 bit key.
1201 # Authorization requires the following IAM permissions when sending a request
1202 # to perform a crypto transformation using a kms-wrapped crypto key:
1203 # dlp.kms.encrypt
1204 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1205 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1206 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 },
1208 },
1209 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
1210 },
1211 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
1212 # Uses SHA-256.
1213 # The key size must be either 32 or 64 bytes.
1214 # Outputs a base64 encoded representation of the hashed output
1215 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
1216 # Currently, only string and integer values can be hashed.
1217 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
1218 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
1219 # a key encryption key (KEK) stored by KMS).
1220 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1221 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1222 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001223 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1224 # leaking the key. Choose another type of key if possible.
1225 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1226 },
1227 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1228 # It will be discarded after the request finishes.
1229 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1230 # This is an arbitrary string used to differentiate different keys.
1231 # A unique key is generated per name: two separate `TransientCryptoKey`
1232 # protos share the same generated key if their names are the same.
1233 # When the data crypto key is generated, this name is not used in any way
1234 # (repeating the api call will result in a different key being generated).
1235 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001236 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1237 # The wrapped key must be a 128/192/256 bit key.
1238 # Authorization requires the following IAM permissions when sending a request
1239 # to perform a crypto transformation using a kms-wrapped crypto key:
1240 # dlp.kms.encrypt
1241 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1242 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1243 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 },
1245 },
1246 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
1247 # (FPE) with the FFX mode of operation; however when used in the
1248 # `ReidentifyContent` API method, it serves the opposite function by reversing
1249 # the surrogate back into the original identifier. The identifier must be
1250 # encoded as ASCII. For a given crypto key and context, the same identifier
1251 # will be replaced with the same surrogate. Identifiers must be at least two
1252 # characters long. In the case that the identifier is the empty string, it will
1253 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
1254 # more.
1255 #
1256 # Note: We recommend using CryptoDeterministicConfig for all use cases which
1257 # do not require preserving the input alphabet space and size, plus warrant
1258 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
1260 # This annotation will be applied to the surrogate by prefixing it with
1261 # the name of the custom infoType followed by the number of
1262 # characters comprising the surrogate. The following scheme defines the
1263 # format: info_type_name(surrogate_character_count):surrogate
1264 #
1265 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
1266 # the surrogate is &#x27;abc&#x27;, the full replacement value
1267 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
1268 #
1269 # This annotation identifies the surrogate when inspecting content using the
1270 # custom infoType
1271 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
1272 # This facilitates reversal of the surrogate when it occurs in free text.
1273 #
1274 # In order for inspection to work properly, the name of this infoType must
1275 # not occur naturally anywhere in your data; otherwise, inspection may
1276 # find a surrogate that does not correspond to an actual identifier.
1277 # Therefore, choose your custom infoType name carefully after considering
1278 # what your data looks like. One way to select a name that has a high chance
1279 # of yielding reliable detection is to include one or more unicode characters
1280 # that are highly improbable to exist in your data.
1281 # For example, assuming your data is entered from a regular ASCII keyboard,
1282 # the symbol with the hex code point 29DD might be used like so:
1283 # ⧝MY_TOKEN_TYPE
1284 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
1285 # creating a CustomInfoType, or one of the names listed
1286 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
1287 # a built-in type. InfoType names should conform to the pattern
1288 # `[a-zA-Z0-9_]{1,64}`.
1289 },
1290 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
1291 # identifier in two different contexts won&#x27;t be given the same surrogate. If
1292 # the context is not set, a default tweak will be used.
1293 #
1294 # If the context is set but:
1295 #
1296 # 1. there is no record present when transforming a given value or
1297 # 1. the field is not present when transforming a given value,
1298 #
1299 # a default tweak will be used.
1300 #
1301 # Note that case (1) is expected when an `InfoTypeTransformation` is
1302 # applied to both structured and non-structured `ContentItem`s.
1303 # Currently, the referenced field may be of value type integer or string.
1304 #
1305 # The tweak is constructed as a sequence of bytes in big endian byte order
1306 # such that:
1307 #
1308 # - a 64 bit integer is encoded followed by a single byte of value 1
1309 # - a string is encoded in UTF-8 format followed by a single byte of value 2
1310 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1311 },
1312 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
1313 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
1314 # a key encryption key (KEK) stored by KMS).
1315 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1316 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1317 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1319 # leaking the key. Choose another type of key if possible.
1320 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1321 },
1322 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1323 # It will be discarded after the request finishes.
1324 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1325 # This is an arbitrary string used to differentiate different keys.
1326 # A unique key is generated per name: two separate `TransientCryptoKey`
1327 # protos share the same generated key if their names are the same.
1328 # When the data crypto key is generated, this name is not used in any way
1329 # (repeating the api call will result in a different key being generated).
1330 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001331 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1332 # The wrapped key must be a 128/192/256 bit key.
1333 # Authorization requires the following IAM permissions when sending a request
1334 # to perform a crypto transformation using a kms-wrapped crypto key:
1335 # dlp.kms.encrypt
1336 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1337 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1338 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001340 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
1341 # that the FFX mode natively supports. This happens before/after
1342 # encryption/decryption.
1343 # Each character listed must appear only once.
1344 # Number of characters must be in the range [2, 95].
1345 # This must be encoded as ASCII.
1346 # The order of characters does not matter.
1347 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 },
1349 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
1350 # input. Outputs a base64 encoded representation of the encrypted output.
1351 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
1352 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
1353 # This annotation will be applied to the surrogate by prefixing it with
1354 # the name of the custom info type followed by the number of
1355 # characters comprising the surrogate. The following scheme defines the
1356 # format: {info type name}({surrogate character count}):{surrogate}
1357 #
1358 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
1359 # the surrogate is &#x27;abc&#x27;, the full replacement value
1360 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
1361 #
1362 # This annotation identifies the surrogate when inspecting content using the
1363 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
1364 # surrogate when it occurs in free text.
1365 #
1366 # Note: For record transformations where the entire cell in a table is being
1367 # transformed, surrogates are not mandatory. Surrogates are used to denote
1368 # the location of the token and are necessary for re-identification in free
1369 # form text.
1370 #
1371 # In order for inspection to work properly, the name of this info type must
1372 # not occur naturally anywhere in your data; otherwise, inspection may either
1373 #
1374 # - reverse a surrogate that does not correspond to an actual identifier
1375 # - be unable to parse the surrogate and result in an error
1376 #
1377 # Therefore, choose your custom info type name carefully after considering
1378 # what your data looks like. One way to select a name that has a high chance
1379 # of yielding reliable detection is to include one or more unicode characters
1380 # that are highly improbable to exist in your data.
1381 # For example, assuming your data is entered from a regular ASCII keyboard,
1382 # the symbol with the hex code point 29DD might be used like so:
1383 # ⧝MY_TOKEN_TYPE.
1384 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
1385 # creating a CustomInfoType, or one of the names listed
1386 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
1387 # a built-in type. InfoType names should conform to the pattern
1388 # `[a-zA-Z0-9_]{1,64}`.
1389 },
1390 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
1391 # referential integrity such that the same identifier in two different
1392 # contexts will be given a distinct surrogate. The context is appended to
1393 # plaintext value being encrypted. On decryption the provided context is
1394 # validated against the value used during encryption. If a context was
1395 # provided during encryption, same context must be provided during decryption
1396 # as well.
1397 #
1398 # If the context is not set, plaintext would be used as is for encryption.
1399 # If the context is set but:
1400 #
1401 # 1. there is no record present when transforming a given value or
1402 # 2. the field is not present when transforming a given value,
1403 #
1404 # plaintext would be used as is for encryption.
1405 #
1406 # Note that case (1) is expected when an `InfoTypeTransformation` is
1407 # applied to both structured and non-structured `ContentItem`s.
1408 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1409 },
1410 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
1411 # a key encryption key (KEK) stored by KMS).
1412 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1413 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1414 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001415 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1416 # leaking the key. Choose another type of key if possible.
1417 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1418 },
1419 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1420 # It will be discarded after the request finishes.
1421 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1422 # This is an arbitrary string used to differentiate different keys.
1423 # A unique key is generated per name: two separate `TransientCryptoKey`
1424 # protos share the same generated key if their names are the same.
1425 # When the data crypto key is generated, this name is not used in any way
1426 # (repeating the api call will result in a different key being generated).
1427 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001428 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1429 # The wrapped key must be a 128/192/256 bit key.
1430 # Authorization requires the following IAM permissions when sending a request
1431 # to perform a crypto transformation using a kms-wrapped crypto key:
1432 # dlp.kms.encrypt
1433 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1434 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1435 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 },
1437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
1439 # replacement values are dynamically provided by the user for custom behavior,
1440 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
1441 # This can be used on
1442 # data of type: number, long, string, timestamp.
1443 # If the bound `Value` type differs from the type of data being transformed, we
1444 # will first attempt converting the type of the data to be transformed to match
1445 # the type of the bound before comparing.
1446 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1447 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
1448 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
1450 # the default behavior will be to hyphenate the min-max range.
1451 # Note that for the purposes of inspection or transformation, the number
1452 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1453 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1454 # 123456789, the number of bytes would be counted as 9, even though an
1455 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1457 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1458 # and time zone are either specified elsewhere or are not significant. The date
1459 # is relative to the Proleptic Gregorian Calendar. This can represent:
1460 #
1461 # * A full date, with non-zero year, month and day values
1462 # * A month and day value, with a zero year, e.g. an anniversary
1463 # * A year on its own, with zero month and day values
1464 # * A year and month value, with a zero day, e.g. a credit card expiration date
1465 #
1466 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1467 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1468 # a year.
1469 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1470 # month and day.
1471 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1472 # if specifying a year by itself or a year and month where the day is not
1473 # significant.
1474 },
1475 &quot;stringValue&quot;: &quot;A String&quot;, # string
1476 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1477 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1478 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1479 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001480 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1481 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1482 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001483 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1484 # allow the value 60 if it allows leap-seconds.
1485 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07001486 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001487 &quot;booleanValue&quot;: True or False, # boolean
1488 &quot;floatValue&quot;: 3.14, # float
1489 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
1490 },
1491 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
1492 # used.
1493 # Note that for the purposes of inspection or transformation, the number
1494 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1495 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1496 # 123456789, the number of bytes would be counted as 9, even though an
1497 # int64 only holds up to 8 bytes of data.
1498 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1499 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1500 # and time zone are either specified elsewhere or are not significant. The date
1501 # is relative to the Proleptic Gregorian Calendar. This can represent:
1502 #
1503 # * A full date, with non-zero year, month and day values
1504 # * A month and day value, with a zero year, e.g. an anniversary
1505 # * A year on its own, with zero month and day values
1506 # * A year and month value, with a zero day, e.g. a credit card expiration date
1507 #
1508 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1509 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1510 # a year.
1511 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1512 # month and day.
1513 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1514 # if specifying a year by itself or a year and month where the day is not
1515 # significant.
1516 },
1517 &quot;stringValue&quot;: &quot;A String&quot;, # string
1518 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1519 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1520 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1521 # types are google.type.Date and `google.protobuf.Timestamp`.
1522 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1523 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1524 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1525 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1526 # allow the value 60 if it allows leap-seconds.
1527 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1528 },
1529 &quot;booleanValue&quot;: True or False, # boolean
1530 &quot;floatValue&quot;: 3.14, # float
1531 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
1532 },
1533 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
1534 # Note that for the purposes of inspection or transformation, the number
1535 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1536 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1537 # 123456789, the number of bytes would be counted as 9, even though an
1538 # int64 only holds up to 8 bytes of data.
1539 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1540 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1541 # and time zone are either specified elsewhere or are not significant. The date
1542 # is relative to the Proleptic Gregorian Calendar. This can represent:
1543 #
1544 # * A full date, with non-zero year, month and day values
1545 # * A month and day value, with a zero year, e.g. an anniversary
1546 # * A year on its own, with zero month and day values
1547 # * A year and month value, with a zero day, e.g. a credit card expiration date
1548 #
1549 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1550 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1551 # a year.
1552 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1553 # month and day.
1554 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1555 # if specifying a year by itself or a year and month where the day is not
1556 # significant.
1557 },
1558 &quot;stringValue&quot;: &quot;A String&quot;, # string
1559 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1560 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1561 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1562 # types are google.type.Date and `google.protobuf.Timestamp`.
1563 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1564 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1565 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1566 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1567 # allow the value 60 if it allows leap-seconds.
1568 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1569 },
1570 &quot;booleanValue&quot;: True or False, # boolean
1571 &quot;floatValue&quot;: 3.14, # float
1572 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07001573 },
1574 },
1575 ],
1576 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001577 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
1578 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
1579 # output would be &#x27;My phone number is &#x27;.
1580 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
1582 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
1583 # Note that for the purposes of inspection or transformation, the number
1584 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1585 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1586 # 123456789, the number of bytes would be counted as 9, even though an
1587 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1589 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1590 # and time zone are either specified elsewhere or are not significant. The date
1591 # is relative to the Proleptic Gregorian Calendar. This can represent:
1592 #
1593 # * A full date, with non-zero year, month and day values
1594 # * A month and day value, with a zero year, e.g. an anniversary
1595 # * A year on its own, with zero month and day values
1596 # * A year and month value, with a zero day, e.g. a credit card expiration date
1597 #
1598 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1599 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1600 # a year.
1601 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1602 # month and day.
1603 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1604 # if specifying a year by itself or a year and month where the day is not
1605 # significant.
1606 },
1607 &quot;stringValue&quot;: &quot;A String&quot;, # string
1608 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1609 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1610 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1611 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1613 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1614 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001615 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1616 # allow the value 60 if it allows leap-seconds.
1617 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001619 &quot;booleanValue&quot;: True or False, # boolean
1620 &quot;floatValue&quot;: 3.14, # float
1621 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 },
1623 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
1625 # Bucketing transformation can provide all of this functionality,
1626 # but requires more configuration. This message is provided as a convenience to
1627 # the user for simple bucketing strategies.
1628 #
1629 # The transformed value will be a hyphenated string of
1630 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
1631 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
1632 #
1633 # This can be used on data of type: double, long.
1634 #
1635 # If the bound Value type differs from the type of data
1636 # being transformed, we will first attempt converting the type of the data to
1637 # be transformed to match the type of the bound before comparing.
1638 #
1639 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07001640 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
1641 # grouped together into a single bucket; for example if `upper_bound` = 89,
1642 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
1643 # Note that for the purposes of inspection or transformation, the number
1644 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1645 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1646 # 123456789, the number of bytes would be counted as 9, even though an
1647 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1649 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1650 # and time zone are either specified elsewhere or are not significant. The date
1651 # is relative to the Proleptic Gregorian Calendar. This can represent:
1652 #
1653 # * A full date, with non-zero year, month and day values
1654 # * A month and day value, with a zero year, e.g. an anniversary
1655 # * A year on its own, with zero month and day values
1656 # * A year and month value, with a zero day, e.g. a credit card expiration date
1657 #
1658 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1659 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1660 # a year.
1661 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1662 # month and day.
1663 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1664 # if specifying a year by itself or a year and month where the day is not
1665 # significant.
1666 },
1667 &quot;stringValue&quot;: &quot;A String&quot;, # string
1668 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1669 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1670 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1671 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1673 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1674 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001675 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1676 # allow the value 60 if it allows leap-seconds.
1677 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001679 &quot;booleanValue&quot;: True or False, # boolean
1680 &quot;floatValue&quot;: 3.14, # float
1681 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 },
1683 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
1684 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1685 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1686 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001687 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
1688 # grouped together into a single bucket; for example if `lower_bound` = 10,
1689 # then all values less than 10 are replaced with the value &quot;-10&quot;.
1690 # Note that for the purposes of inspection or transformation, the number
1691 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
1692 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
1693 # 123456789, the number of bytes would be counted as 9, even though an
1694 # int64 only holds up to 8 bytes of data.
1695 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
1696 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
1697 # and time zone are either specified elsewhere or are not significant. The date
1698 # is relative to the Proleptic Gregorian Calendar. This can represent:
1699 #
1700 # * A full date, with non-zero year, month and day values
1701 # * A month and day value, with a zero year, e.g. an anniversary
1702 # * A year on its own, with zero month and day values
1703 # * A year and month value, with a zero day, e.g. a credit card expiration date
1704 #
1705 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
1706 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1707 # a year.
1708 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
1709 # month and day.
1710 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1711 # if specifying a year by itself or a year and month where the day is not
1712 # significant.
1713 },
1714 &quot;stringValue&quot;: &quot;A String&quot;, # string
1715 &quot;integerValue&quot;: &quot;A String&quot;, # integer
1716 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
1717 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1718 # types are google.type.Date and `google.protobuf.Timestamp`.
1719 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1720 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1721 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1722 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1723 # allow the value 60 if it allows leap-seconds.
1724 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1725 },
1726 &quot;booleanValue&quot;: True or False, # boolean
1727 &quot;floatValue&quot;: 3.14, # float
1728 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
1729 },
1730 },
1731 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
1732 # fixed character. Masking can start from the beginning or end of the string.
1733 # This can be used on data of any type (numbers, longs, and so on) and when
1734 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
1735 # type. (This allows you to take a long like 123 and modify it to a string like
1736 # **3.
1737 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
1738 # characters. For example, if the input string is `555-555-5555` and you
1739 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
1740 # returns `***-**5-5555`.
1741 { # Characters to skip when doing deidentification of a value. These will be left
1742 # alone and skipped.
1743 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
1744 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
1745 # punctuation.
1746 },
1747 ],
1748 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
1749 # masked. Skipped characters do not count towards this tally.
1750 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
1751 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
1752 # code or credit card number. This string must have a length of 1. If not
1753 # supplied, this value defaults to `*` for strings, and `0` for digits.
1754 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
1755 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
1756 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
1757 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
1758 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 },
1760 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001761 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
1762 # this transformation to apply to all findings that correspond to
1763 # infoTypes that were requested in `InspectConfig`.
1764 { # Type of information detected by the API.
1765 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
1766 # creating a CustomInfoType, or one of the names listed
1767 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
1768 # a built-in type. InfoType names should conform to the pattern
1769 # `[a-zA-Z0-9_]{1,64}`.
1770 },
1771 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 },
1773 ],
1774 },
1775 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Apply the transformation to the entire field.
1776 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
1777 # portion of the value.
1778 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
1779 },
1780 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
1781 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
1782 # to learn more.
1783 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
1784 # If set, must also set cryptoKey. If set, shift will be consistent for the
1785 # given context.
1786 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1787 },
1788 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
1789 # range (inclusive ends). Negative means shift to earlier in time. Must not
1790 # be more than 365250 days (1000 years) each direction.
1791 #
1792 # For example, 3 means shift date to at most 3 days into the future.
1793 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
1794 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
1795 # results in the same shift for the same context and crypto_key. If
1796 # set, must also set context. Can only be applied to table items.
1797 # a key encryption key (KEK) stored by KMS).
1798 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1799 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1800 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001801 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1802 # leaking the key. Choose another type of key if possible.
1803 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1804 },
1805 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1806 # It will be discarded after the request finishes.
1807 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1808 # This is an arbitrary string used to differentiate different keys.
1809 # A unique key is generated per name: two separate `TransientCryptoKey`
1810 # protos share the same generated key if their names are the same.
1811 # When the data crypto key is generated, this name is not used in any way
1812 # (repeating the api call will result in a different key being generated).
1813 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001814 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1815 # The wrapped key must be a 128/192/256 bit key.
1816 # Authorization requires the following IAM permissions when sending a request
1817 # to perform a crypto transformation using a kms-wrapped crypto key:
1818 # dlp.kms.encrypt
1819 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1820 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1821 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001822 },
1823 },
1824 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
1825 },
1826 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
1827 # Uses SHA-256.
1828 # The key size must be either 32 or 64 bytes.
1829 # Outputs a base64 encoded representation of the hashed output
1830 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
1831 # Currently, only string and integer values can be hashed.
1832 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
1833 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
1834 # a key encryption key (KEK) stored by KMS).
1835 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1836 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1837 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1839 # leaking the key. Choose another type of key if possible.
1840 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1841 },
1842 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1843 # It will be discarded after the request finishes.
1844 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1845 # This is an arbitrary string used to differentiate different keys.
1846 # A unique key is generated per name: two separate `TransientCryptoKey`
1847 # protos share the same generated key if their names are the same.
1848 # When the data crypto key is generated, this name is not used in any way
1849 # (repeating the api call will result in a different key being generated).
1850 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001851 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1852 # The wrapped key must be a 128/192/256 bit key.
1853 # Authorization requires the following IAM permissions when sending a request
1854 # to perform a crypto transformation using a kms-wrapped crypto key:
1855 # dlp.kms.encrypt
1856 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1857 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1858 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001859 },
1860 },
1861 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
1862 # (FPE) with the FFX mode of operation; however when used in the
1863 # `ReidentifyContent` API method, it serves the opposite function by reversing
1864 # the surrogate back into the original identifier. The identifier must be
1865 # encoded as ASCII. For a given crypto key and context, the same identifier
1866 # will be replaced with the same surrogate. Identifiers must be at least two
1867 # characters long. In the case that the identifier is the empty string, it will
1868 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
1869 # more.
1870 #
1871 # Note: We recommend using CryptoDeterministicConfig for all use cases which
1872 # do not require preserving the input alphabet space and size, plus warrant
1873 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07001874 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
1875 # This annotation will be applied to the surrogate by prefixing it with
1876 # the name of the custom infoType followed by the number of
1877 # characters comprising the surrogate. The following scheme defines the
1878 # format: info_type_name(surrogate_character_count):surrogate
1879 #
1880 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
1881 # the surrogate is &#x27;abc&#x27;, the full replacement value
1882 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
1883 #
1884 # This annotation identifies the surrogate when inspecting content using the
1885 # custom infoType
1886 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
1887 # This facilitates reversal of the surrogate when it occurs in free text.
1888 #
1889 # In order for inspection to work properly, the name of this infoType must
1890 # not occur naturally anywhere in your data; otherwise, inspection may
1891 # find a surrogate that does not correspond to an actual identifier.
1892 # Therefore, choose your custom infoType name carefully after considering
1893 # what your data looks like. One way to select a name that has a high chance
1894 # of yielding reliable detection is to include one or more unicode characters
1895 # that are highly improbable to exist in your data.
1896 # For example, assuming your data is entered from a regular ASCII keyboard,
1897 # the symbol with the hex code point 29DD might be used like so:
1898 # ⧝MY_TOKEN_TYPE
1899 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
1900 # creating a CustomInfoType, or one of the names listed
1901 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
1902 # a built-in type. InfoType names should conform to the pattern
1903 # `[a-zA-Z0-9_]{1,64}`.
1904 },
1905 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
1906 # identifier in two different contexts won&#x27;t be given the same surrogate. If
1907 # the context is not set, a default tweak will be used.
1908 #
1909 # If the context is set but:
1910 #
1911 # 1. there is no record present when transforming a given value or
1912 # 1. the field is not present when transforming a given value,
1913 #
1914 # a default tweak will be used.
1915 #
1916 # Note that case (1) is expected when an `InfoTypeTransformation` is
1917 # applied to both structured and non-structured `ContentItem`s.
1918 # Currently, the referenced field may be of value type integer or string.
1919 #
1920 # The tweak is constructed as a sequence of bytes in big endian byte order
1921 # such that:
1922 #
1923 # - a 64 bit integer is encoded followed by a single byte of value 1
1924 # - a string is encoded in UTF-8 format followed by a single byte of value 2
1925 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
1926 },
1927 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
1928 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
1929 # a key encryption key (KEK) stored by KMS).
1930 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
1931 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1932 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
1934 # leaking the key. Choose another type of key if possible.
1935 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
1936 },
1937 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
1938 # It will be discarded after the request finishes.
1939 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
1940 # This is an arbitrary string used to differentiate different keys.
1941 # A unique key is generated per name: two separate `TransientCryptoKey`
1942 # protos share the same generated key if their names are the same.
1943 # When the data crypto key is generated, this name is not used in any way
1944 # (repeating the api call will result in a different key being generated).
1945 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001946 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
1947 # The wrapped key must be a 128/192/256 bit key.
1948 # Authorization requires the following IAM permissions when sending a request
1949 # to perform a crypto transformation using a kms-wrapped crypto key:
1950 # dlp.kms.encrypt
1951 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
1952 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
1953 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001955 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
1956 # that the FFX mode natively supports. This happens before/after
1957 # encryption/decryption.
1958 # Each character listed must appear only once.
1959 # Number of characters must be in the range [2, 95].
1960 # This must be encoded as ASCII.
1961 # The order of characters does not matter.
1962 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07001963 },
1964 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
1965 # input. Outputs a base64 encoded representation of the encrypted output.
1966 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
1967 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
1968 # This annotation will be applied to the surrogate by prefixing it with
1969 # the name of the custom info type followed by the number of
1970 # characters comprising the surrogate. The following scheme defines the
1971 # format: {info type name}({surrogate character count}):{surrogate}
1972 #
1973 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
1974 # the surrogate is &#x27;abc&#x27;, the full replacement value
1975 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
1976 #
1977 # This annotation identifies the surrogate when inspecting content using the
1978 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
1979 # surrogate when it occurs in free text.
1980 #
1981 # Note: For record transformations where the entire cell in a table is being
1982 # transformed, surrogates are not mandatory. Surrogates are used to denote
1983 # the location of the token and are necessary for re-identification in free
1984 # form text.
1985 #
1986 # In order for inspection to work properly, the name of this info type must
1987 # not occur naturally anywhere in your data; otherwise, inspection may either
1988 #
1989 # - reverse a surrogate that does not correspond to an actual identifier
1990 # - be unable to parse the surrogate and result in an error
1991 #
1992 # Therefore, choose your custom info type name carefully after considering
1993 # what your data looks like. One way to select a name that has a high chance
1994 # of yielding reliable detection is to include one or more unicode characters
1995 # that are highly improbable to exist in your data.
1996 # For example, assuming your data is entered from a regular ASCII keyboard,
1997 # the symbol with the hex code point 29DD might be used like so:
1998 # ⧝MY_TOKEN_TYPE.
1999 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
2000 # creating a CustomInfoType, or one of the names listed
2001 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
2002 # a built-in type. InfoType names should conform to the pattern
2003 # `[a-zA-Z0-9_]{1,64}`.
2004 },
2005 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
2006 # referential integrity such that the same identifier in two different
2007 # contexts will be given a distinct surrogate. The context is appended to
2008 # plaintext value being encrypted. On decryption the provided context is
2009 # validated against the value used during encryption. If a context was
2010 # provided during encryption, same context must be provided during decryption
2011 # as well.
2012 #
2013 # If the context is not set, plaintext would be used as is for encryption.
2014 # If the context is set but:
2015 #
2016 # 1. there is no record present when transforming a given value or
2017 # 2. the field is not present when transforming a given value,
2018 #
2019 # plaintext would be used as is for encryption.
2020 #
2021 # Note that case (1) is expected when an `InfoTypeTransformation` is
2022 # applied to both structured and non-structured `ContentItem`s.
2023 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2024 },
2025 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
2026 # a key encryption key (KEK) stored by KMS).
2027 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2028 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2029 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07002030 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
2031 # leaking the key. Choose another type of key if possible.
2032 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
2033 },
2034 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
2035 # It will be discarded after the request finishes.
2036 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
2037 # This is an arbitrary string used to differentiate different keys.
2038 # A unique key is generated per name: two separate `TransientCryptoKey`
2039 # protos share the same generated key if their names are the same.
2040 # When the data crypto key is generated, this name is not used in any way
2041 # (repeating the api call will result in a different key being generated).
2042 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002043 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
2044 # The wrapped key must be a 128/192/256 bit key.
2045 # Authorization requires the following IAM permissions when sending a request
2046 # to perform a crypto transformation using a kms-wrapped crypto key:
2047 # dlp.kms.encrypt
2048 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2049 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
2050 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002051 },
2052 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002053 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
2054 # replacement values are dynamically provided by the user for custom behavior,
2055 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
2056 # This can be used on
2057 # data of type: number, long, string, timestamp.
2058 # If the bound `Value` type differs from the type of data being transformed, we
2059 # will first attempt converting the type of the data to be transformed to match
2060 # the type of the bound before comparing.
2061 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
2062 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
2063 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002064 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
2065 # the default behavior will be to hyphenate the min-max range.
2066 # Note that for the purposes of inspection or transformation, the number
2067 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2068 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2069 # 123456789, the number of bytes would be counted as 9, even though an
2070 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002071 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2072 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2073 # and time zone are either specified elsewhere or are not significant. The date
2074 # is relative to the Proleptic Gregorian Calendar. This can represent:
2075 #
2076 # * A full date, with non-zero year, month and day values
2077 # * A month and day value, with a zero year, e.g. an anniversary
2078 # * A year on its own, with zero month and day values
2079 # * A year and month value, with a zero day, e.g. a credit card expiration date
2080 #
2081 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2082 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2083 # a year.
2084 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2085 # month and day.
2086 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2087 # if specifying a year by itself or a year and month where the day is not
2088 # significant.
2089 },
2090 &quot;stringValue&quot;: &quot;A String&quot;, # string
2091 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2092 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2093 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2094 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002095 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2096 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2097 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002098 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2099 # allow the value 60 if it allows leap-seconds.
2100 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07002101 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002102 &quot;booleanValue&quot;: True or False, # boolean
2103 &quot;floatValue&quot;: 3.14, # float
2104 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
2105 },
2106 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
2107 # used.
2108 # Note that for the purposes of inspection or transformation, the number
2109 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2110 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2111 # 123456789, the number of bytes would be counted as 9, even though an
2112 # int64 only holds up to 8 bytes of data.
2113 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2114 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2115 # and time zone are either specified elsewhere or are not significant. The date
2116 # is relative to the Proleptic Gregorian Calendar. This can represent:
2117 #
2118 # * A full date, with non-zero year, month and day values
2119 # * A month and day value, with a zero year, e.g. an anniversary
2120 # * A year on its own, with zero month and day values
2121 # * A year and month value, with a zero day, e.g. a credit card expiration date
2122 #
2123 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2124 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2125 # a year.
2126 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2127 # month and day.
2128 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2129 # if specifying a year by itself or a year and month where the day is not
2130 # significant.
2131 },
2132 &quot;stringValue&quot;: &quot;A String&quot;, # string
2133 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2134 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2135 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2136 # types are google.type.Date and `google.protobuf.Timestamp`.
2137 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2138 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2139 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2140 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2141 # allow the value 60 if it allows leap-seconds.
2142 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2143 },
2144 &quot;booleanValue&quot;: True or False, # boolean
2145 &quot;floatValue&quot;: 3.14, # float
2146 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
2147 },
2148 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
2149 # Note that for the purposes of inspection or transformation, the number
2150 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2151 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2152 # 123456789, the number of bytes would be counted as 9, even though an
2153 # int64 only holds up to 8 bytes of data.
2154 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2155 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2156 # and time zone are either specified elsewhere or are not significant. The date
2157 # is relative to the Proleptic Gregorian Calendar. This can represent:
2158 #
2159 # * A full date, with non-zero year, month and day values
2160 # * A month and day value, with a zero year, e.g. an anniversary
2161 # * A year on its own, with zero month and day values
2162 # * A year and month value, with a zero day, e.g. a credit card expiration date
2163 #
2164 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2165 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2166 # a year.
2167 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2168 # month and day.
2169 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2170 # if specifying a year by itself or a year and month where the day is not
2171 # significant.
2172 },
2173 &quot;stringValue&quot;: &quot;A String&quot;, # string
2174 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2175 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2176 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2177 # types are google.type.Date and `google.protobuf.Timestamp`.
2178 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2179 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2180 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2181 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2182 # allow the value 60 if it allows leap-seconds.
2183 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2184 },
2185 &quot;booleanValue&quot;: True or False, # boolean
2186 &quot;floatValue&quot;: 3.14, # float
2187 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002188 },
2189 },
2190 ],
2191 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002192 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
2193 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
2194 # output would be &#x27;My phone number is &#x27;.
2195 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002196 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
2197 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
2198 # Note that for the purposes of inspection or transformation, the number
2199 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2200 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2201 # 123456789, the number of bytes would be counted as 9, even though an
2202 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002203 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2204 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2205 # and time zone are either specified elsewhere or are not significant. The date
2206 # is relative to the Proleptic Gregorian Calendar. This can represent:
2207 #
2208 # * A full date, with non-zero year, month and day values
2209 # * A month and day value, with a zero year, e.g. an anniversary
2210 # * A year on its own, with zero month and day values
2211 # * A year and month value, with a zero day, e.g. a credit card expiration date
2212 #
2213 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2214 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2215 # a year.
2216 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2217 # month and day.
2218 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2219 # if specifying a year by itself or a year and month where the day is not
2220 # significant.
2221 },
2222 &quot;stringValue&quot;: &quot;A String&quot;, # string
2223 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2224 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2225 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2226 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002227 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2228 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2229 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002230 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2231 # allow the value 60 if it allows leap-seconds.
2232 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07002233 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002234 &quot;booleanValue&quot;: True or False, # boolean
2235 &quot;floatValue&quot;: 3.14, # float
2236 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002237 },
2238 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002239 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
2240 # Bucketing transformation can provide all of this functionality,
2241 # but requires more configuration. This message is provided as a convenience to
2242 # the user for simple bucketing strategies.
2243 #
2244 # The transformed value will be a hyphenated string of
2245 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
2246 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
2247 #
2248 # This can be used on data of type: double, long.
2249 #
2250 # If the bound Value type differs from the type of data
2251 # being transformed, we will first attempt converting the type of the data to
2252 # be transformed to match the type of the bound before comparing.
2253 #
2254 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07002255 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
2256 # grouped together into a single bucket; for example if `upper_bound` = 89,
2257 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
2258 # Note that for the purposes of inspection or transformation, the number
2259 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2260 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2261 # 123456789, the number of bytes would be counted as 9, even though an
2262 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002263 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2264 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2265 # and time zone are either specified elsewhere or are not significant. The date
2266 # is relative to the Proleptic Gregorian Calendar. This can represent:
2267 #
2268 # * A full date, with non-zero year, month and day values
2269 # * A month and day value, with a zero year, e.g. an anniversary
2270 # * A year on its own, with zero month and day values
2271 # * A year and month value, with a zero day, e.g. a credit card expiration date
2272 #
2273 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2274 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2275 # a year.
2276 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2277 # month and day.
2278 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2279 # if specifying a year by itself or a year and month where the day is not
2280 # significant.
2281 },
2282 &quot;stringValue&quot;: &quot;A String&quot;, # string
2283 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2284 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2285 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2286 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002287 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2288 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2289 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002290 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2291 # allow the value 60 if it allows leap-seconds.
2292 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07002293 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002294 &quot;booleanValue&quot;: True or False, # boolean
2295 &quot;floatValue&quot;: 3.14, # float
2296 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002297 },
2298 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
2299 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
2300 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
2301 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002302 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
2303 # grouped together into a single bucket; for example if `lower_bound` = 10,
2304 # then all values less than 10 are replaced with the value &quot;-10&quot;.
2305 # Note that for the purposes of inspection or transformation, the number
2306 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2307 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2308 # 123456789, the number of bytes would be counted as 9, even though an
2309 # int64 only holds up to 8 bytes of data.
2310 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2311 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2312 # and time zone are either specified elsewhere or are not significant. The date
2313 # is relative to the Proleptic Gregorian Calendar. This can represent:
2314 #
2315 # * A full date, with non-zero year, month and day values
2316 # * A month and day value, with a zero year, e.g. an anniversary
2317 # * A year on its own, with zero month and day values
2318 # * A year and month value, with a zero day, e.g. a credit card expiration date
2319 #
2320 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2321 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2322 # a year.
2323 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2324 # month and day.
2325 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2326 # if specifying a year by itself or a year and month where the day is not
2327 # significant.
2328 },
2329 &quot;stringValue&quot;: &quot;A String&quot;, # string
2330 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2331 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2332 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2333 # types are google.type.Date and `google.protobuf.Timestamp`.
2334 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2335 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2336 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2337 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2338 # allow the value 60 if it allows leap-seconds.
2339 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2340 },
2341 &quot;booleanValue&quot;: True or False, # boolean
2342 &quot;floatValue&quot;: 3.14, # float
2343 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
2344 },
2345 },
2346 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
2347 # fixed character. Masking can start from the beginning or end of the string.
2348 # This can be used on data of any type (numbers, longs, and so on) and when
2349 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
2350 # type. (This allows you to take a long like 123 and modify it to a string like
2351 # **3.
2352 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
2353 # characters. For example, if the input string is `555-555-5555` and you
2354 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
2355 # returns `***-**5-5555`.
2356 { # Characters to skip when doing deidentification of a value. These will be left
2357 # alone and skipped.
2358 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
2359 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
2360 # punctuation.
2361 },
2362 ],
2363 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
2364 # masked. Skipped characters do not count towards this tally.
2365 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
2366 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
2367 # code or credit card number. This string must have a length of 1. If not
2368 # supplied, this value defaults to `*` for strings, and `0` for digits.
2369 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
2370 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
2371 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
2372 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
2373 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002374 },
2375 },
2376 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # Only apply the transformation if the condition evaluates to true for the
2377 # given `RecordCondition`. The conditions are allowed to reference fields
2378 # that are not used in the actual transformation.
2379 #
2380 # Example Use Cases:
2381 #
2382 # - Apply a different bucket transformation to an age column if the zip code
2383 # column for the same record is within a specific range.
2384 # - Redact a field if the date of birth field is greater than 85.
2385 # a field.
2386 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
2387 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
2388 # only supported value is `AND`.
2389 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
2390 &quot;conditions&quot;: [ # A collection of conditions.
2391 { # The field type of `value` and `field` do not need to match to be
2392 # considered equal, but not all comparisons are possible.
2393 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
2394 # but all other comparisons are invalid with incompatible types.
2395 # A `value` of type:
2396 #
2397 # - `string` can be compared against all other types
2398 # - `boolean` can only be compared against other booleans
2399 # - `integer` can be compared against doubles or a string if the string value
2400 # can be parsed as an integer.
2401 # - `double` can be compared against integers or a string if the string can
2402 # be parsed as a double.
2403 # - `Timestamp` can be compared against strings in RFC 3339 date string
2404 # format.
2405 # - `TimeOfDay` can be compared against timestamps and strings in the format
2406 # of &#x27;HH:mm:ss&#x27;.
2407 #
2408 # If we fail to compare do to type mismatch, a warning will be given and
2409 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002410 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
2411 # Note that for the purposes of inspection or transformation, the number
2412 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2413 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2414 # 123456789, the number of bytes would be counted as 9, even though an
2415 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002416 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2417 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2418 # and time zone are either specified elsewhere or are not significant. The date
2419 # is relative to the Proleptic Gregorian Calendar. This can represent:
2420 #
2421 # * A full date, with non-zero year, month and day values
2422 # * A month and day value, with a zero year, e.g. an anniversary
2423 # * A year on its own, with zero month and day values
2424 # * A year and month value, with a zero day, e.g. a credit card expiration date
2425 #
2426 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2427 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2428 # a year.
2429 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2430 # month and day.
2431 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2432 # if specifying a year by itself or a year and month where the day is not
2433 # significant.
2434 },
2435 &quot;stringValue&quot;: &quot;A String&quot;, # string
2436 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2437 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2438 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2439 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002440 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2441 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2442 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002443 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2444 # allow the value 60 if it allows leap-seconds.
2445 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07002446 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002447 &quot;booleanValue&quot;: True or False, # boolean
2448 &quot;floatValue&quot;: 3.14, # float
2449 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002450 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002451 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
2452 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2453 },
2454 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002455 },
2456 ],
2457 },
2458 },
2459 },
2460 },
2461 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002462 &quot;recordSuppressions&quot;: [ # Configuration defining which records get suppressed entirely. Records that
2463 # match any suppression rule are omitted from the output.
2464 { # Configuration to suppress records whose suppression conditions evaluate to
2465 # true.
2466 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # A condition that when it evaluates to true will result in the record being
2467 # evaluated to be suppressed from the transformed content.
2468 # a field.
2469 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
2470 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
2471 # only supported value is `AND`.
2472 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
2473 &quot;conditions&quot;: [ # A collection of conditions.
2474 { # The field type of `value` and `field` do not need to match to be
2475 # considered equal, but not all comparisons are possible.
2476 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
2477 # but all other comparisons are invalid with incompatible types.
2478 # A `value` of type:
2479 #
2480 # - `string` can be compared against all other types
2481 # - `boolean` can only be compared against other booleans
2482 # - `integer` can be compared against doubles or a string if the string value
2483 # can be parsed as an integer.
2484 # - `double` can be compared against integers or a string if the string can
2485 # be parsed as a double.
2486 # - `Timestamp` can be compared against strings in RFC 3339 date string
2487 # format.
2488 # - `TimeOfDay` can be compared against timestamps and strings in the format
2489 # of &#x27;HH:mm:ss&#x27;.
2490 #
2491 # If we fail to compare do to type mismatch, a warning will be given and
2492 # the condition will evaluate to false.
2493 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
2494 # Note that for the purposes of inspection or transformation, the number
2495 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2496 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2497 # 123456789, the number of bytes would be counted as 9, even though an
2498 # int64 only holds up to 8 bytes of data.
2499 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2500 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2501 # and time zone are either specified elsewhere or are not significant. The date
2502 # is relative to the Proleptic Gregorian Calendar. This can represent:
2503 #
2504 # * A full date, with non-zero year, month and day values
2505 # * A month and day value, with a zero year, e.g. an anniversary
2506 # * A year on its own, with zero month and day values
2507 # * A year and month value, with a zero day, e.g. a credit card expiration date
2508 #
2509 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2510 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2511 # a year.
2512 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2513 # month and day.
2514 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2515 # if specifying a year by itself or a year and month where the day is not
2516 # significant.
2517 },
2518 &quot;stringValue&quot;: &quot;A String&quot;, # string
2519 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2520 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2521 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2522 # types are google.type.Date and `google.protobuf.Timestamp`.
2523 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2524 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2525 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2526 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2527 # allow the value 60 if it allows leap-seconds.
2528 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2529 },
2530 &quot;booleanValue&quot;: True or False, # boolean
2531 &quot;floatValue&quot;: 3.14, # float
2532 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002533 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002534 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
2535 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002536 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002537 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002538 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002539 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002540 },
2541 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002542 },
2543 },
2544 ],
2545 },
2546 },
2547 &quot;locationId&quot;: &quot;A String&quot;, # The geographic location to process de-identification. Reserved for future
2548 # extensions.
2549 }
2550
2551 x__xgafv: string, V1 error format.
2552 Allowed values
2553 1 - v1 error format
2554 2 - v2 error format
2555
2556Returns:
2557 An object of the form:
2558
2559 { # Results of de-identifying a ContentItem.
Bu Sun Kim65020912020-05-20 12:08:20 -07002560 &quot;overview&quot;: { # Overview of the modifications that occurred. # An overview of the changes that were made on the `item`.
2561 &quot;transformationSummaries&quot;: [ # Transformations applied to the dataset.
2562 { # Summary of a single transformation.
2563 # Only one of &#x27;transformation&#x27;, &#x27;field_transformation&#x27;, or &#x27;record_suppress&#x27;
2564 # will be set.
2565 &quot;fieldTransformations&quot;: [ # The field transformation that was applied.
2566 # If multiple field transformations are requested for a single field,
2567 # this list will contain all of them; otherwise, only one is supplied.
2568 { # The transformation to apply to the field.
2569 &quot;fields&quot;: [ # Required. Input field(s) to apply the transformation to.
2570 { # General identifier of a data field in a storage service.
2571 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2572 },
2573 ],
2574 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the contents of the field as free text, and selectively
2575 # transform content that matches an `InfoType`.
2576 # apply various `PrimitiveTransformation`s to each finding, where the
2577 # transformation is applied to only values that were identified as a specific
2578 # info_type.
2579 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
2580 # for a given infoType.
2581 { # A transformation to apply to text that is identified as a specific
2582 # info_type.
Bu Sun Kim65020912020-05-20 12:08:20 -07002583 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
2584 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
2585 # portion of the value.
2586 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
2587 },
2588 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
2589 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
2590 # to learn more.
2591 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
2592 # If set, must also set cryptoKey. If set, shift will be consistent for the
2593 # given context.
2594 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2595 },
2596 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
2597 # range (inclusive ends). Negative means shift to earlier in time. Must not
2598 # be more than 365250 days (1000 years) each direction.
2599 #
2600 # For example, 3 means shift date to at most 3 days into the future.
2601 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
2602 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
2603 # results in the same shift for the same context and crypto_key. If
2604 # set, must also set context. Can only be applied to table items.
2605 # a key encryption key (KEK) stored by KMS).
2606 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2607 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2608 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07002609 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
2610 # leaking the key. Choose another type of key if possible.
2611 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
2612 },
2613 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
2614 # It will be discarded after the request finishes.
2615 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
2616 # This is an arbitrary string used to differentiate different keys.
2617 # A unique key is generated per name: two separate `TransientCryptoKey`
2618 # protos share the same generated key if their names are the same.
2619 # When the data crypto key is generated, this name is not used in any way
2620 # (repeating the api call will result in a different key being generated).
2621 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002622 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
2623 # The wrapped key must be a 128/192/256 bit key.
2624 # Authorization requires the following IAM permissions when sending a request
2625 # to perform a crypto transformation using a kms-wrapped crypto key:
2626 # dlp.kms.encrypt
2627 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2628 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
2629 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002630 },
2631 },
2632 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
2633 },
2634 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
2635 # Uses SHA-256.
2636 # The key size must be either 32 or 64 bytes.
2637 # Outputs a base64 encoded representation of the hashed output
2638 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
2639 # Currently, only string and integer values can be hashed.
2640 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
2641 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
2642 # a key encryption key (KEK) stored by KMS).
2643 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2644 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2645 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07002646 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
2647 # leaking the key. Choose another type of key if possible.
2648 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
2649 },
2650 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
2651 # It will be discarded after the request finishes.
2652 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
2653 # This is an arbitrary string used to differentiate different keys.
2654 # A unique key is generated per name: two separate `TransientCryptoKey`
2655 # protos share the same generated key if their names are the same.
2656 # When the data crypto key is generated, this name is not used in any way
2657 # (repeating the api call will result in a different key being generated).
2658 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002659 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
2660 # The wrapped key must be a 128/192/256 bit key.
2661 # Authorization requires the following IAM permissions when sending a request
2662 # to perform a crypto transformation using a kms-wrapped crypto key:
2663 # dlp.kms.encrypt
2664 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2665 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
2666 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002667 },
2668 },
2669 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
2670 # (FPE) with the FFX mode of operation; however when used in the
2671 # `ReidentifyContent` API method, it serves the opposite function by reversing
2672 # the surrogate back into the original identifier. The identifier must be
2673 # encoded as ASCII. For a given crypto key and context, the same identifier
2674 # will be replaced with the same surrogate. Identifiers must be at least two
2675 # characters long. In the case that the identifier is the empty string, it will
2676 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
2677 # more.
2678 #
2679 # Note: We recommend using CryptoDeterministicConfig for all use cases which
2680 # do not require preserving the input alphabet space and size, plus warrant
2681 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07002682 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
2683 # This annotation will be applied to the surrogate by prefixing it with
2684 # the name of the custom infoType followed by the number of
2685 # characters comprising the surrogate. The following scheme defines the
2686 # format: info_type_name(surrogate_character_count):surrogate
2687 #
2688 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
2689 # the surrogate is &#x27;abc&#x27;, the full replacement value
2690 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
2691 #
2692 # This annotation identifies the surrogate when inspecting content using the
2693 # custom infoType
2694 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2695 # This facilitates reversal of the surrogate when it occurs in free text.
2696 #
2697 # In order for inspection to work properly, the name of this infoType must
2698 # not occur naturally anywhere in your data; otherwise, inspection may
2699 # find a surrogate that does not correspond to an actual identifier.
2700 # Therefore, choose your custom infoType name carefully after considering
2701 # what your data looks like. One way to select a name that has a high chance
2702 # of yielding reliable detection is to include one or more unicode characters
2703 # that are highly improbable to exist in your data.
2704 # For example, assuming your data is entered from a regular ASCII keyboard,
2705 # the symbol with the hex code point 29DD might be used like so:
2706 # ⧝MY_TOKEN_TYPE
2707 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
2708 # creating a CustomInfoType, or one of the names listed
2709 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
2710 # a built-in type. InfoType names should conform to the pattern
2711 # `[a-zA-Z0-9_]{1,64}`.
2712 },
2713 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
2714 # identifier in two different contexts won&#x27;t be given the same surrogate. If
2715 # the context is not set, a default tweak will be used.
2716 #
2717 # If the context is set but:
2718 #
2719 # 1. there is no record present when transforming a given value or
2720 # 1. the field is not present when transforming a given value,
2721 #
2722 # a default tweak will be used.
2723 #
2724 # Note that case (1) is expected when an `InfoTypeTransformation` is
2725 # applied to both structured and non-structured `ContentItem`s.
2726 # Currently, the referenced field may be of value type integer or string.
2727 #
2728 # The tweak is constructed as a sequence of bytes in big endian byte order
2729 # such that:
2730 #
2731 # - a 64 bit integer is encoded followed by a single byte of value 1
2732 # - a string is encoded in UTF-8 format followed by a single byte of value 2
2733 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2734 },
2735 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
2736 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
2737 # a key encryption key (KEK) stored by KMS).
2738 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2739 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2740 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07002741 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
2742 # leaking the key. Choose another type of key if possible.
2743 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
2744 },
2745 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
2746 # It will be discarded after the request finishes.
2747 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
2748 # This is an arbitrary string used to differentiate different keys.
2749 # A unique key is generated per name: two separate `TransientCryptoKey`
2750 # protos share the same generated key if their names are the same.
2751 # When the data crypto key is generated, this name is not used in any way
2752 # (repeating the api call will result in a different key being generated).
2753 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002754 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
2755 # The wrapped key must be a 128/192/256 bit key.
2756 # Authorization requires the following IAM permissions when sending a request
2757 # to perform a crypto transformation using a kms-wrapped crypto key:
2758 # dlp.kms.encrypt
2759 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2760 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
2761 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002762 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002763 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
2764 # that the FFX mode natively supports. This happens before/after
2765 # encryption/decryption.
2766 # Each character listed must appear only once.
2767 # Number of characters must be in the range [2, 95].
2768 # This must be encoded as ASCII.
2769 # The order of characters does not matter.
2770 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07002771 },
2772 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
2773 # input. Outputs a base64 encoded representation of the encrypted output.
2774 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
2775 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
2776 # This annotation will be applied to the surrogate by prefixing it with
2777 # the name of the custom info type followed by the number of
2778 # characters comprising the surrogate. The following scheme defines the
2779 # format: {info type name}({surrogate character count}):{surrogate}
2780 #
2781 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
2782 # the surrogate is &#x27;abc&#x27;, the full replacement value
2783 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
2784 #
2785 # This annotation identifies the surrogate when inspecting content using the
2786 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
2787 # surrogate when it occurs in free text.
2788 #
2789 # Note: For record transformations where the entire cell in a table is being
2790 # transformed, surrogates are not mandatory. Surrogates are used to denote
2791 # the location of the token and are necessary for re-identification in free
2792 # form text.
2793 #
2794 # In order for inspection to work properly, the name of this info type must
2795 # not occur naturally anywhere in your data; otherwise, inspection may either
2796 #
2797 # - reverse a surrogate that does not correspond to an actual identifier
2798 # - be unable to parse the surrogate and result in an error
2799 #
2800 # Therefore, choose your custom info type name carefully after considering
2801 # what your data looks like. One way to select a name that has a high chance
2802 # of yielding reliable detection is to include one or more unicode characters
2803 # that are highly improbable to exist in your data.
2804 # For example, assuming your data is entered from a regular ASCII keyboard,
2805 # the symbol with the hex code point 29DD might be used like so:
2806 # ⧝MY_TOKEN_TYPE.
2807 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
2808 # creating a CustomInfoType, or one of the names listed
2809 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
2810 # a built-in type. InfoType names should conform to the pattern
2811 # `[a-zA-Z0-9_]{1,64}`.
2812 },
2813 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
2814 # referential integrity such that the same identifier in two different
2815 # contexts will be given a distinct surrogate. The context is appended to
2816 # plaintext value being encrypted. On decryption the provided context is
2817 # validated against the value used during encryption. If a context was
2818 # provided during encryption, same context must be provided during decryption
2819 # as well.
2820 #
2821 # If the context is not set, plaintext would be used as is for encryption.
2822 # If the context is set but:
2823 #
2824 # 1. there is no record present when transforming a given value or
2825 # 2. the field is not present when transforming a given value,
2826 #
2827 # plaintext would be used as is for encryption.
2828 #
2829 # Note that case (1) is expected when an `InfoTypeTransformation` is
2830 # applied to both structured and non-structured `ContentItem`s.
2831 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
2832 },
2833 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
2834 # a key encryption key (KEK) stored by KMS).
2835 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2836 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2837 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07002838 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
2839 # leaking the key. Choose another type of key if possible.
2840 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
2841 },
2842 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
2843 # It will be discarded after the request finishes.
2844 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
2845 # This is an arbitrary string used to differentiate different keys.
2846 # A unique key is generated per name: two separate `TransientCryptoKey`
2847 # protos share the same generated key if their names are the same.
2848 # When the data crypto key is generated, this name is not used in any way
2849 # (repeating the api call will result in a different key being generated).
2850 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002851 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
2852 # The wrapped key must be a 128/192/256 bit key.
2853 # Authorization requires the following IAM permissions when sending a request
2854 # to perform a crypto transformation using a kms-wrapped crypto key:
2855 # dlp.kms.encrypt
2856 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2857 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
2858 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002859 },
2860 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002861 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
2862 # replacement values are dynamically provided by the user for custom behavior,
2863 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
2864 # This can be used on
2865 # data of type: number, long, string, timestamp.
2866 # If the bound `Value` type differs from the type of data being transformed, we
2867 # will first attempt converting the type of the data to be transformed to match
2868 # the type of the bound before comparing.
2869 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
2870 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
2871 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002872 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
2873 # the default behavior will be to hyphenate the min-max range.
2874 # Note that for the purposes of inspection or transformation, the number
2875 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2876 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2877 # 123456789, the number of bytes would be counted as 9, even though an
2878 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07002879 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2880 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2881 # and time zone are either specified elsewhere or are not significant. The date
2882 # is relative to the Proleptic Gregorian Calendar. This can represent:
2883 #
2884 # * A full date, with non-zero year, month and day values
2885 # * A month and day value, with a zero year, e.g. an anniversary
2886 # * A year on its own, with zero month and day values
2887 # * A year and month value, with a zero day, e.g. a credit card expiration date
2888 #
2889 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2890 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2891 # a year.
2892 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2893 # month and day.
2894 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2895 # if specifying a year by itself or a year and month where the day is not
2896 # significant.
2897 },
2898 &quot;stringValue&quot;: &quot;A String&quot;, # string
2899 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2900 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2901 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2902 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002903 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2904 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2905 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002906 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2907 # allow the value 60 if it allows leap-seconds.
2908 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07002909 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002910 &quot;booleanValue&quot;: True or False, # boolean
2911 &quot;floatValue&quot;: 3.14, # float
2912 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
2913 },
2914 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
2915 # used.
2916 # Note that for the purposes of inspection or transformation, the number
2917 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2918 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2919 # 123456789, the number of bytes would be counted as 9, even though an
2920 # int64 only holds up to 8 bytes of data.
2921 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2922 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2923 # and time zone are either specified elsewhere or are not significant. The date
2924 # is relative to the Proleptic Gregorian Calendar. This can represent:
2925 #
2926 # * A full date, with non-zero year, month and day values
2927 # * A month and day value, with a zero year, e.g. an anniversary
2928 # * A year on its own, with zero month and day values
2929 # * A year and month value, with a zero day, e.g. a credit card expiration date
2930 #
2931 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2932 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2933 # a year.
2934 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2935 # month and day.
2936 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2937 # if specifying a year by itself or a year and month where the day is not
2938 # significant.
2939 },
2940 &quot;stringValue&quot;: &quot;A String&quot;, # string
2941 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2942 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2943 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2944 # types are google.type.Date and `google.protobuf.Timestamp`.
2945 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2946 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2947 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2948 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2949 # allow the value 60 if it allows leap-seconds.
2950 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2951 },
2952 &quot;booleanValue&quot;: True or False, # boolean
2953 &quot;floatValue&quot;: 3.14, # float
2954 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
2955 },
2956 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
2957 # Note that for the purposes of inspection or transformation, the number
2958 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
2959 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
2960 # 123456789, the number of bytes would be counted as 9, even though an
2961 # int64 only holds up to 8 bytes of data.
2962 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
2963 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
2964 # and time zone are either specified elsewhere or are not significant. The date
2965 # is relative to the Proleptic Gregorian Calendar. This can represent:
2966 #
2967 # * A full date, with non-zero year, month and day values
2968 # * A month and day value, with a zero year, e.g. an anniversary
2969 # * A year on its own, with zero month and day values
2970 # * A year and month value, with a zero day, e.g. a credit card expiration date
2971 #
2972 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2973 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2974 # a year.
2975 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2976 # month and day.
2977 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2978 # if specifying a year by itself or a year and month where the day is not
2979 # significant.
2980 },
2981 &quot;stringValue&quot;: &quot;A String&quot;, # string
2982 &quot;integerValue&quot;: &quot;A String&quot;, # integer
2983 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
2984 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2985 # types are google.type.Date and `google.protobuf.Timestamp`.
2986 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2987 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2988 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2989 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2990 # allow the value 60 if it allows leap-seconds.
2991 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2992 },
2993 &quot;booleanValue&quot;: True or False, # boolean
2994 &quot;floatValue&quot;: 3.14, # float
2995 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07002996 },
2997 },
2998 ],
2999 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003000 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
3001 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
3002 # output would be &#x27;My phone number is &#x27;.
3003 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003004 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
3005 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
3006 # Note that for the purposes of inspection or transformation, the number
3007 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3008 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3009 # 123456789, the number of bytes would be counted as 9, even though an
3010 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003011 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3012 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3013 # and time zone are either specified elsewhere or are not significant. The date
3014 # is relative to the Proleptic Gregorian Calendar. This can represent:
3015 #
3016 # * A full date, with non-zero year, month and day values
3017 # * A month and day value, with a zero year, e.g. an anniversary
3018 # * A year on its own, with zero month and day values
3019 # * A year and month value, with a zero day, e.g. a credit card expiration date
3020 #
3021 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3022 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3023 # a year.
3024 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3025 # month and day.
3026 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3027 # if specifying a year by itself or a year and month where the day is not
3028 # significant.
3029 },
3030 &quot;stringValue&quot;: &quot;A String&quot;, # string
3031 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3032 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3033 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3034 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003035 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3036 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3037 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003038 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3039 # allow the value 60 if it allows leap-seconds.
3040 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003041 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003042 &quot;booleanValue&quot;: True or False, # boolean
3043 &quot;floatValue&quot;: 3.14, # float
3044 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003045 },
3046 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003047 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
3048 # Bucketing transformation can provide all of this functionality,
3049 # but requires more configuration. This message is provided as a convenience to
3050 # the user for simple bucketing strategies.
3051 #
3052 # The transformed value will be a hyphenated string of
3053 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
3054 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
3055 #
3056 # This can be used on data of type: double, long.
3057 #
3058 # If the bound Value type differs from the type of data
3059 # being transformed, we will first attempt converting the type of the data to
3060 # be transformed to match the type of the bound before comparing.
3061 #
3062 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07003063 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
3064 # grouped together into a single bucket; for example if `upper_bound` = 89,
3065 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
3066 # Note that for the purposes of inspection or transformation, the number
3067 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3068 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3069 # 123456789, the number of bytes would be counted as 9, even though an
3070 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003071 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3072 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3073 # and time zone are either specified elsewhere or are not significant. The date
3074 # is relative to the Proleptic Gregorian Calendar. This can represent:
3075 #
3076 # * A full date, with non-zero year, month and day values
3077 # * A month and day value, with a zero year, e.g. an anniversary
3078 # * A year on its own, with zero month and day values
3079 # * A year and month value, with a zero day, e.g. a credit card expiration date
3080 #
3081 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3082 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3083 # a year.
3084 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3085 # month and day.
3086 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3087 # if specifying a year by itself or a year and month where the day is not
3088 # significant.
3089 },
3090 &quot;stringValue&quot;: &quot;A String&quot;, # string
3091 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3092 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3093 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3094 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003095 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3096 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3097 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003098 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3099 # allow the value 60 if it allows leap-seconds.
3100 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003101 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003102 &quot;booleanValue&quot;: True or False, # boolean
3103 &quot;floatValue&quot;: 3.14, # float
3104 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003105 },
3106 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
3107 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
3108 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
3109 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003110 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
3111 # grouped together into a single bucket; for example if `lower_bound` = 10,
3112 # then all values less than 10 are replaced with the value &quot;-10&quot;.
3113 # Note that for the purposes of inspection or transformation, the number
3114 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3115 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3116 # 123456789, the number of bytes would be counted as 9, even though an
3117 # int64 only holds up to 8 bytes of data.
3118 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3119 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3120 # and time zone are either specified elsewhere or are not significant. The date
3121 # is relative to the Proleptic Gregorian Calendar. This can represent:
3122 #
3123 # * A full date, with non-zero year, month and day values
3124 # * A month and day value, with a zero year, e.g. an anniversary
3125 # * A year on its own, with zero month and day values
3126 # * A year and month value, with a zero day, e.g. a credit card expiration date
3127 #
3128 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3129 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3130 # a year.
3131 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3132 # month and day.
3133 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3134 # if specifying a year by itself or a year and month where the day is not
3135 # significant.
3136 },
3137 &quot;stringValue&quot;: &quot;A String&quot;, # string
3138 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3139 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3140 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3141 # types are google.type.Date and `google.protobuf.Timestamp`.
3142 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3143 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3144 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3145 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3146 # allow the value 60 if it allows leap-seconds.
3147 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3148 },
3149 &quot;booleanValue&quot;: True or False, # boolean
3150 &quot;floatValue&quot;: 3.14, # float
3151 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
3152 },
3153 },
3154 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
3155 # fixed character. Masking can start from the beginning or end of the string.
3156 # This can be used on data of any type (numbers, longs, and so on) and when
3157 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
3158 # type. (This allows you to take a long like 123 and modify it to a string like
3159 # **3.
3160 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
3161 # characters. For example, if the input string is `555-555-5555` and you
3162 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
3163 # returns `***-**5-5555`.
3164 { # Characters to skip when doing deidentification of a value. These will be left
3165 # alone and skipped.
3166 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
3167 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
3168 # punctuation.
3169 },
3170 ],
3171 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
3172 # masked. Skipped characters do not count towards this tally.
3173 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
3174 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
3175 # code or credit card number. This string must have a length of 1. If not
3176 # supplied, this value defaults to `*` for strings, and `0` for digits.
3177 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
3178 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
3179 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
3180 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
3181 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003182 },
3183 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003184 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
3185 # this transformation to apply to all findings that correspond to
3186 # infoTypes that were requested in `InspectConfig`.
3187 { # Type of information detected by the API.
3188 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
3189 # creating a CustomInfoType, or one of the names listed
3190 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
3191 # a built-in type. InfoType names should conform to the pattern
3192 # `[a-zA-Z0-9_]{1,64}`.
3193 },
3194 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003195 },
3196 ],
3197 },
3198 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Apply the transformation to the entire field.
3199 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
3200 # portion of the value.
3201 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
3202 },
3203 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
3204 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
3205 # to learn more.
3206 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
3207 # If set, must also set cryptoKey. If set, shift will be consistent for the
3208 # given context.
3209 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
3210 },
3211 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
3212 # range (inclusive ends). Negative means shift to earlier in time. Must not
3213 # be more than 365250 days (1000 years) each direction.
3214 #
3215 # For example, 3 means shift date to at most 3 days into the future.
3216 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
3217 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
3218 # results in the same shift for the same context and crypto_key. If
3219 # set, must also set context. Can only be applied to table items.
3220 # a key encryption key (KEK) stored by KMS).
3221 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3222 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3223 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003224 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3225 # leaking the key. Choose another type of key if possible.
3226 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3227 },
3228 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3229 # It will be discarded after the request finishes.
3230 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3231 # This is an arbitrary string used to differentiate different keys.
3232 # A unique key is generated per name: two separate `TransientCryptoKey`
3233 # protos share the same generated key if their names are the same.
3234 # When the data crypto key is generated, this name is not used in any way
3235 # (repeating the api call will result in a different key being generated).
3236 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003237 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3238 # The wrapped key must be a 128/192/256 bit key.
3239 # Authorization requires the following IAM permissions when sending a request
3240 # to perform a crypto transformation using a kms-wrapped crypto key:
3241 # dlp.kms.encrypt
3242 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3243 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3244 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003245 },
3246 },
3247 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
3248 },
3249 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
3250 # Uses SHA-256.
3251 # The key size must be either 32 or 64 bytes.
3252 # Outputs a base64 encoded representation of the hashed output
3253 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
3254 # Currently, only string and integer values can be hashed.
3255 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
3256 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
3257 # a key encryption key (KEK) stored by KMS).
3258 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3259 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3260 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003261 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3262 # leaking the key. Choose another type of key if possible.
3263 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3264 },
3265 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3266 # It will be discarded after the request finishes.
3267 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3268 # This is an arbitrary string used to differentiate different keys.
3269 # A unique key is generated per name: two separate `TransientCryptoKey`
3270 # protos share the same generated key if their names are the same.
3271 # When the data crypto key is generated, this name is not used in any way
3272 # (repeating the api call will result in a different key being generated).
3273 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003274 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3275 # The wrapped key must be a 128/192/256 bit key.
3276 # Authorization requires the following IAM permissions when sending a request
3277 # to perform a crypto transformation using a kms-wrapped crypto key:
3278 # dlp.kms.encrypt
3279 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3280 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3281 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003282 },
3283 },
3284 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
3285 # (FPE) with the FFX mode of operation; however when used in the
3286 # `ReidentifyContent` API method, it serves the opposite function by reversing
3287 # the surrogate back into the original identifier. The identifier must be
3288 # encoded as ASCII. For a given crypto key and context, the same identifier
3289 # will be replaced with the same surrogate. Identifiers must be at least two
3290 # characters long. In the case that the identifier is the empty string, it will
3291 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
3292 # more.
3293 #
3294 # Note: We recommend using CryptoDeterministicConfig for all use cases which
3295 # do not require preserving the input alphabet space and size, plus warrant
3296 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07003297 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
3298 # This annotation will be applied to the surrogate by prefixing it with
3299 # the name of the custom infoType followed by the number of
3300 # characters comprising the surrogate. The following scheme defines the
3301 # format: info_type_name(surrogate_character_count):surrogate
3302 #
3303 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
3304 # the surrogate is &#x27;abc&#x27;, the full replacement value
3305 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
3306 #
3307 # This annotation identifies the surrogate when inspecting content using the
3308 # custom infoType
3309 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
3310 # This facilitates reversal of the surrogate when it occurs in free text.
3311 #
3312 # In order for inspection to work properly, the name of this infoType must
3313 # not occur naturally anywhere in your data; otherwise, inspection may
3314 # find a surrogate that does not correspond to an actual identifier.
3315 # Therefore, choose your custom infoType name carefully after considering
3316 # what your data looks like. One way to select a name that has a high chance
3317 # of yielding reliable detection is to include one or more unicode characters
3318 # that are highly improbable to exist in your data.
3319 # For example, assuming your data is entered from a regular ASCII keyboard,
3320 # the symbol with the hex code point 29DD might be used like so:
3321 # ⧝MY_TOKEN_TYPE
3322 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
3323 # creating a CustomInfoType, or one of the names listed
3324 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
3325 # a built-in type. InfoType names should conform to the pattern
3326 # `[a-zA-Z0-9_]{1,64}`.
3327 },
3328 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
3329 # identifier in two different contexts won&#x27;t be given the same surrogate. If
3330 # the context is not set, a default tweak will be used.
3331 #
3332 # If the context is set but:
3333 #
3334 # 1. there is no record present when transforming a given value or
3335 # 1. the field is not present when transforming a given value,
3336 #
3337 # a default tweak will be used.
3338 #
3339 # Note that case (1) is expected when an `InfoTypeTransformation` is
3340 # applied to both structured and non-structured `ContentItem`s.
3341 # Currently, the referenced field may be of value type integer or string.
3342 #
3343 # The tweak is constructed as a sequence of bytes in big endian byte order
3344 # such that:
3345 #
3346 # - a 64 bit integer is encoded followed by a single byte of value 1
3347 # - a string is encoded in UTF-8 format followed by a single byte of value 2
3348 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
3349 },
3350 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
3351 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
3352 # a key encryption key (KEK) stored by KMS).
3353 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3354 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3355 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003356 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3357 # leaking the key. Choose another type of key if possible.
3358 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3359 },
3360 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3361 # It will be discarded after the request finishes.
3362 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3363 # This is an arbitrary string used to differentiate different keys.
3364 # A unique key is generated per name: two separate `TransientCryptoKey`
3365 # protos share the same generated key if their names are the same.
3366 # When the data crypto key is generated, this name is not used in any way
3367 # (repeating the api call will result in a different key being generated).
3368 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003369 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3370 # The wrapped key must be a 128/192/256 bit key.
3371 # Authorization requires the following IAM permissions when sending a request
3372 # to perform a crypto transformation using a kms-wrapped crypto key:
3373 # dlp.kms.encrypt
3374 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3375 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3376 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003377 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003378 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
3379 # that the FFX mode natively supports. This happens before/after
3380 # encryption/decryption.
3381 # Each character listed must appear only once.
3382 # Number of characters must be in the range [2, 95].
3383 # This must be encoded as ASCII.
3384 # The order of characters does not matter.
3385 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07003386 },
3387 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
3388 # input. Outputs a base64 encoded representation of the encrypted output.
3389 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
3390 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
3391 # This annotation will be applied to the surrogate by prefixing it with
3392 # the name of the custom info type followed by the number of
3393 # characters comprising the surrogate. The following scheme defines the
3394 # format: {info type name}({surrogate character count}):{surrogate}
3395 #
3396 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
3397 # the surrogate is &#x27;abc&#x27;, the full replacement value
3398 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
3399 #
3400 # This annotation identifies the surrogate when inspecting content using the
3401 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
3402 # surrogate when it occurs in free text.
3403 #
3404 # Note: For record transformations where the entire cell in a table is being
3405 # transformed, surrogates are not mandatory. Surrogates are used to denote
3406 # the location of the token and are necessary for re-identification in free
3407 # form text.
3408 #
3409 # In order for inspection to work properly, the name of this info type must
3410 # not occur naturally anywhere in your data; otherwise, inspection may either
3411 #
3412 # - reverse a surrogate that does not correspond to an actual identifier
3413 # - be unable to parse the surrogate and result in an error
3414 #
3415 # Therefore, choose your custom info type name carefully after considering
3416 # what your data looks like. One way to select a name that has a high chance
3417 # of yielding reliable detection is to include one or more unicode characters
3418 # that are highly improbable to exist in your data.
3419 # For example, assuming your data is entered from a regular ASCII keyboard,
3420 # the symbol with the hex code point 29DD might be used like so:
3421 # ⧝MY_TOKEN_TYPE.
3422 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
3423 # creating a CustomInfoType, or one of the names listed
3424 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
3425 # a built-in type. InfoType names should conform to the pattern
3426 # `[a-zA-Z0-9_]{1,64}`.
3427 },
3428 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
3429 # referential integrity such that the same identifier in two different
3430 # contexts will be given a distinct surrogate. The context is appended to
3431 # plaintext value being encrypted. On decryption the provided context is
3432 # validated against the value used during encryption. If a context was
3433 # provided during encryption, same context must be provided during decryption
3434 # as well.
3435 #
3436 # If the context is not set, plaintext would be used as is for encryption.
3437 # If the context is set but:
3438 #
3439 # 1. there is no record present when transforming a given value or
3440 # 2. the field is not present when transforming a given value,
3441 #
3442 # plaintext would be used as is for encryption.
3443 #
3444 # Note that case (1) is expected when an `InfoTypeTransformation` is
3445 # applied to both structured and non-structured `ContentItem`s.
3446 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
3447 },
3448 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
3449 # a key encryption key (KEK) stored by KMS).
3450 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3451 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3452 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003453 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3454 # leaking the key. Choose another type of key if possible.
3455 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3456 },
3457 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3458 # It will be discarded after the request finishes.
3459 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3460 # This is an arbitrary string used to differentiate different keys.
3461 # A unique key is generated per name: two separate `TransientCryptoKey`
3462 # protos share the same generated key if their names are the same.
3463 # When the data crypto key is generated, this name is not used in any way
3464 # (repeating the api call will result in a different key being generated).
3465 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003466 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3467 # The wrapped key must be a 128/192/256 bit key.
3468 # Authorization requires the following IAM permissions when sending a request
3469 # to perform a crypto transformation using a kms-wrapped crypto key:
3470 # dlp.kms.encrypt
3471 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3472 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3473 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003474 },
3475 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003476 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
3477 # replacement values are dynamically provided by the user for custom behavior,
3478 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
3479 # This can be used on
3480 # data of type: number, long, string, timestamp.
3481 # If the bound `Value` type differs from the type of data being transformed, we
3482 # will first attempt converting the type of the data to be transformed to match
3483 # the type of the bound before comparing.
3484 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
3485 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
3486 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003487 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
3488 # the default behavior will be to hyphenate the min-max range.
3489 # Note that for the purposes of inspection or transformation, the number
3490 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3491 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3492 # 123456789, the number of bytes would be counted as 9, even though an
3493 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003494 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3495 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3496 # and time zone are either specified elsewhere or are not significant. The date
3497 # is relative to the Proleptic Gregorian Calendar. This can represent:
3498 #
3499 # * A full date, with non-zero year, month and day values
3500 # * A month and day value, with a zero year, e.g. an anniversary
3501 # * A year on its own, with zero month and day values
3502 # * A year and month value, with a zero day, e.g. a credit card expiration date
3503 #
3504 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3505 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3506 # a year.
3507 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3508 # month and day.
3509 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3510 # if specifying a year by itself or a year and month where the day is not
3511 # significant.
3512 },
3513 &quot;stringValue&quot;: &quot;A String&quot;, # string
3514 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3515 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3516 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3517 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003518 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3519 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3520 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003521 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3522 # allow the value 60 if it allows leap-seconds.
3523 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003524 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003525 &quot;booleanValue&quot;: True or False, # boolean
3526 &quot;floatValue&quot;: 3.14, # float
3527 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
3528 },
3529 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
3530 # used.
3531 # Note that for the purposes of inspection or transformation, the number
3532 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3533 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3534 # 123456789, the number of bytes would be counted as 9, even though an
3535 # int64 only holds up to 8 bytes of data.
3536 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3537 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3538 # and time zone are either specified elsewhere or are not significant. The date
3539 # is relative to the Proleptic Gregorian Calendar. This can represent:
3540 #
3541 # * A full date, with non-zero year, month and day values
3542 # * A month and day value, with a zero year, e.g. an anniversary
3543 # * A year on its own, with zero month and day values
3544 # * A year and month value, with a zero day, e.g. a credit card expiration date
3545 #
3546 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3547 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3548 # a year.
3549 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3550 # month and day.
3551 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3552 # if specifying a year by itself or a year and month where the day is not
3553 # significant.
3554 },
3555 &quot;stringValue&quot;: &quot;A String&quot;, # string
3556 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3557 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3558 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3559 # types are google.type.Date and `google.protobuf.Timestamp`.
3560 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3561 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3562 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3563 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3564 # allow the value 60 if it allows leap-seconds.
3565 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3566 },
3567 &quot;booleanValue&quot;: True or False, # boolean
3568 &quot;floatValue&quot;: 3.14, # float
3569 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
3570 },
3571 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
3572 # Note that for the purposes of inspection or transformation, the number
3573 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3574 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3575 # 123456789, the number of bytes would be counted as 9, even though an
3576 # int64 only holds up to 8 bytes of data.
3577 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3578 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3579 # and time zone are either specified elsewhere or are not significant. The date
3580 # is relative to the Proleptic Gregorian Calendar. This can represent:
3581 #
3582 # * A full date, with non-zero year, month and day values
3583 # * A month and day value, with a zero year, e.g. an anniversary
3584 # * A year on its own, with zero month and day values
3585 # * A year and month value, with a zero day, e.g. a credit card expiration date
3586 #
3587 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3588 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3589 # a year.
3590 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3591 # month and day.
3592 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3593 # if specifying a year by itself or a year and month where the day is not
3594 # significant.
3595 },
3596 &quot;stringValue&quot;: &quot;A String&quot;, # string
3597 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3598 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3599 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3600 # types are google.type.Date and `google.protobuf.Timestamp`.
3601 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3602 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3603 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3604 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3605 # allow the value 60 if it allows leap-seconds.
3606 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3607 },
3608 &quot;booleanValue&quot;: True or False, # boolean
3609 &quot;floatValue&quot;: 3.14, # float
3610 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003611 },
3612 },
3613 ],
3614 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003615 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
3616 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
3617 # output would be &#x27;My phone number is &#x27;.
3618 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003619 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
3620 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
3621 # Note that for the purposes of inspection or transformation, the number
3622 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3623 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3624 # 123456789, the number of bytes would be counted as 9, even though an
3625 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003626 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3627 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3628 # and time zone are either specified elsewhere or are not significant. The date
3629 # is relative to the Proleptic Gregorian Calendar. This can represent:
3630 #
3631 # * A full date, with non-zero year, month and day values
3632 # * A month and day value, with a zero year, e.g. an anniversary
3633 # * A year on its own, with zero month and day values
3634 # * A year and month value, with a zero day, e.g. a credit card expiration date
3635 #
3636 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3637 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3638 # a year.
3639 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3640 # month and day.
3641 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3642 # if specifying a year by itself or a year and month where the day is not
3643 # significant.
3644 },
3645 &quot;stringValue&quot;: &quot;A String&quot;, # string
3646 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3647 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3648 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3649 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003650 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3651 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3652 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003653 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3654 # allow the value 60 if it allows leap-seconds.
3655 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003656 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003657 &quot;booleanValue&quot;: True or False, # boolean
3658 &quot;floatValue&quot;: 3.14, # float
3659 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003660 },
3661 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003662 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
3663 # Bucketing transformation can provide all of this functionality,
3664 # but requires more configuration. This message is provided as a convenience to
3665 # the user for simple bucketing strategies.
3666 #
3667 # The transformed value will be a hyphenated string of
3668 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
3669 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
3670 #
3671 # This can be used on data of type: double, long.
3672 #
3673 # If the bound Value type differs from the type of data
3674 # being transformed, we will first attempt converting the type of the data to
3675 # be transformed to match the type of the bound before comparing.
3676 #
3677 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07003678 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
3679 # grouped together into a single bucket; for example if `upper_bound` = 89,
3680 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
3681 # Note that for the purposes of inspection or transformation, the number
3682 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3683 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3684 # 123456789, the number of bytes would be counted as 9, even though an
3685 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003686 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3687 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3688 # and time zone are either specified elsewhere or are not significant. The date
3689 # is relative to the Proleptic Gregorian Calendar. This can represent:
3690 #
3691 # * A full date, with non-zero year, month and day values
3692 # * A month and day value, with a zero year, e.g. an anniversary
3693 # * A year on its own, with zero month and day values
3694 # * A year and month value, with a zero day, e.g. a credit card expiration date
3695 #
3696 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3697 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3698 # a year.
3699 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3700 # month and day.
3701 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3702 # if specifying a year by itself or a year and month where the day is not
3703 # significant.
3704 },
3705 &quot;stringValue&quot;: &quot;A String&quot;, # string
3706 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3707 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3708 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3709 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003710 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3711 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3712 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003713 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3714 # allow the value 60 if it allows leap-seconds.
3715 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003716 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003717 &quot;booleanValue&quot;: True or False, # boolean
3718 &quot;floatValue&quot;: 3.14, # float
3719 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003720 },
3721 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
3722 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
3723 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
3724 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003725 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
3726 # grouped together into a single bucket; for example if `lower_bound` = 10,
3727 # then all values less than 10 are replaced with the value &quot;-10&quot;.
3728 # Note that for the purposes of inspection or transformation, the number
3729 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3730 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3731 # 123456789, the number of bytes would be counted as 9, even though an
3732 # int64 only holds up to 8 bytes of data.
3733 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3734 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3735 # and time zone are either specified elsewhere or are not significant. The date
3736 # is relative to the Proleptic Gregorian Calendar. This can represent:
3737 #
3738 # * A full date, with non-zero year, month and day values
3739 # * A month and day value, with a zero year, e.g. an anniversary
3740 # * A year on its own, with zero month and day values
3741 # * A year and month value, with a zero day, e.g. a credit card expiration date
3742 #
3743 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3744 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3745 # a year.
3746 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3747 # month and day.
3748 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3749 # if specifying a year by itself or a year and month where the day is not
3750 # significant.
3751 },
3752 &quot;stringValue&quot;: &quot;A String&quot;, # string
3753 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3754 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3755 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3756 # types are google.type.Date and `google.protobuf.Timestamp`.
3757 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3758 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3759 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3760 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3761 # allow the value 60 if it allows leap-seconds.
3762 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3763 },
3764 &quot;booleanValue&quot;: True or False, # boolean
3765 &quot;floatValue&quot;: 3.14, # float
3766 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
3767 },
3768 },
3769 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
3770 # fixed character. Masking can start from the beginning or end of the string.
3771 # This can be used on data of any type (numbers, longs, and so on) and when
3772 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
3773 # type. (This allows you to take a long like 123 and modify it to a string like
3774 # **3.
3775 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
3776 # characters. For example, if the input string is `555-555-5555` and you
3777 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
3778 # returns `***-**5-5555`.
3779 { # Characters to skip when doing deidentification of a value. These will be left
3780 # alone and skipped.
3781 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
3782 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
3783 # punctuation.
3784 },
3785 ],
3786 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
3787 # masked. Skipped characters do not count towards this tally.
3788 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
3789 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
3790 # code or credit card number. This string must have a length of 1. If not
3791 # supplied, this value defaults to `*` for strings, and `0` for digits.
3792 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
3793 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
3794 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
3795 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
3796 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003797 },
3798 },
3799 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # Only apply the transformation if the condition evaluates to true for the
3800 # given `RecordCondition`. The conditions are allowed to reference fields
3801 # that are not used in the actual transformation.
3802 #
3803 # Example Use Cases:
3804 #
3805 # - Apply a different bucket transformation to an age column if the zip code
3806 # column for the same record is within a specific range.
3807 # - Redact a field if the date of birth field is greater than 85.
3808 # a field.
3809 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
3810 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
3811 # only supported value is `AND`.
3812 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
3813 &quot;conditions&quot;: [ # A collection of conditions.
3814 { # The field type of `value` and `field` do not need to match to be
3815 # considered equal, but not all comparisons are possible.
3816 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
3817 # but all other comparisons are invalid with incompatible types.
3818 # A `value` of type:
3819 #
3820 # - `string` can be compared against all other types
3821 # - `boolean` can only be compared against other booleans
3822 # - `integer` can be compared against doubles or a string if the string value
3823 # can be parsed as an integer.
3824 # - `double` can be compared against integers or a string if the string can
3825 # be parsed as a double.
3826 # - `Timestamp` can be compared against strings in RFC 3339 date string
3827 # format.
3828 # - `TimeOfDay` can be compared against timestamps and strings in the format
3829 # of &#x27;HH:mm:ss&#x27;.
3830 #
3831 # If we fail to compare do to type mismatch, a warning will be given and
3832 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07003833 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
3834 # Note that for the purposes of inspection or transformation, the number
3835 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
3836 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
3837 # 123456789, the number of bytes would be counted as 9, even though an
3838 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003839 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
3840 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
3841 # and time zone are either specified elsewhere or are not significant. The date
3842 # is relative to the Proleptic Gregorian Calendar. This can represent:
3843 #
3844 # * A full date, with non-zero year, month and day values
3845 # * A month and day value, with a zero year, e.g. an anniversary
3846 # * A year on its own, with zero month and day values
3847 # * A year and month value, with a zero day, e.g. a credit card expiration date
3848 #
3849 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3850 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3851 # a year.
3852 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3853 # month and day.
3854 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3855 # if specifying a year by itself or a year and month where the day is not
3856 # significant.
3857 },
3858 &quot;stringValue&quot;: &quot;A String&quot;, # string
3859 &quot;integerValue&quot;: &quot;A String&quot;, # integer
3860 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
3861 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3862 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003863 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3864 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3865 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003866 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3867 # allow the value 60 if it allows leap-seconds.
3868 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07003869 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003870 &quot;booleanValue&quot;: True or False, # boolean
3871 &quot;floatValue&quot;: 3.14, # float
3872 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07003873 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003874 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
3875 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
3876 },
3877 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003878 },
3879 ],
3880 },
3881 },
3882 },
3883 },
3884 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003885 &quot;transformation&quot;: { # A rule for transforming a value. # The specific transformation these stats apply to.
3886 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
3887 # portion of the value.
3888 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
3889 },
3890 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
3891 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
3892 # to learn more.
3893 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
3894 # If set, must also set cryptoKey. If set, shift will be consistent for the
3895 # given context.
3896 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
3897 },
3898 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
3899 # range (inclusive ends). Negative means shift to earlier in time. Must not
3900 # be more than 365250 days (1000 years) each direction.
3901 #
3902 # For example, 3 means shift date to at most 3 days into the future.
3903 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
3904 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
3905 # results in the same shift for the same context and crypto_key. If
3906 # set, must also set context. Can only be applied to table items.
3907 # a key encryption key (KEK) stored by KMS).
3908 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3909 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3910 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003911 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3912 # leaking the key. Choose another type of key if possible.
3913 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3914 },
3915 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3916 # It will be discarded after the request finishes.
3917 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3918 # This is an arbitrary string used to differentiate different keys.
3919 # A unique key is generated per name: two separate `TransientCryptoKey`
3920 # protos share the same generated key if their names are the same.
3921 # When the data crypto key is generated, this name is not used in any way
3922 # (repeating the api call will result in a different key being generated).
3923 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003924 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3925 # The wrapped key must be a 128/192/256 bit key.
3926 # Authorization requires the following IAM permissions when sending a request
3927 # to perform a crypto transformation using a kms-wrapped crypto key:
3928 # dlp.kms.encrypt
3929 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3930 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3931 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003932 },
3933 },
3934 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
3935 },
3936 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
3937 # Uses SHA-256.
3938 # The key size must be either 32 or 64 bytes.
3939 # Outputs a base64 encoded representation of the hashed output
3940 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
3941 # Currently, only string and integer values can be hashed.
3942 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
3943 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
3944 # a key encryption key (KEK) stored by KMS).
3945 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3946 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
3947 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07003948 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
3949 # leaking the key. Choose another type of key if possible.
3950 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
3951 },
3952 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
3953 # It will be discarded after the request finishes.
3954 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
3955 # This is an arbitrary string used to differentiate different keys.
3956 # A unique key is generated per name: two separate `TransientCryptoKey`
3957 # protos share the same generated key if their names are the same.
3958 # When the data crypto key is generated, this name is not used in any way
3959 # (repeating the api call will result in a different key being generated).
3960 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003961 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
3962 # The wrapped key must be a 128/192/256 bit key.
3963 # Authorization requires the following IAM permissions when sending a request
3964 # to perform a crypto transformation using a kms-wrapped crypto key:
3965 # dlp.kms.encrypt
3966 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
3967 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
3968 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003969 },
3970 },
3971 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
3972 # (FPE) with the FFX mode of operation; however when used in the
3973 # `ReidentifyContent` API method, it serves the opposite function by reversing
3974 # the surrogate back into the original identifier. The identifier must be
3975 # encoded as ASCII. For a given crypto key and context, the same identifier
3976 # will be replaced with the same surrogate. Identifiers must be at least two
3977 # characters long. In the case that the identifier is the empty string, it will
3978 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
3979 # more.
3980 #
3981 # Note: We recommend using CryptoDeterministicConfig for all use cases which
3982 # do not require preserving the input alphabet space and size, plus warrant
3983 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07003984 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
3985 # This annotation will be applied to the surrogate by prefixing it with
3986 # the name of the custom infoType followed by the number of
3987 # characters comprising the surrogate. The following scheme defines the
3988 # format: info_type_name(surrogate_character_count):surrogate
3989 #
3990 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
3991 # the surrogate is &#x27;abc&#x27;, the full replacement value
3992 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
3993 #
3994 # This annotation identifies the surrogate when inspecting content using the
3995 # custom infoType
3996 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
3997 # This facilitates reversal of the surrogate when it occurs in free text.
3998 #
3999 # In order for inspection to work properly, the name of this infoType must
4000 # not occur naturally anywhere in your data; otherwise, inspection may
4001 # find a surrogate that does not correspond to an actual identifier.
4002 # Therefore, choose your custom infoType name carefully after considering
4003 # what your data looks like. One way to select a name that has a high chance
4004 # of yielding reliable detection is to include one or more unicode characters
4005 # that are highly improbable to exist in your data.
4006 # For example, assuming your data is entered from a regular ASCII keyboard,
4007 # the symbol with the hex code point 29DD might be used like so:
4008 # ⧝MY_TOKEN_TYPE
4009 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4010 # creating a CustomInfoType, or one of the names listed
4011 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4012 # a built-in type. InfoType names should conform to the pattern
4013 # `[a-zA-Z0-9_]{1,64}`.
4014 },
4015 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
4016 # identifier in two different contexts won&#x27;t be given the same surrogate. If
4017 # the context is not set, a default tweak will be used.
4018 #
4019 # If the context is set but:
4020 #
4021 # 1. there is no record present when transforming a given value or
4022 # 1. the field is not present when transforming a given value,
4023 #
4024 # a default tweak will be used.
4025 #
4026 # Note that case (1) is expected when an `InfoTypeTransformation` is
4027 # applied to both structured and non-structured `ContentItem`s.
4028 # Currently, the referenced field may be of value type integer or string.
4029 #
4030 # The tweak is constructed as a sequence of bytes in big endian byte order
4031 # such that:
4032 #
4033 # - a 64 bit integer is encoded followed by a single byte of value 1
4034 # - a string is encoded in UTF-8 format followed by a single byte of value 2
4035 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
4036 },
4037 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
4038 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
4039 # a key encryption key (KEK) stored by KMS).
4040 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
4041 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
4042 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07004043 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
4044 # leaking the key. Choose another type of key if possible.
4045 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
4046 },
4047 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
4048 # It will be discarded after the request finishes.
4049 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
4050 # This is an arbitrary string used to differentiate different keys.
4051 # A unique key is generated per name: two separate `TransientCryptoKey`
4052 # protos share the same generated key if their names are the same.
4053 # When the data crypto key is generated, this name is not used in any way
4054 # (repeating the api call will result in a different key being generated).
4055 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004056 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
4057 # The wrapped key must be a 128/192/256 bit key.
4058 # Authorization requires the following IAM permissions when sending a request
4059 # to perform a crypto transformation using a kms-wrapped crypto key:
4060 # dlp.kms.encrypt
4061 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
4062 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
4063 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004064 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004065 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
4066 # that the FFX mode natively supports. This happens before/after
4067 # encryption/decryption.
4068 # Each character listed must appear only once.
4069 # Number of characters must be in the range [2, 95].
4070 # This must be encoded as ASCII.
4071 # The order of characters does not matter.
4072 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07004073 },
4074 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
4075 # input. Outputs a base64 encoded representation of the encrypted output.
4076 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
4077 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
4078 # This annotation will be applied to the surrogate by prefixing it with
4079 # the name of the custom info type followed by the number of
4080 # characters comprising the surrogate. The following scheme defines the
4081 # format: {info type name}({surrogate character count}):{surrogate}
4082 #
4083 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
4084 # the surrogate is &#x27;abc&#x27;, the full replacement value
4085 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
4086 #
4087 # This annotation identifies the surrogate when inspecting content using the
4088 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
4089 # surrogate when it occurs in free text.
4090 #
4091 # Note: For record transformations where the entire cell in a table is being
4092 # transformed, surrogates are not mandatory. Surrogates are used to denote
4093 # the location of the token and are necessary for re-identification in free
4094 # form text.
4095 #
4096 # In order for inspection to work properly, the name of this info type must
4097 # not occur naturally anywhere in your data; otherwise, inspection may either
4098 #
4099 # - reverse a surrogate that does not correspond to an actual identifier
4100 # - be unable to parse the surrogate and result in an error
4101 #
4102 # Therefore, choose your custom info type name carefully after considering
4103 # what your data looks like. One way to select a name that has a high chance
4104 # of yielding reliable detection is to include one or more unicode characters
4105 # that are highly improbable to exist in your data.
4106 # For example, assuming your data is entered from a regular ASCII keyboard,
4107 # the symbol with the hex code point 29DD might be used like so:
4108 # ⧝MY_TOKEN_TYPE.
4109 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4110 # creating a CustomInfoType, or one of the names listed
4111 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4112 # a built-in type. InfoType names should conform to the pattern
4113 # `[a-zA-Z0-9_]{1,64}`.
4114 },
4115 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
4116 # referential integrity such that the same identifier in two different
4117 # contexts will be given a distinct surrogate. The context is appended to
4118 # plaintext value being encrypted. On decryption the provided context is
4119 # validated against the value used during encryption. If a context was
4120 # provided during encryption, same context must be provided during decryption
4121 # as well.
4122 #
4123 # If the context is not set, plaintext would be used as is for encryption.
4124 # If the context is set but:
4125 #
4126 # 1. there is no record present when transforming a given value or
4127 # 2. the field is not present when transforming a given value,
4128 #
4129 # plaintext would be used as is for encryption.
4130 #
4131 # Note that case (1) is expected when an `InfoTypeTransformation` is
4132 # applied to both structured and non-structured `ContentItem`s.
4133 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
4134 },
4135 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
4136 # a key encryption key (KEK) stored by KMS).
4137 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
4138 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
4139 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07004140 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
4141 # leaking the key. Choose another type of key if possible.
4142 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
4143 },
4144 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
4145 # It will be discarded after the request finishes.
4146 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
4147 # This is an arbitrary string used to differentiate different keys.
4148 # A unique key is generated per name: two separate `TransientCryptoKey`
4149 # protos share the same generated key if their names are the same.
4150 # When the data crypto key is generated, this name is not used in any way
4151 # (repeating the api call will result in a different key being generated).
4152 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004153 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
4154 # The wrapped key must be a 128/192/256 bit key.
4155 # Authorization requires the following IAM permissions when sending a request
4156 # to perform a crypto transformation using a kms-wrapped crypto key:
4157 # dlp.kms.encrypt
4158 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
4159 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
4160 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004161 },
4162 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004163 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
4164 # replacement values are dynamically provided by the user for custom behavior,
4165 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
4166 # This can be used on
4167 # data of type: number, long, string, timestamp.
4168 # If the bound `Value` type differs from the type of data being transformed, we
4169 # will first attempt converting the type of the data to be transformed to match
4170 # the type of the bound before comparing.
4171 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
4172 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
4173 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07004174 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
4175 # the default behavior will be to hyphenate the min-max range.
4176 # Note that for the purposes of inspection or transformation, the number
4177 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4178 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4179 # 123456789, the number of bytes would be counted as 9, even though an
4180 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004181 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4182 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4183 # and time zone are either specified elsewhere or are not significant. The date
4184 # is relative to the Proleptic Gregorian Calendar. This can represent:
4185 #
4186 # * A full date, with non-zero year, month and day values
4187 # * A month and day value, with a zero year, e.g. an anniversary
4188 # * A year on its own, with zero month and day values
4189 # * A year and month value, with a zero day, e.g. a credit card expiration date
4190 #
4191 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4192 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4193 # a year.
4194 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4195 # month and day.
4196 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4197 # if specifying a year by itself or a year and month where the day is not
4198 # significant.
4199 },
4200 &quot;stringValue&quot;: &quot;A String&quot;, # string
4201 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4202 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4203 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4204 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004205 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4206 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4207 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004208 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4209 # allow the value 60 if it allows leap-seconds.
4210 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07004211 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004212 &quot;booleanValue&quot;: True or False, # boolean
4213 &quot;floatValue&quot;: 3.14, # float
4214 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
4215 },
4216 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
4217 # used.
4218 # Note that for the purposes of inspection or transformation, the number
4219 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4220 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4221 # 123456789, the number of bytes would be counted as 9, even though an
4222 # int64 only holds up to 8 bytes of data.
4223 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4224 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4225 # and time zone are either specified elsewhere or are not significant. The date
4226 # is relative to the Proleptic Gregorian Calendar. This can represent:
4227 #
4228 # * A full date, with non-zero year, month and day values
4229 # * A month and day value, with a zero year, e.g. an anniversary
4230 # * A year on its own, with zero month and day values
4231 # * A year and month value, with a zero day, e.g. a credit card expiration date
4232 #
4233 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4234 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4235 # a year.
4236 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4237 # month and day.
4238 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4239 # if specifying a year by itself or a year and month where the day is not
4240 # significant.
4241 },
4242 &quot;stringValue&quot;: &quot;A String&quot;, # string
4243 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4244 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4245 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4246 # types are google.type.Date and `google.protobuf.Timestamp`.
4247 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4248 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4249 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4250 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4251 # allow the value 60 if it allows leap-seconds.
4252 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4253 },
4254 &quot;booleanValue&quot;: True or False, # boolean
4255 &quot;floatValue&quot;: 3.14, # float
4256 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
4257 },
4258 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
4259 # Note that for the purposes of inspection or transformation, the number
4260 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4261 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4262 # 123456789, the number of bytes would be counted as 9, even though an
4263 # int64 only holds up to 8 bytes of data.
4264 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4265 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4266 # and time zone are either specified elsewhere or are not significant. The date
4267 # is relative to the Proleptic Gregorian Calendar. This can represent:
4268 #
4269 # * A full date, with non-zero year, month and day values
4270 # * A month and day value, with a zero year, e.g. an anniversary
4271 # * A year on its own, with zero month and day values
4272 # * A year and month value, with a zero day, e.g. a credit card expiration date
4273 #
4274 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4275 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4276 # a year.
4277 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4278 # month and day.
4279 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4280 # if specifying a year by itself or a year and month where the day is not
4281 # significant.
4282 },
4283 &quot;stringValue&quot;: &quot;A String&quot;, # string
4284 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4285 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4286 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4287 # types are google.type.Date and `google.protobuf.Timestamp`.
4288 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4289 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4290 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4291 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4292 # allow the value 60 if it allows leap-seconds.
4293 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4294 },
4295 &quot;booleanValue&quot;: True or False, # boolean
4296 &quot;floatValue&quot;: 3.14, # float
4297 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07004298 },
4299 },
4300 ],
4301 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004302 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
4303 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
4304 # output would be &#x27;My phone number is &#x27;.
4305 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004306 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
4307 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
4308 # Note that for the purposes of inspection or transformation, the number
4309 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4310 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4311 # 123456789, the number of bytes would be counted as 9, even though an
4312 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004313 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4314 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4315 # and time zone are either specified elsewhere or are not significant. The date
4316 # is relative to the Proleptic Gregorian Calendar. This can represent:
4317 #
4318 # * A full date, with non-zero year, month and day values
4319 # * A month and day value, with a zero year, e.g. an anniversary
4320 # * A year on its own, with zero month and day values
4321 # * A year and month value, with a zero day, e.g. a credit card expiration date
4322 #
4323 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4324 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4325 # a year.
4326 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4327 # month and day.
4328 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4329 # if specifying a year by itself or a year and month where the day is not
4330 # significant.
4331 },
4332 &quot;stringValue&quot;: &quot;A String&quot;, # string
4333 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4334 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4335 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4336 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004337 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4338 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4339 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004340 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4341 # allow the value 60 if it allows leap-seconds.
4342 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07004343 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004344 &quot;booleanValue&quot;: True or False, # boolean
4345 &quot;floatValue&quot;: 3.14, # float
4346 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07004347 },
4348 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004349 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
4350 # Bucketing transformation can provide all of this functionality,
4351 # but requires more configuration. This message is provided as a convenience to
4352 # the user for simple bucketing strategies.
4353 #
4354 # The transformed value will be a hyphenated string of
4355 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
4356 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
4357 #
4358 # This can be used on data of type: double, long.
4359 #
4360 # If the bound Value type differs from the type of data
4361 # being transformed, we will first attempt converting the type of the data to
4362 # be transformed to match the type of the bound before comparing.
4363 #
4364 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07004365 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
4366 # grouped together into a single bucket; for example if `upper_bound` = 89,
4367 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
4368 # Note that for the purposes of inspection or transformation, the number
4369 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4370 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4371 # 123456789, the number of bytes would be counted as 9, even though an
4372 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004373 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4374 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4375 # and time zone are either specified elsewhere or are not significant. The date
4376 # is relative to the Proleptic Gregorian Calendar. This can represent:
4377 #
4378 # * A full date, with non-zero year, month and day values
4379 # * A month and day value, with a zero year, e.g. an anniversary
4380 # * A year on its own, with zero month and day values
4381 # * A year and month value, with a zero day, e.g. a credit card expiration date
4382 #
4383 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4384 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4385 # a year.
4386 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4387 # month and day.
4388 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4389 # if specifying a year by itself or a year and month where the day is not
4390 # significant.
4391 },
4392 &quot;stringValue&quot;: &quot;A String&quot;, # string
4393 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4394 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4395 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4396 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004397 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4398 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4399 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004400 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4401 # allow the value 60 if it allows leap-seconds.
4402 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07004403 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004404 &quot;booleanValue&quot;: True or False, # boolean
4405 &quot;floatValue&quot;: 3.14, # float
4406 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07004407 },
4408 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
4409 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
4410 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
4411 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004412 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
4413 # grouped together into a single bucket; for example if `lower_bound` = 10,
4414 # then all values less than 10 are replaced with the value &quot;-10&quot;.
4415 # Note that for the purposes of inspection or transformation, the number
4416 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4417 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4418 # 123456789, the number of bytes would be counted as 9, even though an
4419 # int64 only holds up to 8 bytes of data.
4420 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4421 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4422 # and time zone are either specified elsewhere or are not significant. The date
4423 # is relative to the Proleptic Gregorian Calendar. This can represent:
4424 #
4425 # * A full date, with non-zero year, month and day values
4426 # * A month and day value, with a zero year, e.g. an anniversary
4427 # * A year on its own, with zero month and day values
4428 # * A year and month value, with a zero day, e.g. a credit card expiration date
4429 #
4430 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4431 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4432 # a year.
4433 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4434 # month and day.
4435 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4436 # if specifying a year by itself or a year and month where the day is not
4437 # significant.
4438 },
4439 &quot;stringValue&quot;: &quot;A String&quot;, # string
4440 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4441 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4442 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4443 # types are google.type.Date and `google.protobuf.Timestamp`.
4444 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4445 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4446 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4447 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4448 # allow the value 60 if it allows leap-seconds.
4449 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4450 },
4451 &quot;booleanValue&quot;: True or False, # boolean
4452 &quot;floatValue&quot;: 3.14, # float
4453 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
4454 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004455 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004456 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
4457 # fixed character. Masking can start from the beginning or end of the string.
4458 # This can be used on data of any type (numbers, longs, and so on) and when
4459 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
4460 # type. (This allows you to take a long like 123 and modify it to a string like
4461 # **3.
4462 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
4463 # characters. For example, if the input string is `555-555-5555` and you
4464 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
4465 # returns `***-**5-5555`.
4466 { # Characters to skip when doing deidentification of a value. These will be left
4467 # alone and skipped.
4468 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
4469 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
4470 # punctuation.
4471 },
4472 ],
4473 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
4474 # masked. Skipped characters do not count towards this tally.
4475 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
4476 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
4477 # code or credit card number. This string must have a length of 1. If not
4478 # supplied, this value defaults to `*` for strings, and `0` for digits.
4479 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
4480 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
4481 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
4482 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
4483 # is `true`, then the string `12345` is masked as `12***`.
4484 },
4485 },
4486 &quot;field&quot;: { # General identifier of a data field in a storage service. # Set if the transformation was limited to a specific FieldId.
4487 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004488 },
4489 &quot;transformedBytes&quot;: &quot;A String&quot;, # Total size in bytes that were transformed in some way.
4490 &quot;recordSuppress&quot;: { # Configuration to suppress records whose suppression conditions evaluate to # The specific suppression option these stats apply to.
4491 # true.
4492 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # A condition that when it evaluates to true will result in the record being
4493 # evaluated to be suppressed from the transformed content.
4494 # a field.
4495 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
4496 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
4497 # only supported value is `AND`.
4498 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
4499 &quot;conditions&quot;: [ # A collection of conditions.
4500 { # The field type of `value` and `field` do not need to match to be
4501 # considered equal, but not all comparisons are possible.
4502 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
4503 # but all other comparisons are invalid with incompatible types.
4504 # A `value` of type:
4505 #
4506 # - `string` can be compared against all other types
4507 # - `boolean` can only be compared against other booleans
4508 # - `integer` can be compared against doubles or a string if the string value
4509 # can be parsed as an integer.
4510 # - `double` can be compared against integers or a string if the string can
4511 # be parsed as a double.
4512 # - `Timestamp` can be compared against strings in RFC 3339 date string
4513 # format.
4514 # - `TimeOfDay` can be compared against timestamps and strings in the format
4515 # of &#x27;HH:mm:ss&#x27;.
4516 #
4517 # If we fail to compare do to type mismatch, a warning will be given and
4518 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07004519 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
4520 # Note that for the purposes of inspection or transformation, the number
4521 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4522 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4523 # 123456789, the number of bytes would be counted as 9, even though an
4524 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004525 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4526 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4527 # and time zone are either specified elsewhere or are not significant. The date
4528 # is relative to the Proleptic Gregorian Calendar. This can represent:
4529 #
4530 # * A full date, with non-zero year, month and day values
4531 # * A month and day value, with a zero year, e.g. an anniversary
4532 # * A year on its own, with zero month and day values
4533 # * A year and month value, with a zero day, e.g. a credit card expiration date
4534 #
4535 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4536 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4537 # a year.
4538 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4539 # month and day.
4540 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4541 # if specifying a year by itself or a year and month where the day is not
4542 # significant.
4543 },
4544 &quot;stringValue&quot;: &quot;A String&quot;, # string
4545 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4546 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4547 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4548 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004549 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4550 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4551 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004552 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4553 # allow the value 60 if it allows leap-seconds.
4554 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07004555 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004556 &quot;booleanValue&quot;: True or False, # boolean
4557 &quot;floatValue&quot;: 3.14, # float
4558 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07004559 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004560 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
4561 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
4562 },
4563 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004564 },
4565 ],
4566 },
4567 },
4568 },
4569 },
4570 &quot;infoType&quot;: { # Type of information detected by the API. # Set if the transformation was limited to a specific InfoType.
4571 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4572 # creating a CustomInfoType, or one of the names listed
4573 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4574 # a built-in type. InfoType names should conform to the pattern
4575 # `[a-zA-Z0-9_]{1,64}`.
4576 },
4577 &quot;results&quot;: [ # Collection of all transformations that took place or had an error.
4578 { # A collection that informs the user the number of times a particular
4579 # `TransformationResultCode` and error details occurred.
Bu Sun Kim65020912020-05-20 12:08:20 -07004580 &quot;details&quot;: &quot;A String&quot;, # A place for warnings or errors to show up if a transformation didn&#x27;t
4581 # work as expected.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004582 &quot;code&quot;: &quot;A String&quot;, # Outcome of the transformation.
4583 &quot;count&quot;: &quot;A String&quot;, # Number of transformations counted by this result.
Bu Sun Kim65020912020-05-20 12:08:20 -07004584 },
4585 ],
4586 },
4587 ],
4588 &quot;transformedBytes&quot;: &quot;A String&quot;, # Total size in bytes that were transformed in some way.
4589 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004590 &quot;item&quot;: { # Container structure for the content to inspect. # The de-identified item.
4591 &quot;byteItem&quot;: { # Container for bytes to inspect or redact. # Content data to inspect or redact. Replaces `type` and `data`.
4592 &quot;data&quot;: &quot;A String&quot;, # Content data to inspect or redact.
4593 &quot;type&quot;: &quot;A String&quot;, # The type of data stored in the bytes string. Default will be TEXT_UTF8.
4594 },
4595 &quot;value&quot;: &quot;A String&quot;, # String data to inspect or redact.
4596 &quot;table&quot;: { # Structured content to inspect. Up to 50,000 `Value`s per request allowed. # Structured content for inspection. See
4597 # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
4598 # learn more.
4599 # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
4600 # learn more.
4601 &quot;rows&quot;: [ # Rows of the table.
4602 { # Values of the row.
4603 &quot;values&quot;: [ # Individual cells.
4604 { # Set of primitive values supported by the system.
4605 # Note that for the purposes of inspection or transformation, the number
4606 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4607 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4608 # 123456789, the number of bytes would be counted as 9, even though an
4609 # int64 only holds up to 8 bytes of data.
4610 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4611 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4612 # and time zone are either specified elsewhere or are not significant. The date
4613 # is relative to the Proleptic Gregorian Calendar. This can represent:
4614 #
4615 # * A full date, with non-zero year, month and day values
4616 # * A month and day value, with a zero year, e.g. an anniversary
4617 # * A year on its own, with zero month and day values
4618 # * A year and month value, with a zero day, e.g. a credit card expiration date
4619 #
4620 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4621 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4622 # a year.
4623 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4624 # month and day.
4625 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4626 # if specifying a year by itself or a year and month where the day is not
4627 # significant.
4628 },
4629 &quot;stringValue&quot;: &quot;A String&quot;, # string
4630 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4631 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4632 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4633 # types are google.type.Date and `google.protobuf.Timestamp`.
4634 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4635 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4636 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4637 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4638 # allow the value 60 if it allows leap-seconds.
4639 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4640 },
4641 &quot;booleanValue&quot;: True or False, # boolean
4642 &quot;floatValue&quot;: 3.14, # float
4643 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
4644 },
4645 ],
4646 },
4647 ],
4648 &quot;headers&quot;: [ # Headers of the table.
4649 { # General identifier of a data field in a storage service.
4650 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
4651 },
4652 ],
4653 },
4654 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004655 }</pre>
4656</div>
4657
4658<div class="method">
4659 <code class="details" id="inspect">inspect(parent, locationId, body=None, x__xgafv=None)</code>
4660 <pre>Finds potentially sensitive info in content.
4661This method has limits on input size, processing time, and output size.
4662
4663When no InfoTypes or CustomInfoTypes are specified in this request, the
4664system will automatically choose what detectors to run. By default this may
4665be all types, but may change over time as detectors are updated.
4666
4667For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
4668and https://cloud.google.com/dlp/docs/inspecting-text,
4669
4670Args:
4671 parent: string, The parent resource name, for example projects/my-project-id. (required)
4672 locationId: string, The geographic location to process content inspection. Reserved for future
4673extensions.
4674When inspecting images location is restricted to &#x27;global&#x27;, &#x27;us&#x27;, &#x27;asia&#x27;,
4675and &#x27;europe&#x27;. (required)
4676 body: object, The request body.
4677 The object takes the form of:
4678
4679{ # Request to search for potentially sensitive info in a ContentItem.
4680 &quot;item&quot;: { # Container structure for the content to inspect. # The item to inspect.
4681 &quot;byteItem&quot;: { # Container for bytes to inspect or redact. # Content data to inspect or redact. Replaces `type` and `data`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004682 &quot;data&quot;: &quot;A String&quot;, # Content data to inspect or redact.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004683 &quot;type&quot;: &quot;A String&quot;, # The type of data stored in the bytes string. Default will be TEXT_UTF8.
Bu Sun Kim65020912020-05-20 12:08:20 -07004684 },
4685 &quot;value&quot;: &quot;A String&quot;, # String data to inspect or redact.
4686 &quot;table&quot;: { # Structured content to inspect. Up to 50,000 `Value`s per request allowed. # Structured content for inspection. See
4687 # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
4688 # learn more.
4689 # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
4690 # learn more.
4691 &quot;rows&quot;: [ # Rows of the table.
4692 { # Values of the row.
4693 &quot;values&quot;: [ # Individual cells.
4694 { # Set of primitive values supported by the system.
4695 # Note that for the purposes of inspection or transformation, the number
4696 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
4697 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
4698 # 123456789, the number of bytes would be counted as 9, even though an
4699 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07004700 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
4701 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
4702 # and time zone are either specified elsewhere or are not significant. The date
4703 # is relative to the Proleptic Gregorian Calendar. This can represent:
4704 #
4705 # * A full date, with non-zero year, month and day values
4706 # * A month and day value, with a zero year, e.g. an anniversary
4707 # * A year on its own, with zero month and day values
4708 # * A year and month value, with a zero day, e.g. a credit card expiration date
4709 #
4710 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4711 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4712 # a year.
4713 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4714 # month and day.
4715 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4716 # if specifying a year by itself or a year and month where the day is not
4717 # significant.
4718 },
4719 &quot;stringValue&quot;: &quot;A String&quot;, # string
4720 &quot;integerValue&quot;: &quot;A String&quot;, # integer
4721 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
4722 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4723 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004724 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4725 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4726 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004727 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4728 # allow the value 60 if it allows leap-seconds.
4729 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07004730 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004731 &quot;booleanValue&quot;: True or False, # boolean
4732 &quot;floatValue&quot;: 3.14, # float
4733 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07004734 },
4735 ],
4736 },
4737 ],
4738 &quot;headers&quot;: [ # Headers of the table.
4739 { # General identifier of a data field in a storage service.
4740 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
4741 },
4742 ],
4743 },
4744 },
4745 &quot;inspectTemplateName&quot;: &quot;A String&quot;, # Template to use. Any configuration directly specified in
4746 # inspect_config will override those set in the template. Singular fields
4747 # that are set in this request will replace their corresponding fields in the
4748 # template. Repeated fields are appended. Singular sub-messages and groups
4749 # are recursively merged.
4750 &quot;inspectConfig&quot;: { # Configuration description of the scanning process. # Configuration for the inspector. What specified here will override
4751 # the template referenced by the inspect_template_name argument.
4752 # When used with redactContent only info_types and min_likelihood are currently
4753 # used.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004754 &quot;minLikelihood&quot;: &quot;A String&quot;, # Only returns findings equal or above this threshold. The default is
4755 # POSSIBLE.
4756 # See https://cloud.google.com/dlp/docs/likelihood to learn more.
4757 &quot;contentOptions&quot;: [ # List of options defining data content to scan.
4758 # If empty, text, images, and other content will be included.
4759 &quot;A String&quot;,
4760 ],
4761 &quot;infoTypes&quot;: [ # Restricts what info_types to look for. The values must correspond to
4762 # InfoType values returned by ListInfoTypes or listed at
4763 # https://cloud.google.com/dlp/docs/infotypes-reference.
4764 #
4765 # When no InfoTypes or CustomInfoTypes are specified in a request, the
4766 # system may automatically choose what detectors to run. By default this may
4767 # be all types, but may change over time as detectors are updated.
4768 #
4769 # If you need precise control and predictability as to what detectors are
4770 # run you should specify specific InfoTypes listed in the reference,
4771 # otherwise a default list will be used, which may change over time.
4772 { # Type of information detected by the API.
4773 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4774 # creating a CustomInfoType, or one of the names listed
4775 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4776 # a built-in type. InfoType names should conform to the pattern
4777 # `[a-zA-Z0-9_]{1,64}`.
4778 },
4779 ],
4780 &quot;excludeInfoTypes&quot;: True or False, # When true, excludes type information of the findings.
4781 &quot;customInfoTypes&quot;: [ # CustomInfoTypes provided by the user. See
4782 # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
4783 { # Custom information type provided by the user. Used to find domain-specific
4784 # sensitive information configurable to the data in question.
4785 &quot;surrogateType&quot;: { # Message for detecting output from deidentification transformations # Message for detecting output from deidentification transformations that
4786 # support reversing.
4787 # such as
4788 # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
4789 # These types of transformations are
4790 # those that perform pseudonymization, thereby producing a &quot;surrogate&quot; as
4791 # output. This should be used in conjunction with a field on the
4792 # transformation such as `surrogate_info_type`. This CustomInfoType does
4793 # not support the use of `detection_rules`.
4794 },
4795 &quot;likelihood&quot;: &quot;A String&quot;, # Likelihood to return for this CustomInfoType. This base value can be
4796 # altered by a detection rule if the finding meets the criteria specified by
4797 # the rule. Defaults to `VERY_LIKELY` if not specified.
4798 &quot;infoType&quot;: { # Type of information detected by the API. # CustomInfoType can either be a new infoType, or an extension of built-in
4799 # infoType, when the name matches one of existing infoTypes and that infoType
4800 # is specified in `InspectContent.info_types` field. Specifying the latter
4801 # adds findings to the one detected by the system. If built-in info type is
4802 # not specified in `InspectContent.info_types` list then the name is treated
4803 # as a custom info type.
4804 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4805 # creating a CustomInfoType, or one of the names listed
4806 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4807 # a built-in type. InfoType names should conform to the pattern
4808 # `[a-zA-Z0-9_]{1,64}`.
4809 },
4810 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression based CustomInfoType.
4811 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
4812 # specified, the entire match is returned. No more than 3 may be included.
4813 42,
4814 ],
4815 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
4816 # (https://github.com/google/re2/wiki/Syntax) can be found under the
4817 # google/re2 repository on GitHub.
4818 },
4819 &quot;detectionRules&quot;: [ # Set of detection rules to apply to all findings of this CustomInfoType.
4820 # Rules are applied in order that they are specified. Not supported for the
4821 # `surrogate_type` CustomInfoType.
4822 { # Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
4823 # `CustomInfoType` to alter behavior under certain circumstances, depending
4824 # on the specific details of the rule. Not supported for the `surrogate_type`
4825 # custom infoType.
4826 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
4827 # proximity of hotwords.
4828 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
4829 # part of a detection rule.
4830 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
4831 # levels. For example, if a finding would be `POSSIBLE` without the
4832 # detection rule and `relative_likelihood` is 1, then it is upgraded to
4833 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
4834 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
4835 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
4836 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
4837 # a final likelihood of `LIKELY`.
4838 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
4839 },
4840 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
4841 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
4842 # specified, the entire match is returned. No more than 3 may be included.
4843 42,
4844 ],
4845 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
4846 # (https://github.com/google/re2/wiki/Syntax) can be found under the
4847 # google/re2 repository on GitHub.
4848 },
4849 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
4850 # The total length of the window cannot exceed 1000 characters. Note that
4851 # the finding itself will be included in the window, so that hotwords may
4852 # be used to match substrings of the finding itself. For example, the
4853 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
4854 # adjusted upwards if the area code is known to be the local area code of
4855 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
4856 # is the area code in question.
4857 # rule.
4858 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
4859 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
4860 },
4861 },
4862 },
4863 ],
4864 &quot;exclusionType&quot;: &quot;A String&quot;, # If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
4865 # to be returned. It still can be used for rules matching.
4866 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # A list of phrases to detect as a CustomInfoType.
4867 # be used to match sensitive information specific to the data, such as a list
4868 # of employee IDs or job titles.
4869 #
4870 # Dictionary words are case-insensitive and all characters other than letters
4871 # and digits in the unicode [Basic Multilingual
4872 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
4873 # will be replaced with whitespace when scanning for matches, so the
4874 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
4875 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
4876 # surrounding any match must be of a different type than the adjacent
4877 # characters within the word, so letters must be next to non-letters and
4878 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
4879 # match the first three letters of the text &quot;jen123&quot; but will return no
4880 # matches for &quot;jennifer&quot;.
4881 #
4882 # Dictionary words containing a large number of characters that are not
4883 # letters or digits may result in unexpected findings because such characters
4884 # are treated as whitespace. The
4885 # [limits](https://cloud.google.com/dlp/limits) page contains details about
4886 # the size limits of dictionaries. For dictionaries that do not fit within
4887 # these constraints, consider using `LargeCustomDictionaryConfig` in the
4888 # `StoredInfoType` API.
4889 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
4890 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
4891 # at least one phrase and every phrase must contain at least 2 characters
4892 # that are letters or digits. [required]
4893 &quot;A String&quot;,
4894 ],
4895 },
4896 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
4897 # is accepted.
4898 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
4899 # Example: gs://[BUCKET_NAME]/dictionary.txt
4900 },
4901 },
4902 &quot;storedType&quot;: { # A reference to a StoredInfoType to use with scanning. # Load an existing `StoredInfoType` resource for use in
4903 # `InspectDataSource`. Not currently supported in `InspectContent`.
4904 &quot;name&quot;: &quot;A String&quot;, # Resource name of the requested `StoredInfoType`, for example
4905 # `organizations/433245324/storedInfoTypes/432452342` or
4906 # `projects/project-id/storedInfoTypes/432452342`.
4907 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp indicating when the version of the `StoredInfoType` used for
4908 # inspection was created. Output-only field, populated by the system.
4909 },
4910 },
4911 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004912 &quot;includeQuote&quot;: True or False, # When true, a contextual quote from the data that triggered a finding is
4913 # included in the response; see Finding.quote.
4914 &quot;ruleSet&quot;: [ # Set of rules to apply to the findings for this InspectConfig.
4915 # Exclusion rules, contained in the set are executed in the end, other
4916 # rules are executed in the order they are specified for each info type.
4917 { # Rule set for modifying a set of infoTypes to alter behavior under certain
4918 # circumstances, depending on the specific details of the rules within the set.
4919 &quot;infoTypes&quot;: [ # List of infoTypes this rule set is applied to.
4920 { # Type of information detected by the API.
4921 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
4922 # creating a CustomInfoType, or one of the names listed
4923 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
4924 # a built-in type. InfoType names should conform to the pattern
4925 # `[a-zA-Z0-9_]{1,64}`.
4926 },
4927 ],
4928 &quot;rules&quot;: [ # Set of rules to be applied to infoTypes. The rules are applied in order.
4929 { # A single inspection rule to be applied to infoTypes, specified in
4930 # `InspectionRuleSet`.
4931 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
4932 # proximity of hotwords.
4933 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
4934 # part of a detection rule.
4935 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
4936 # levels. For example, if a finding would be `POSSIBLE` without the
4937 # detection rule and `relative_likelihood` is 1, then it is upgraded to
4938 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
4939 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
4940 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
4941 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
4942 # a final likelihood of `LIKELY`.
4943 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
4944 },
4945 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
4946 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
4947 # specified, the entire match is returned. No more than 3 may be included.
4948 42,
4949 ],
4950 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
4951 # (https://github.com/google/re2/wiki/Syntax) can be found under the
4952 # google/re2 repository on GitHub.
4953 },
4954 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
4955 # The total length of the window cannot exceed 1000 characters. Note that
4956 # the finding itself will be included in the window, so that hotwords may
4957 # be used to match substrings of the finding itself. For example, the
4958 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
4959 # adjusted upwards if the area code is known to be the local area code of
4960 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
4961 # is the area code in question.
4962 # rule.
4963 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
4964 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
4965 },
4966 },
4967 &quot;exclusionRule&quot;: { # The rule that specifies conditions when findings of infoTypes specified in # Exclusion rule.
4968 # `InspectionRuleSet` are removed from results.
4969 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # Dictionary which defines the rule.
4970 # be used to match sensitive information specific to the data, such as a list
4971 # of employee IDs or job titles.
4972 #
4973 # Dictionary words are case-insensitive and all characters other than letters
4974 # and digits in the unicode [Basic Multilingual
4975 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
4976 # will be replaced with whitespace when scanning for matches, so the
4977 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
4978 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
4979 # surrounding any match must be of a different type than the adjacent
4980 # characters within the word, so letters must be next to non-letters and
4981 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
4982 # match the first three letters of the text &quot;jen123&quot; but will return no
4983 # matches for &quot;jennifer&quot;.
4984 #
4985 # Dictionary words containing a large number of characters that are not
4986 # letters or digits may result in unexpected findings because such characters
4987 # are treated as whitespace. The
4988 # [limits](https://cloud.google.com/dlp/limits) page contains details about
4989 # the size limits of dictionaries. For dictionaries that do not fit within
4990 # these constraints, consider using `LargeCustomDictionaryConfig` in the
4991 # `StoredInfoType` API.
4992 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
4993 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
4994 # at least one phrase and every phrase must contain at least 2 characters
4995 # that are letters or digits. [required]
4996 &quot;A String&quot;,
4997 ],
4998 },
4999 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
5000 # is accepted.
5001 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
5002 # Example: gs://[BUCKET_NAME]/dictionary.txt
5003 },
5004 },
5005 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression which defines the rule.
5006 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
5007 # specified, the entire match is returned. No more than 3 may be included.
5008 42,
5009 ],
5010 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
5011 # (https://github.com/google/re2/wiki/Syntax) can be found under the
5012 # google/re2 repository on GitHub.
5013 },
5014 &quot;excludeInfoTypes&quot;: { # List of exclude infoTypes. # Set of infoTypes for which findings would affect this rule.
5015 &quot;infoTypes&quot;: [ # InfoType list in ExclusionRule rule drops a finding when it overlaps or
5016 # contained within with a finding of an infoType from this list. For
5017 # example, for `InspectionRuleSet.info_types` containing &quot;PHONE_NUMBER&quot;` and
5018 # `exclusion_rule` containing `exclude_info_types.info_types` with
5019 # &quot;EMAIL_ADDRESS&quot; the phone number findings are dropped if they overlap
5020 # with EMAIL_ADDRESS finding.
5021 # That leads to &quot;555-222-2222@example.org&quot; to generate only a single
5022 # finding, namely email address.
5023 { # Type of information detected by the API.
5024 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5025 # creating a CustomInfoType, or one of the names listed
5026 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5027 # a built-in type. InfoType names should conform to the pattern
5028 # `[a-zA-Z0-9_]{1,64}`.
5029 },
5030 ],
5031 },
5032 &quot;matchingType&quot;: &quot;A String&quot;, # How the rule is applied, see MatchingType documentation for details.
5033 },
5034 },
5035 ],
5036 },
5037 ],
5038 &quot;limits&quot;: { # Configuration to control the number of findings returned. # Configuration to control the number of findings returned.
5039 &quot;maxFindingsPerItem&quot;: 42, # Max number of findings that will be returned for each item scanned.
5040 # When set within `InspectJobConfig`,
5041 # the maximum returned is 2000 regardless if this is set higher.
5042 # When set within `InspectContentRequest`, this field is ignored.
5043 &quot;maxFindingsPerInfoType&quot;: [ # Configuration of findings limit given for specified infoTypes.
5044 { # Max findings configuration per infoType, per content item or long
5045 # running DlpJob.
5046 &quot;maxFindings&quot;: 42, # Max findings limit for the given infoType.
5047 &quot;infoType&quot;: { # Type of information detected by the API. # Type of information the findings limit applies to. Only one limit per
5048 # info_type should be provided. If InfoTypeLimit does not have an
5049 # info_type, the DLP API applies the limit against all info_types that
5050 # are found but not specified in another InfoTypeLimit.
5051 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5052 # creating a CustomInfoType, or one of the names listed
5053 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5054 # a built-in type. InfoType names should conform to the pattern
5055 # `[a-zA-Z0-9_]{1,64}`.
5056 },
5057 },
5058 ],
5059 &quot;maxFindingsPerRequest&quot;: 42, # Max number of findings that will be returned per request/job.
5060 # When set within `InspectContentRequest`, the maximum returned is 2000
5061 # regardless if this is set higher.
5062 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005063 },
5064 &quot;locationId&quot;: &quot;A String&quot;, # The geographic location to process content inspection. Reserved for future
5065 # extensions.
5066 # When inspecting images location is restricted to &#x27;global&#x27;, &#x27;us&#x27;, &#x27;asia&#x27;,
5067 # and &#x27;europe&#x27;.
5068 }
5069
5070 x__xgafv: string, V1 error format.
5071 Allowed values
5072 1 - v1 error format
5073 2 - v2 error format
5074
5075Returns:
5076 An object of the form:
5077
5078 { # Results of inspecting an item.
5079 &quot;result&quot;: { # All the findings for a single scanned item. # The findings.
5080 &quot;findings&quot;: [ # List of findings for an item.
5081 { # Represents a piece of potentially sensitive content.
Bu Sun Kim65020912020-05-20 12:08:20 -07005082 &quot;quoteInfo&quot;: { # Message for infoType-dependent details parsed from quote. # Contains data parsed from quotes. Only populated if include_quote was set
5083 # to true and a supported infoType was requested. Currently supported
5084 # infoTypes: DATE, DATE_OF_BIRTH and TIME.
5085 &quot;dateTime&quot;: { # Message for a date time object. # The date time indicated by the quote.
5086 # e.g. 2018-01-01, 5th August.
5087 &quot;date&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # One or more of the following must be set.
5088 # Must be a valid date or time value.
5089 # and time zone are either specified elsewhere or are not significant. The date
5090 # is relative to the Proleptic Gregorian Calendar. This can represent:
5091 #
5092 # * A full date, with non-zero year, month and day values
5093 # * A month and day value, with a zero year, e.g. an anniversary
5094 # * A year on its own, with zero month and day values
5095 # * A year and month value, with a zero day, e.g. a credit card expiration date
5096 #
5097 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
5098 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
5099 # a year.
5100 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
5101 # month and day.
5102 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
5103 # if specifying a year by itself or a year and month where the day is not
5104 # significant.
5105 },
5106 &quot;timeZone&quot;: { # Time zone of the date time object. # Time zone
5107 &quot;offsetMinutes&quot;: 42, # Set only if the offset can be determined. Positive for time ahead of UTC.
5108 # E.g. For &quot;UTC-9&quot;, this value is -540.
5109 },
5110 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Day of week
5111 &quot;time&quot;: { # Represents a time of day. The date and time zone are either not significant # Time of day
5112 # or are specified elsewhere. An API may choose to allow leap seconds. Related
5113 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005114 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
5115 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
5116 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005117 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
5118 # allow the value 60 if it allows leap-seconds.
5119 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07005120 },
5121 },
5122 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005123 &quot;infoType&quot;: { # Type of information detected by the API. # The type of content that might have been found.
5124 # Provided if `excluded_types` is false.
5125 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5126 # creating a CustomInfoType, or one of the names listed
5127 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5128 # a built-in type. InfoType names should conform to the pattern
5129 # `[a-zA-Z0-9_]{1,64}`.
5130 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005131 &quot;labels&quot;: { # The labels associated with this `Finding`.
5132 #
5133 # Label keys must be between 1 and 63 characters long and must conform
5134 # to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
5135 #
5136 # Label values must be between 0 and 63 characters long and must conform
5137 # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
5138 #
5139 # No more than 10 labels can be associated with a given finding.
5140 #
5141 # Examples:
5142 # * `&quot;environment&quot; : &quot;production&quot;`
5143 # * `&quot;pipeline&quot; : &quot;etl&quot;`
5144 &quot;a_key&quot;: &quot;A String&quot;,
5145 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005146 &quot;likelihood&quot;: &quot;A String&quot;, # Confidence of how likely it is that the `info_type` is correct.
5147 &quot;name&quot;: &quot;A String&quot;, # Resource name in format
5148 # projects/{project}/locations/{location}/findings/{finding} Populated only
5149 # when viewing persisted findings.
5150 &quot;location&quot;: { # Specifies the location of the finding. # Where the content was found.
5151 &quot;codepointRange&quot;: { # Generic half-open interval [start, end) # Unicode character offsets delimiting the finding.
5152 # These are relative to the finding&#x27;s containing element.
5153 # Provided when the content is text.
5154 &quot;start&quot;: &quot;A String&quot;, # Index of the first character of the range (inclusive).
5155 &quot;end&quot;: &quot;A String&quot;, # Index of the last character of the range (exclusive).
5156 },
5157 &quot;byteRange&quot;: { # Generic half-open interval [start, end) # Zero-based byte offsets delimiting the finding.
5158 # These are relative to the finding&#x27;s containing element.
5159 # Note that when the content is not textual, this references
5160 # the UTF-8 encoded textual representation of the content.
5161 # Omitted if content is an image.
5162 &quot;start&quot;: &quot;A String&quot;, # Index of the first character of the range (inclusive).
5163 &quot;end&quot;: &quot;A String&quot;, # Index of the last character of the range (exclusive).
5164 },
5165 &quot;container&quot;: { # Represents a container that may contain DLP findings. # Information about the container where this finding occurred, if available.
5166 # Examples of a container include a file, table, or database record.
Bu Sun Kim65020912020-05-20 12:08:20 -07005167 &quot;updateTime&quot;: &quot;A String&quot;, # Findings container modification timestamp, if applicable.
5168 # For Google Cloud Storage contains last file modification timestamp.
5169 # For BigQuery table contains last_modified_time property.
5170 # For Datastore - not populated.
5171 &quot;rootPath&quot;: &quot;A String&quot;, # The root of the container.
5172 # Examples:
5173 # - For BigQuery table `project_id:dataset_id.table_id`, the root is
5174 # `dataset_id`
5175 # - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
5176 # is `gs://bucket`
5177 &quot;projectId&quot;: &quot;A String&quot;, # Project where the finding was found.
5178 # Can be different from the project that owns the finding.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005179 &quot;version&quot;: &quot;A String&quot;, # Findings container version, if available
5180 # (&quot;generation&quot; for Google Cloud Storage).
Bu Sun Kim65020912020-05-20 12:08:20 -07005181 &quot;relativePath&quot;: &quot;A String&quot;, # The rest of the path after the root.
5182 # Examples:
5183 # - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
5184 # `table_id`
5185 # - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
5186 # path is `folder/filename.txt`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005187 &quot;fullPath&quot;: &quot;A String&quot;, # A string representation of the full container name.
5188 # Examples:
5189 # - BigQuery: &#x27;Project:DataSetId.TableId&#x27;
5190 # - Google Cloud Storage: &#x27;gs://Bucket/folders/filename.txt&#x27;
5191 &quot;type&quot;: &quot;A String&quot;, # Container type, for example BigQuery or Google Cloud Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07005192 },
5193 &quot;contentLocations&quot;: [ # List of nested objects pointing to the precise location of the finding
5194 # within the file or record.
5195 { # Precise location of the finding within a document, record, image, or metadata
5196 # container.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005197 &quot;containerVersion&quot;: &quot;A String&quot;, # Findings container version, if available
5198 # (&quot;generation&quot; for Google Cloud Storage).
Bu Sun Kim65020912020-05-20 12:08:20 -07005199 &quot;containerName&quot;: &quot;A String&quot;, # Name of the container where the finding is located.
5200 # The top level name is the source file name or table name. Names of some
5201 # common storage containers are formatted as follows:
5202 #
5203 # * BigQuery tables: `{project_id}:{dataset_id}.{table_id}`
5204 # * Cloud Storage files: `gs://{bucket}/{path}`
5205 # * Datastore namespace: {namespace}
5206 #
5207 # Nested names could be absent if the embedded object has no string
5208 # identifier (for an example an image contained within a document).
5209 &quot;documentLocation&quot;: { # Location of a finding within a document. # Location data for document files.
5210 &quot;fileOffset&quot;: &quot;A String&quot;, # Offset of the line, from the beginning of the file, where the finding
5211 # is located.
5212 },
5213 &quot;recordLocation&quot;: { # Location of a finding within a row or record. # Location within a row or record of a database table.
5214 &quot;fieldId&quot;: { # General identifier of a data field in a storage service. # Field id of the field containing the finding.
5215 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
5216 },
5217 &quot;tableLocation&quot;: { # Location of a finding within a table. # Location within a `ContentItem.Table`.
5218 &quot;rowIndex&quot;: &quot;A String&quot;, # The zero-based index of the row where the finding is located. Only
5219 # populated for resources that have a natural ordering, not BigQuery. In
5220 # BigQuery, to identify the row a finding came from, populate
5221 # BigQueryOptions.identifying_fields with your primary key column names and
5222 # when you store the findings the value of those columns will be stored
5223 # inside of Finding.
5224 },
5225 &quot;recordKey&quot;: { # Message for a unique key indicating a record that contains a finding. # Key of the finding.
Bu Sun Kim65020912020-05-20 12:08:20 -07005226 &quot;datastoreKey&quot;: { # Record key for a finding in Cloud Datastore.
5227 &quot;entityKey&quot;: { # A unique identifier for a Datastore entity. # Datastore entity key.
5228 # If a key&#x27;s partition ID or any of its path kinds or names are
5229 # reserved/read-only, the key is reserved/read-only.
5230 # A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005231 &quot;partitionId&quot;: { # Datastore partition ID. # Entities are partitioned into subsets, currently identified by a project
5232 # ID and namespace ID.
5233 # Queries are scoped to a single partition.
5234 # A partition ID identifies a grouping of entities. The grouping is always
5235 # by project and namespace, however the namespace ID may be empty.
5236 #
5237 # A partition ID contains several dimensions:
5238 # project ID and namespace ID.
5239 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
5240 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
5241 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005242 &quot;path&quot;: [ # The entity path.
5243 # An entity path consists of one or more elements composed of a kind and a
5244 # string or numerical identifier, which identify entities. The first
5245 # element identifies a _root entity_, the second element identifies
5246 # a _child_ of the root entity, the third element identifies a child of the
5247 # second entity, and so forth. The entities identified by all prefixes of
5248 # the path are called the element&#x27;s _ancestors_.
5249 #
5250 # A path can never be empty, and a path can have at most 100 elements.
5251 { # A (kind, ID/name) pair used to construct a key path.
5252 #
5253 # If either name or ID is set, the element is complete.
5254 # If neither is set, the element is incomplete.
5255 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity.
5256 # A kind matching regex `__.*__` is reserved/read-only.
5257 # A kind must not contain more than 1500 bytes when UTF-8 encoded.
5258 # Cannot be `&quot;&quot;`.
5259 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity.
5260 # Never equal to zero. Values less than zero are discouraged and may not
5261 # be supported in the future.
5262 &quot;name&quot;: &quot;A String&quot;, # The name of the entity.
5263 # A name matching regex `__.*__` is reserved/read-only.
5264 # A name must not be more than 1500 bytes when UTF-8 encoded.
5265 # Cannot be `&quot;&quot;`.
5266 },
5267 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005268 },
5269 },
5270 &quot;bigQueryKey&quot;: { # Row key for identifying a record in BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005271 &quot;rowNumber&quot;: &quot;A String&quot;, # Row number inferred at the time the table was scanned. This value is
5272 # nondeterministic, cannot be queried, and may be null for inspection
5273 # jobs. To locate findings within a table, specify
5274 # `inspect_job.storage_config.big_query_options.identifying_fields` in
5275 # `CreateDlpJobRequest`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005276 &quot;tableReference&quot;: { # Message defining the location of a BigQuery table. A table is uniquely # Complete BigQuery table reference.
5277 # identified by its project_id, dataset_id, and table_name. Within a query
5278 # a table is often referenced with a string in the format of:
5279 # `&lt;project_id&gt;:&lt;dataset_id&gt;.&lt;table_id&gt;` or
5280 # `&lt;project_id&gt;.&lt;dataset_id&gt;.&lt;table_id&gt;`.
5281 &quot;projectId&quot;: &quot;A String&quot;, # The Google Cloud Platform project ID of the project containing the table.
5282 # If omitted, project ID is inferred from the API call.
5283 &quot;datasetId&quot;: &quot;A String&quot;, # Dataset ID of the table.
5284 &quot;tableId&quot;: &quot;A String&quot;, # Name of the table.
5285 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005286 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005287 &quot;idValues&quot;: [ # Values of identifying columns in the given row. Order of values matches
5288 # the order of `identifying_fields` specified in the scanning request.
5289 &quot;A String&quot;,
5290 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005291 },
5292 },
5293 &quot;containerTimestamp&quot;: &quot;A String&quot;, # Findings container modification timestamp, if applicable.
5294 # For Google Cloud Storage contains last file modification timestamp.
5295 # For BigQuery table contains last_modified_time property.
5296 # For Datastore - not populated.
5297 &quot;metadataLocation&quot;: { # Metadata Location # Location within the metadata for inspected content.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005298 &quot;type&quot;: &quot;A String&quot;, # Type of metadata containing the finding.
Bu Sun Kim65020912020-05-20 12:08:20 -07005299 &quot;storageLabel&quot;: { # Storage metadata label to indicate which metadata entry contains findings. # Storage metadata.
5300 &quot;key&quot;: &quot;A String&quot;,
5301 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005302 },
5303 &quot;imageLocation&quot;: { # Location of the finding within an image. # Location within an image&#x27;s pixels.
5304 &quot;boundingBoxes&quot;: [ # Bounding boxes locating the pixels within the image containing the finding.
5305 { # Bounding box encompassing detected text within an image.
5306 &quot;top&quot;: 42, # Top coordinate of the bounding box. (0,0) is upper left.
5307 &quot;width&quot;: 42, # Width of the bounding box in pixels.
5308 &quot;height&quot;: 42, # Height of the bounding box in pixels.
5309 &quot;left&quot;: 42, # Left coordinate of the bounding box. (0,0) is upper left.
5310 },
5311 ],
5312 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005313 },
5314 ],
5315 },
5316 &quot;quote&quot;: &quot;A String&quot;, # The content that was found. Even if the content is not textual, it
5317 # may be converted to a textual representation here.
5318 # Provided if `include_quote` is true and the finding is
5319 # less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
5320 # in length, the quote may be omitted.
5321 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when finding was detected.
5322 &quot;jobName&quot;: &quot;A String&quot;, # The job that stored the finding.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005323 &quot;jobCreateTime&quot;: &quot;A String&quot;, # Time the job started that produced this finding.
5324 &quot;triggerName&quot;: &quot;A String&quot;, # Job trigger name, if applicable, for this finding.
5325 &quot;resourceName&quot;: &quot;A String&quot;, # The job that stored the finding.
Bu Sun Kim65020912020-05-20 12:08:20 -07005326 },
5327 ],
5328 &quot;findingsTruncated&quot;: True or False, # If true, then this item might have more findings than were returned,
5329 # and the findings returned are an arbitrary subset of all findings.
5330 # The findings list might be truncated because the input items were too
5331 # large, or because the server reached the maximum amount of resources
5332 # allowed for a single API call. For best results, divide the input into
5333 # smaller batches.
5334 },
5335 }</pre>
5336</div>
5337
5338<div class="method">
5339 <code class="details" id="reidentify">reidentify(parent, locationId, body=None, x__xgafv=None)</code>
5340 <pre>Re-identifies content that has been de-identified.
5341See
5342https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
5343to learn more.
5344
5345Args:
5346 parent: string, Required. The parent resource name. (required)
5347 locationId: string, The geographic location to process content reidentification. Reserved for
5348future extensions. (required)
5349 body: object, The request body.
5350 The object takes the form of:
5351
5352{ # Request to re-identify an item.
Bu Sun Kim65020912020-05-20 12:08:20 -07005353 &quot;inspectConfig&quot;: { # Configuration description of the scanning process. # Configuration for the inspector.
5354 # When used with redactContent only info_types and min_likelihood are currently
5355 # used.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005356 &quot;minLikelihood&quot;: &quot;A String&quot;, # Only returns findings equal or above this threshold. The default is
5357 # POSSIBLE.
5358 # See https://cloud.google.com/dlp/docs/likelihood to learn more.
5359 &quot;contentOptions&quot;: [ # List of options defining data content to scan.
5360 # If empty, text, images, and other content will be included.
5361 &quot;A String&quot;,
5362 ],
5363 &quot;infoTypes&quot;: [ # Restricts what info_types to look for. The values must correspond to
5364 # InfoType values returned by ListInfoTypes or listed at
5365 # https://cloud.google.com/dlp/docs/infotypes-reference.
5366 #
5367 # When no InfoTypes or CustomInfoTypes are specified in a request, the
5368 # system may automatically choose what detectors to run. By default this may
5369 # be all types, but may change over time as detectors are updated.
5370 #
5371 # If you need precise control and predictability as to what detectors are
5372 # run you should specify specific InfoTypes listed in the reference,
5373 # otherwise a default list will be used, which may change over time.
5374 { # Type of information detected by the API.
5375 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5376 # creating a CustomInfoType, or one of the names listed
5377 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5378 # a built-in type. InfoType names should conform to the pattern
5379 # `[a-zA-Z0-9_]{1,64}`.
5380 },
5381 ],
5382 &quot;excludeInfoTypes&quot;: True or False, # When true, excludes type information of the findings.
5383 &quot;customInfoTypes&quot;: [ # CustomInfoTypes provided by the user. See
5384 # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
5385 { # Custom information type provided by the user. Used to find domain-specific
5386 # sensitive information configurable to the data in question.
5387 &quot;surrogateType&quot;: { # Message for detecting output from deidentification transformations # Message for detecting output from deidentification transformations that
5388 # support reversing.
5389 # such as
5390 # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
5391 # These types of transformations are
5392 # those that perform pseudonymization, thereby producing a &quot;surrogate&quot; as
5393 # output. This should be used in conjunction with a field on the
5394 # transformation such as `surrogate_info_type`. This CustomInfoType does
5395 # not support the use of `detection_rules`.
5396 },
5397 &quot;likelihood&quot;: &quot;A String&quot;, # Likelihood to return for this CustomInfoType. This base value can be
5398 # altered by a detection rule if the finding meets the criteria specified by
5399 # the rule. Defaults to `VERY_LIKELY` if not specified.
5400 &quot;infoType&quot;: { # Type of information detected by the API. # CustomInfoType can either be a new infoType, or an extension of built-in
5401 # infoType, when the name matches one of existing infoTypes and that infoType
5402 # is specified in `InspectContent.info_types` field. Specifying the latter
5403 # adds findings to the one detected by the system. If built-in info type is
5404 # not specified in `InspectContent.info_types` list then the name is treated
5405 # as a custom info type.
5406 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5407 # creating a CustomInfoType, or one of the names listed
5408 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5409 # a built-in type. InfoType names should conform to the pattern
5410 # `[a-zA-Z0-9_]{1,64}`.
5411 },
5412 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression based CustomInfoType.
5413 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
5414 # specified, the entire match is returned. No more than 3 may be included.
5415 42,
5416 ],
5417 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
5418 # (https://github.com/google/re2/wiki/Syntax) can be found under the
5419 # google/re2 repository on GitHub.
5420 },
5421 &quot;detectionRules&quot;: [ # Set of detection rules to apply to all findings of this CustomInfoType.
5422 # Rules are applied in order that they are specified. Not supported for the
5423 # `surrogate_type` CustomInfoType.
5424 { # Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
5425 # `CustomInfoType` to alter behavior under certain circumstances, depending
5426 # on the specific details of the rule. Not supported for the `surrogate_type`
5427 # custom infoType.
5428 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
5429 # proximity of hotwords.
5430 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
5431 # part of a detection rule.
5432 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
5433 # levels. For example, if a finding would be `POSSIBLE` without the
5434 # detection rule and `relative_likelihood` is 1, then it is upgraded to
5435 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
5436 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
5437 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
5438 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
5439 # a final likelihood of `LIKELY`.
5440 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
5441 },
5442 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
5443 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
5444 # specified, the entire match is returned. No more than 3 may be included.
5445 42,
5446 ],
5447 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
5448 # (https://github.com/google/re2/wiki/Syntax) can be found under the
5449 # google/re2 repository on GitHub.
5450 },
5451 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
5452 # The total length of the window cannot exceed 1000 characters. Note that
5453 # the finding itself will be included in the window, so that hotwords may
5454 # be used to match substrings of the finding itself. For example, the
5455 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
5456 # adjusted upwards if the area code is known to be the local area code of
5457 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
5458 # is the area code in question.
5459 # rule.
5460 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
5461 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
5462 },
5463 },
5464 },
5465 ],
5466 &quot;exclusionType&quot;: &quot;A String&quot;, # If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
5467 # to be returned. It still can be used for rules matching.
5468 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # A list of phrases to detect as a CustomInfoType.
5469 # be used to match sensitive information specific to the data, such as a list
5470 # of employee IDs or job titles.
5471 #
5472 # Dictionary words are case-insensitive and all characters other than letters
5473 # and digits in the unicode [Basic Multilingual
5474 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
5475 # will be replaced with whitespace when scanning for matches, so the
5476 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
5477 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
5478 # surrounding any match must be of a different type than the adjacent
5479 # characters within the word, so letters must be next to non-letters and
5480 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
5481 # match the first three letters of the text &quot;jen123&quot; but will return no
5482 # matches for &quot;jennifer&quot;.
5483 #
5484 # Dictionary words containing a large number of characters that are not
5485 # letters or digits may result in unexpected findings because such characters
5486 # are treated as whitespace. The
5487 # [limits](https://cloud.google.com/dlp/limits) page contains details about
5488 # the size limits of dictionaries. For dictionaries that do not fit within
5489 # these constraints, consider using `LargeCustomDictionaryConfig` in the
5490 # `StoredInfoType` API.
5491 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
5492 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
5493 # at least one phrase and every phrase must contain at least 2 characters
5494 # that are letters or digits. [required]
5495 &quot;A String&quot;,
5496 ],
5497 },
5498 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
5499 # is accepted.
5500 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
5501 # Example: gs://[BUCKET_NAME]/dictionary.txt
5502 },
5503 },
5504 &quot;storedType&quot;: { # A reference to a StoredInfoType to use with scanning. # Load an existing `StoredInfoType` resource for use in
5505 # `InspectDataSource`. Not currently supported in `InspectContent`.
5506 &quot;name&quot;: &quot;A String&quot;, # Resource name of the requested `StoredInfoType`, for example
5507 # `organizations/433245324/storedInfoTypes/432452342` or
5508 # `projects/project-id/storedInfoTypes/432452342`.
5509 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp indicating when the version of the `StoredInfoType` used for
5510 # inspection was created. Output-only field, populated by the system.
5511 },
5512 },
5513 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005514 &quot;includeQuote&quot;: True or False, # When true, a contextual quote from the data that triggered a finding is
5515 # included in the response; see Finding.quote.
5516 &quot;ruleSet&quot;: [ # Set of rules to apply to the findings for this InspectConfig.
5517 # Exclusion rules, contained in the set are executed in the end, other
5518 # rules are executed in the order they are specified for each info type.
5519 { # Rule set for modifying a set of infoTypes to alter behavior under certain
5520 # circumstances, depending on the specific details of the rules within the set.
5521 &quot;infoTypes&quot;: [ # List of infoTypes this rule set is applied to.
5522 { # Type of information detected by the API.
5523 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5524 # creating a CustomInfoType, or one of the names listed
5525 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5526 # a built-in type. InfoType names should conform to the pattern
5527 # `[a-zA-Z0-9_]{1,64}`.
5528 },
5529 ],
5530 &quot;rules&quot;: [ # Set of rules to be applied to infoTypes. The rules are applied in order.
5531 { # A single inspection rule to be applied to infoTypes, specified in
5532 # `InspectionRuleSet`.
5533 &quot;hotwordRule&quot;: { # The rule that adjusts the likelihood of findings within a certain # Hotword-based detection rule.
5534 # proximity of hotwords.
5535 &quot;likelihoodAdjustment&quot;: { # Message for specifying an adjustment to the likelihood of a finding as # Likelihood adjustment to apply to all matching findings.
5536 # part of a detection rule.
5537 &quot;relativeLikelihood&quot;: 42, # Increase or decrease the likelihood by the specified number of
5538 # levels. For example, if a finding would be `POSSIBLE` without the
5539 # detection rule and `relative_likelihood` is 1, then it is upgraded to
5540 # `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
5541 # Likelihood may never drop below `VERY_UNLIKELY` or exceed
5542 # `VERY_LIKELY`, so applying an adjustment of 1 followed by an
5543 # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
5544 # a final likelihood of `LIKELY`.
5545 &quot;fixedLikelihood&quot;: &quot;A String&quot;, # Set the likelihood of a finding to a fixed value.
5546 },
5547 &quot;hotwordRegex&quot;: { # Message defining a custom regular expression. # Regular expression pattern defining what qualifies as a hotword.
5548 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
5549 # specified, the entire match is returned. No more than 3 may be included.
5550 42,
5551 ],
5552 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
5553 # (https://github.com/google/re2/wiki/Syntax) can be found under the
5554 # google/re2 repository on GitHub.
5555 },
5556 &quot;proximity&quot;: { # Message for specifying a window around a finding to apply a detection # Proximity of the finding within which the entire hotword must reside.
5557 # The total length of the window cannot exceed 1000 characters. Note that
5558 # the finding itself will be included in the window, so that hotwords may
5559 # be used to match substrings of the finding itself. For example, the
5560 # certainty of a phone number regex &quot;\(\d{3}\) \d{3}-\d{4}&quot; could be
5561 # adjusted upwards if the area code is known to be the local area code of
5562 # a company office using the hotword regex &quot;\(xxx\)&quot;, where &quot;xxx&quot;
5563 # is the area code in question.
5564 # rule.
5565 &quot;windowBefore&quot;: 42, # Number of characters before the finding to consider.
5566 &quot;windowAfter&quot;: 42, # Number of characters after the finding to consider.
5567 },
5568 },
5569 &quot;exclusionRule&quot;: { # The rule that specifies conditions when findings of infoTypes specified in # Exclusion rule.
5570 # `InspectionRuleSet` are removed from results.
5571 &quot;dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can # Dictionary which defines the rule.
5572 # be used to match sensitive information specific to the data, such as a list
5573 # of employee IDs or job titles.
5574 #
5575 # Dictionary words are case-insensitive and all characters other than letters
5576 # and digits in the unicode [Basic Multilingual
5577 # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
5578 # will be replaced with whitespace when scanning for matches, so the
5579 # dictionary phrase &quot;Sam Johnson&quot; will match all three phrases &quot;sam johnson&quot;,
5580 # &quot;Sam, Johnson&quot;, and &quot;Sam (Johnson)&quot;. Additionally, the characters
5581 # surrounding any match must be of a different type than the adjacent
5582 # characters within the word, so letters must be next to non-letters and
5583 # digits next to non-digits. For example, the dictionary word &quot;jen&quot; will
5584 # match the first three letters of the text &quot;jen123&quot; but will return no
5585 # matches for &quot;jennifer&quot;.
5586 #
5587 # Dictionary words containing a large number of characters that are not
5588 # letters or digits may result in unexpected findings because such characters
5589 # are treated as whitespace. The
5590 # [limits](https://cloud.google.com/dlp/limits) page contains details about
5591 # the size limits of dictionaries. For dictionaries that do not fit within
5592 # these constraints, consider using `LargeCustomDictionaryConfig` in the
5593 # `StoredInfoType` API.
5594 &quot;wordList&quot;: { # Message defining a list of words or phrases to search for in the data. # List of words or phrases to search for.
5595 &quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain
5596 # at least one phrase and every phrase must contain at least 2 characters
5597 # that are letters or digits. [required]
5598 &quot;A String&quot;,
5599 ],
5600 },
5601 &quot;cloudStoragePath&quot;: { # Message representing a single file or path in Cloud Storage. # Newline-delimited file of words in Cloud Storage. Only a single file
5602 # is accepted.
5603 &quot;path&quot;: &quot;A String&quot;, # A url representing a file or path (no wildcards) in Cloud Storage.
5604 # Example: gs://[BUCKET_NAME]/dictionary.txt
5605 },
5606 },
5607 &quot;regex&quot;: { # Message defining a custom regular expression. # Regular expression which defines the rule.
5608 &quot;groupIndexes&quot;: [ # The index of the submatch to extract as findings. When not
5609 # specified, the entire match is returned. No more than 3 may be included.
5610 42,
5611 ],
5612 &quot;pattern&quot;: &quot;A String&quot;, # Pattern defining the regular expression. Its syntax
5613 # (https://github.com/google/re2/wiki/Syntax) can be found under the
5614 # google/re2 repository on GitHub.
5615 },
5616 &quot;excludeInfoTypes&quot;: { # List of exclude infoTypes. # Set of infoTypes for which findings would affect this rule.
5617 &quot;infoTypes&quot;: [ # InfoType list in ExclusionRule rule drops a finding when it overlaps or
5618 # contained within with a finding of an infoType from this list. For
5619 # example, for `InspectionRuleSet.info_types` containing &quot;PHONE_NUMBER&quot;` and
5620 # `exclusion_rule` containing `exclude_info_types.info_types` with
5621 # &quot;EMAIL_ADDRESS&quot; the phone number findings are dropped if they overlap
5622 # with EMAIL_ADDRESS finding.
5623 # That leads to &quot;555-222-2222@example.org&quot; to generate only a single
5624 # finding, namely email address.
5625 { # Type of information detected by the API.
5626 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5627 # creating a CustomInfoType, or one of the names listed
5628 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5629 # a built-in type. InfoType names should conform to the pattern
5630 # `[a-zA-Z0-9_]{1,64}`.
5631 },
5632 ],
5633 },
5634 &quot;matchingType&quot;: &quot;A String&quot;, # How the rule is applied, see MatchingType documentation for details.
5635 },
5636 },
5637 ],
5638 },
5639 ],
5640 &quot;limits&quot;: { # Configuration to control the number of findings returned. # Configuration to control the number of findings returned.
5641 &quot;maxFindingsPerItem&quot;: 42, # Max number of findings that will be returned for each item scanned.
5642 # When set within `InspectJobConfig`,
5643 # the maximum returned is 2000 regardless if this is set higher.
5644 # When set within `InspectContentRequest`, this field is ignored.
5645 &quot;maxFindingsPerInfoType&quot;: [ # Configuration of findings limit given for specified infoTypes.
5646 { # Max findings configuration per infoType, per content item or long
5647 # running DlpJob.
5648 &quot;maxFindings&quot;: 42, # Max findings limit for the given infoType.
5649 &quot;infoType&quot;: { # Type of information detected by the API. # Type of information the findings limit applies to. Only one limit per
5650 # info_type should be provided. If InfoTypeLimit does not have an
5651 # info_type, the DLP API applies the limit against all info_types that
5652 # are found but not specified in another InfoTypeLimit.
5653 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5654 # creating a CustomInfoType, or one of the names listed
5655 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5656 # a built-in type. InfoType names should conform to the pattern
5657 # `[a-zA-Z0-9_]{1,64}`.
5658 },
5659 },
5660 ],
5661 &quot;maxFindingsPerRequest&quot;: 42, # Max number of findings that will be returned per request/job.
5662 # When set within `InspectContentRequest`, the maximum returned is 2000
5663 # regardless if this is set higher.
5664 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005665 },
5666 &quot;locationId&quot;: &quot;A String&quot;, # The geographic location to process content reidentification. Reserved for
5667 # future extensions.
5668 &quot;reidentifyTemplateName&quot;: &quot;A String&quot;, # Template to use. References an instance of `DeidentifyTemplate`.
5669 # Any configuration directly specified in `reidentify_config` or
5670 # `inspect_config` will override those set in the template. Singular fields
5671 # that are set in this request will replace their corresponding fields in the
5672 # template. Repeated fields are appended. Singular sub-messages and groups
5673 # are recursively merged.
5674 &quot;reidentifyConfig&quot;: { # The configuration that controls how the data will change. # Configuration for the re-identification of the content item.
5675 # This field shares the same proto message type that is used for
5676 # de-identification, however its usage here is for the reversal of the
5677 # previous de-identification. Re-identification is performed by examining
5678 # the transformations used to de-identify the items and executing the
5679 # reverse. This requires that only reversible transformations
5680 # be provided here. The reversible transformations are:
5681 #
5682 # - `CryptoDeterministicConfig`
5683 # - `CryptoReplaceFfxFpeConfig`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005684 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the dataset as free-form text and apply the same free text
5685 # transformation everywhere.
5686 # apply various `PrimitiveTransformation`s to each finding, where the
5687 # transformation is applied to only values that were identified as a specific
5688 # info_type.
5689 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
5690 # for a given infoType.
5691 { # A transformation to apply to text that is identified as a specific
5692 # info_type.
5693 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
5694 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
5695 # portion of the value.
5696 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
5697 },
5698 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
5699 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
5700 # to learn more.
5701 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
5702 # If set, must also set cryptoKey. If set, shift will be consistent for the
5703 # given context.
5704 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
5705 },
5706 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
5707 # range (inclusive ends). Negative means shift to earlier in time. Must not
5708 # be more than 365250 days (1000 years) each direction.
5709 #
5710 # For example, 3 means shift date to at most 3 days into the future.
5711 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
5712 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
5713 # results in the same shift for the same context and crypto_key. If
5714 # set, must also set context. Can only be applied to table items.
5715 # a key encryption key (KEK) stored by KMS).
5716 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
5717 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
5718 # unwrap the data crypto key.
5719 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
5720 # leaking the key. Choose another type of key if possible.
5721 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
5722 },
5723 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
5724 # It will be discarded after the request finishes.
5725 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
5726 # This is an arbitrary string used to differentiate different keys.
5727 # A unique key is generated per name: two separate `TransientCryptoKey`
5728 # protos share the same generated key if their names are the same.
5729 # When the data crypto key is generated, this name is not used in any way
5730 # (repeating the api call will result in a different key being generated).
5731 },
5732 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
5733 # The wrapped key must be a 128/192/256 bit key.
5734 # Authorization requires the following IAM permissions when sending a request
5735 # to perform a crypto transformation using a kms-wrapped crypto key:
5736 # dlp.kms.encrypt
5737 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
5738 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
5739 },
5740 },
5741 },
5742 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
5743 },
5744 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
5745 # Uses SHA-256.
5746 # The key size must be either 32 or 64 bytes.
5747 # Outputs a base64 encoded representation of the hashed output
5748 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
5749 # Currently, only string and integer values can be hashed.
5750 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
5751 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
5752 # a key encryption key (KEK) stored by KMS).
5753 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
5754 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
5755 # unwrap the data crypto key.
5756 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
5757 # leaking the key. Choose another type of key if possible.
5758 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
5759 },
5760 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
5761 # It will be discarded after the request finishes.
5762 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
5763 # This is an arbitrary string used to differentiate different keys.
5764 # A unique key is generated per name: two separate `TransientCryptoKey`
5765 # protos share the same generated key if their names are the same.
5766 # When the data crypto key is generated, this name is not used in any way
5767 # (repeating the api call will result in a different key being generated).
5768 },
5769 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
5770 # The wrapped key must be a 128/192/256 bit key.
5771 # Authorization requires the following IAM permissions when sending a request
5772 # to perform a crypto transformation using a kms-wrapped crypto key:
5773 # dlp.kms.encrypt
5774 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
5775 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
5776 },
5777 },
5778 },
5779 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
5780 # (FPE) with the FFX mode of operation; however when used in the
5781 # `ReidentifyContent` API method, it serves the opposite function by reversing
5782 # the surrogate back into the original identifier. The identifier must be
5783 # encoded as ASCII. For a given crypto key and context, the same identifier
5784 # will be replaced with the same surrogate. Identifiers must be at least two
5785 # characters long. In the case that the identifier is the empty string, it will
5786 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
5787 # more.
5788 #
5789 # Note: We recommend using CryptoDeterministicConfig for all use cases which
5790 # do not require preserving the input alphabet space and size, plus warrant
5791 # referential integrity.
5792 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
5793 # This annotation will be applied to the surrogate by prefixing it with
5794 # the name of the custom infoType followed by the number of
5795 # characters comprising the surrogate. The following scheme defines the
5796 # format: info_type_name(surrogate_character_count):surrogate
5797 #
5798 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
5799 # the surrogate is &#x27;abc&#x27;, the full replacement value
5800 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
5801 #
5802 # This annotation identifies the surrogate when inspecting content using the
5803 # custom infoType
5804 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
5805 # This facilitates reversal of the surrogate when it occurs in free text.
5806 #
5807 # In order for inspection to work properly, the name of this infoType must
5808 # not occur naturally anywhere in your data; otherwise, inspection may
5809 # find a surrogate that does not correspond to an actual identifier.
5810 # Therefore, choose your custom infoType name carefully after considering
5811 # what your data looks like. One way to select a name that has a high chance
5812 # of yielding reliable detection is to include one or more unicode characters
5813 # that are highly improbable to exist in your data.
5814 # For example, assuming your data is entered from a regular ASCII keyboard,
5815 # the symbol with the hex code point 29DD might be used like so:
5816 # ⧝MY_TOKEN_TYPE
5817 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5818 # creating a CustomInfoType, or one of the names listed
5819 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5820 # a built-in type. InfoType names should conform to the pattern
5821 # `[a-zA-Z0-9_]{1,64}`.
5822 },
5823 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
5824 # identifier in two different contexts won&#x27;t be given the same surrogate. If
5825 # the context is not set, a default tweak will be used.
5826 #
5827 # If the context is set but:
5828 #
5829 # 1. there is no record present when transforming a given value or
5830 # 1. the field is not present when transforming a given value,
5831 #
5832 # a default tweak will be used.
5833 #
5834 # Note that case (1) is expected when an `InfoTypeTransformation` is
5835 # applied to both structured and non-structured `ContentItem`s.
5836 # Currently, the referenced field may be of value type integer or string.
5837 #
5838 # The tweak is constructed as a sequence of bytes in big endian byte order
5839 # such that:
5840 #
5841 # - a 64 bit integer is encoded followed by a single byte of value 1
5842 # - a string is encoded in UTF-8 format followed by a single byte of value 2
5843 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
5844 },
5845 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
5846 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
5847 # a key encryption key (KEK) stored by KMS).
5848 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
5849 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
5850 # unwrap the data crypto key.
5851 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
5852 # leaking the key. Choose another type of key if possible.
5853 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
5854 },
5855 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
5856 # It will be discarded after the request finishes.
5857 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
5858 # This is an arbitrary string used to differentiate different keys.
5859 # A unique key is generated per name: two separate `TransientCryptoKey`
5860 # protos share the same generated key if their names are the same.
5861 # When the data crypto key is generated, this name is not used in any way
5862 # (repeating the api call will result in a different key being generated).
5863 },
5864 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
5865 # The wrapped key must be a 128/192/256 bit key.
5866 # Authorization requires the following IAM permissions when sending a request
5867 # to perform a crypto transformation using a kms-wrapped crypto key:
5868 # dlp.kms.encrypt
5869 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
5870 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
5871 },
5872 },
5873 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
5874 # that the FFX mode natively supports. This happens before/after
5875 # encryption/decryption.
5876 # Each character listed must appear only once.
5877 # Number of characters must be in the range [2, 95].
5878 # This must be encoded as ASCII.
5879 # The order of characters does not matter.
5880 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
5881 },
5882 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
5883 # input. Outputs a base64 encoded representation of the encrypted output.
5884 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
5885 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
5886 # This annotation will be applied to the surrogate by prefixing it with
5887 # the name of the custom info type followed by the number of
5888 # characters comprising the surrogate. The following scheme defines the
5889 # format: {info type name}({surrogate character count}):{surrogate}
5890 #
5891 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
5892 # the surrogate is &#x27;abc&#x27;, the full replacement value
5893 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
5894 #
5895 # This annotation identifies the surrogate when inspecting content using the
5896 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
5897 # surrogate when it occurs in free text.
5898 #
5899 # Note: For record transformations where the entire cell in a table is being
5900 # transformed, surrogates are not mandatory. Surrogates are used to denote
5901 # the location of the token and are necessary for re-identification in free
5902 # form text.
5903 #
5904 # In order for inspection to work properly, the name of this info type must
5905 # not occur naturally anywhere in your data; otherwise, inspection may either
5906 #
5907 # - reverse a surrogate that does not correspond to an actual identifier
5908 # - be unable to parse the surrogate and result in an error
5909 #
5910 # Therefore, choose your custom info type name carefully after considering
5911 # what your data looks like. One way to select a name that has a high chance
5912 # of yielding reliable detection is to include one or more unicode characters
5913 # that are highly improbable to exist in your data.
5914 # For example, assuming your data is entered from a regular ASCII keyboard,
5915 # the symbol with the hex code point 29DD might be used like so:
5916 # ⧝MY_TOKEN_TYPE.
5917 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
5918 # creating a CustomInfoType, or one of the names listed
5919 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
5920 # a built-in type. InfoType names should conform to the pattern
5921 # `[a-zA-Z0-9_]{1,64}`.
5922 },
5923 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
5924 # referential integrity such that the same identifier in two different
5925 # contexts will be given a distinct surrogate. The context is appended to
5926 # plaintext value being encrypted. On decryption the provided context is
5927 # validated against the value used during encryption. If a context was
5928 # provided during encryption, same context must be provided during decryption
5929 # as well.
5930 #
5931 # If the context is not set, plaintext would be used as is for encryption.
5932 # If the context is set but:
5933 #
5934 # 1. there is no record present when transforming a given value or
5935 # 2. the field is not present when transforming a given value,
5936 #
5937 # plaintext would be used as is for encryption.
5938 #
5939 # Note that case (1) is expected when an `InfoTypeTransformation` is
5940 # applied to both structured and non-structured `ContentItem`s.
5941 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
5942 },
5943 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
5944 # a key encryption key (KEK) stored by KMS).
5945 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
5946 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
5947 # unwrap the data crypto key.
5948 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
5949 # leaking the key. Choose another type of key if possible.
5950 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
5951 },
5952 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
5953 # It will be discarded after the request finishes.
5954 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
5955 # This is an arbitrary string used to differentiate different keys.
5956 # A unique key is generated per name: two separate `TransientCryptoKey`
5957 # protos share the same generated key if their names are the same.
5958 # When the data crypto key is generated, this name is not used in any way
5959 # (repeating the api call will result in a different key being generated).
5960 },
5961 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
5962 # The wrapped key must be a 128/192/256 bit key.
5963 # Authorization requires the following IAM permissions when sending a request
5964 # to perform a crypto transformation using a kms-wrapped crypto key:
5965 # dlp.kms.encrypt
5966 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
5967 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
5968 },
5969 },
5970 },
5971 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
5972 # replacement values are dynamically provided by the user for custom behavior,
5973 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
5974 # This can be used on
5975 # data of type: number, long, string, timestamp.
5976 # If the bound `Value` type differs from the type of data being transformed, we
5977 # will first attempt converting the type of the data to be transformed to match
5978 # the type of the bound before comparing.
5979 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
5980 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
5981 { # Bucket is represented as a range, along with replacement values.
5982 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
5983 # the default behavior will be to hyphenate the min-max range.
5984 # Note that for the purposes of inspection or transformation, the number
5985 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
5986 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
5987 # 123456789, the number of bytes would be counted as 9, even though an
5988 # int64 only holds up to 8 bytes of data.
5989 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
5990 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
5991 # and time zone are either specified elsewhere or are not significant. The date
5992 # is relative to the Proleptic Gregorian Calendar. This can represent:
5993 #
5994 # * A full date, with non-zero year, month and day values
5995 # * A month and day value, with a zero year, e.g. an anniversary
5996 # * A year on its own, with zero month and day values
5997 # * A year and month value, with a zero day, e.g. a credit card expiration date
5998 #
5999 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6000 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6001 # a year.
6002 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6003 # month and day.
6004 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6005 # if specifying a year by itself or a year and month where the day is not
6006 # significant.
6007 },
6008 &quot;stringValue&quot;: &quot;A String&quot;, # string
6009 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6010 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6011 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6012 # types are google.type.Date and `google.protobuf.Timestamp`.
6013 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6014 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6015 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6016 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6017 # allow the value 60 if it allows leap-seconds.
6018 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6019 },
6020 &quot;booleanValue&quot;: True or False, # boolean
6021 &quot;floatValue&quot;: 3.14, # float
6022 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6023 },
6024 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
6025 # used.
6026 # Note that for the purposes of inspection or transformation, the number
6027 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6028 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6029 # 123456789, the number of bytes would be counted as 9, even though an
6030 # int64 only holds up to 8 bytes of data.
6031 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6032 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6033 # and time zone are either specified elsewhere or are not significant. The date
6034 # is relative to the Proleptic Gregorian Calendar. This can represent:
6035 #
6036 # * A full date, with non-zero year, month and day values
6037 # * A month and day value, with a zero year, e.g. an anniversary
6038 # * A year on its own, with zero month and day values
6039 # * A year and month value, with a zero day, e.g. a credit card expiration date
6040 #
6041 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6042 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6043 # a year.
6044 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6045 # month and day.
6046 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6047 # if specifying a year by itself or a year and month where the day is not
6048 # significant.
6049 },
6050 &quot;stringValue&quot;: &quot;A String&quot;, # string
6051 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6052 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6053 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6054 # types are google.type.Date and `google.protobuf.Timestamp`.
6055 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6056 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6057 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6058 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6059 # allow the value 60 if it allows leap-seconds.
6060 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6061 },
6062 &quot;booleanValue&quot;: True or False, # boolean
6063 &quot;floatValue&quot;: 3.14, # float
6064 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6065 },
6066 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
6067 # Note that for the purposes of inspection or transformation, the number
6068 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6069 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6070 # 123456789, the number of bytes would be counted as 9, even though an
6071 # int64 only holds up to 8 bytes of data.
6072 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6073 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6074 # and time zone are either specified elsewhere or are not significant. The date
6075 # is relative to the Proleptic Gregorian Calendar. This can represent:
6076 #
6077 # * A full date, with non-zero year, month and day values
6078 # * A month and day value, with a zero year, e.g. an anniversary
6079 # * A year on its own, with zero month and day values
6080 # * A year and month value, with a zero day, e.g. a credit card expiration date
6081 #
6082 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6083 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6084 # a year.
6085 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6086 # month and day.
6087 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6088 # if specifying a year by itself or a year and month where the day is not
6089 # significant.
6090 },
6091 &quot;stringValue&quot;: &quot;A String&quot;, # string
6092 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6093 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6094 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6095 # types are google.type.Date and `google.protobuf.Timestamp`.
6096 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6097 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6098 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6099 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6100 # allow the value 60 if it allows leap-seconds.
6101 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6102 },
6103 &quot;booleanValue&quot;: True or False, # boolean
6104 &quot;floatValue&quot;: 3.14, # float
6105 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6106 },
6107 },
6108 ],
6109 },
6110 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
6111 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
6112 # output would be &#x27;My phone number is &#x27;.
6113 },
6114 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
6115 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
6116 # Note that for the purposes of inspection or transformation, the number
6117 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6118 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6119 # 123456789, the number of bytes would be counted as 9, even though an
6120 # int64 only holds up to 8 bytes of data.
6121 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6122 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6123 # and time zone are either specified elsewhere or are not significant. The date
6124 # is relative to the Proleptic Gregorian Calendar. This can represent:
6125 #
6126 # * A full date, with non-zero year, month and day values
6127 # * A month and day value, with a zero year, e.g. an anniversary
6128 # * A year on its own, with zero month and day values
6129 # * A year and month value, with a zero day, e.g. a credit card expiration date
6130 #
6131 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6132 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6133 # a year.
6134 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6135 # month and day.
6136 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6137 # if specifying a year by itself or a year and month where the day is not
6138 # significant.
6139 },
6140 &quot;stringValue&quot;: &quot;A String&quot;, # string
6141 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6142 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6143 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6144 # types are google.type.Date and `google.protobuf.Timestamp`.
6145 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6146 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6147 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6148 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6149 # allow the value 60 if it allows leap-seconds.
6150 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6151 },
6152 &quot;booleanValue&quot;: True or False, # boolean
6153 &quot;floatValue&quot;: 3.14, # float
6154 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6155 },
6156 },
6157 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
6158 # Bucketing transformation can provide all of this functionality,
6159 # but requires more configuration. This message is provided as a convenience to
6160 # the user for simple bucketing strategies.
6161 #
6162 # The transformed value will be a hyphenated string of
6163 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
6164 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
6165 #
6166 # This can be used on data of type: double, long.
6167 #
6168 # If the bound Value type differs from the type of data
6169 # being transformed, we will first attempt converting the type of the data to
6170 # be transformed to match the type of the bound before comparing.
6171 #
6172 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
6173 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
6174 # grouped together into a single bucket; for example if `upper_bound` = 89,
6175 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
6176 # Note that for the purposes of inspection or transformation, the number
6177 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6178 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6179 # 123456789, the number of bytes would be counted as 9, even though an
6180 # int64 only holds up to 8 bytes of data.
6181 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6182 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6183 # and time zone are either specified elsewhere or are not significant. The date
6184 # is relative to the Proleptic Gregorian Calendar. This can represent:
6185 #
6186 # * A full date, with non-zero year, month and day values
6187 # * A month and day value, with a zero year, e.g. an anniversary
6188 # * A year on its own, with zero month and day values
6189 # * A year and month value, with a zero day, e.g. a credit card expiration date
6190 #
6191 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6192 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6193 # a year.
6194 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6195 # month and day.
6196 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6197 # if specifying a year by itself or a year and month where the day is not
6198 # significant.
6199 },
6200 &quot;stringValue&quot;: &quot;A String&quot;, # string
6201 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6202 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6203 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6204 # types are google.type.Date and `google.protobuf.Timestamp`.
6205 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6206 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6207 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6208 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6209 # allow the value 60 if it allows leap-seconds.
6210 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6211 },
6212 &quot;booleanValue&quot;: True or False, # boolean
6213 &quot;floatValue&quot;: 3.14, # float
6214 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6215 },
6216 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
6217 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
6218 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
6219 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
6220 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
6221 # grouped together into a single bucket; for example if `lower_bound` = 10,
6222 # then all values less than 10 are replaced with the value &quot;-10&quot;.
6223 # Note that for the purposes of inspection or transformation, the number
6224 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6225 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6226 # 123456789, the number of bytes would be counted as 9, even though an
6227 # int64 only holds up to 8 bytes of data.
6228 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6229 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6230 # and time zone are either specified elsewhere or are not significant. The date
6231 # is relative to the Proleptic Gregorian Calendar. This can represent:
6232 #
6233 # * A full date, with non-zero year, month and day values
6234 # * A month and day value, with a zero year, e.g. an anniversary
6235 # * A year on its own, with zero month and day values
6236 # * A year and month value, with a zero day, e.g. a credit card expiration date
6237 #
6238 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6239 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6240 # a year.
6241 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6242 # month and day.
6243 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6244 # if specifying a year by itself or a year and month where the day is not
6245 # significant.
6246 },
6247 &quot;stringValue&quot;: &quot;A String&quot;, # string
6248 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6249 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6250 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6251 # types are google.type.Date and `google.protobuf.Timestamp`.
6252 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6253 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6254 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6255 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6256 # allow the value 60 if it allows leap-seconds.
6257 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6258 },
6259 &quot;booleanValue&quot;: True or False, # boolean
6260 &quot;floatValue&quot;: 3.14, # float
6261 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6262 },
6263 },
6264 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
6265 # fixed character. Masking can start from the beginning or end of the string.
6266 # This can be used on data of any type (numbers, longs, and so on) and when
6267 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
6268 # type. (This allows you to take a long like 123 and modify it to a string like
6269 # **3.
6270 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
6271 # characters. For example, if the input string is `555-555-5555` and you
6272 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
6273 # returns `***-**5-5555`.
6274 { # Characters to skip when doing deidentification of a value. These will be left
6275 # alone and skipped.
6276 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
6277 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
6278 # punctuation.
6279 },
6280 ],
6281 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
6282 # masked. Skipped characters do not count towards this tally.
6283 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
6284 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
6285 # code or credit card number. This string must have a length of 1. If not
6286 # supplied, this value defaults to `*` for strings, and `0` for digits.
6287 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
6288 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
6289 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
6290 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
6291 # is `true`, then the string `12345` is masked as `12***`.
6292 },
6293 },
6294 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
6295 # this transformation to apply to all findings that correspond to
6296 # infoTypes that were requested in `InspectConfig`.
6297 { # Type of information detected by the API.
6298 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
6299 # creating a CustomInfoType, or one of the names listed
6300 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
6301 # a built-in type. InfoType names should conform to the pattern
6302 # `[a-zA-Z0-9_]{1,64}`.
6303 },
6304 ],
6305 },
6306 ],
6307 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006308 &quot;transformationErrorHandling&quot;: { # How to handle transformation errors during de-identification. A # Mode for handling transformation errors. If left unspecified, the default
6309 # mode is `TransformationErrorHandling.ThrowError`.
6310 # transformation error occurs when the requested transformation is incompatible
6311 # with the data. For example, trying to de-identify an IP address using a
6312 # `DateShift` transformation would result in a transformation error, since date
6313 # info cannot be extracted from an IP address.
6314 # Information about any incompatible transformations, and how they were
6315 # handled, is returned in the response as part of the
6316 # `TransformationOverviews`.
6317 &quot;throwError&quot;: { # Throw an error and fail the request when a transformation error occurs. # Throw an error
6318 },
6319 &quot;leaveUntransformed&quot;: { # Skips the data without modifying it if the requested transformation would # Ignore errors
6320 # cause an error. For example, if a `DateShift` transformation were applied
6321 # an an IP address, this mode would leave the IP address unchanged in the
6322 # response.
6323 },
6324 },
6325 &quot;recordTransformations&quot;: { # A type of transformation that is applied over structured data such as a # Treat the dataset as structured. Transformations can be applied to
6326 # specific locations within structured datasets, such as transforming
6327 # a column within a table.
6328 # table.
Bu Sun Kim65020912020-05-20 12:08:20 -07006329 &quot;fieldTransformations&quot;: [ # Transform the record by applying various field transformations.
6330 { # The transformation to apply to the field.
6331 &quot;fields&quot;: [ # Required. Input field(s) to apply the transformation to.
6332 { # General identifier of a data field in a storage service.
6333 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
6334 },
6335 ],
6336 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the contents of the field as free text, and selectively
6337 # transform content that matches an `InfoType`.
6338 # apply various `PrimitiveTransformation`s to each finding, where the
6339 # transformation is applied to only values that were identified as a specific
6340 # info_type.
6341 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
6342 # for a given infoType.
6343 { # A transformation to apply to text that is identified as a specific
6344 # info_type.
Bu Sun Kim65020912020-05-20 12:08:20 -07006345 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
6346 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
6347 # portion of the value.
6348 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
6349 },
6350 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
6351 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
6352 # to learn more.
6353 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
6354 # If set, must also set cryptoKey. If set, shift will be consistent for the
6355 # given context.
6356 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
6357 },
6358 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
6359 # range (inclusive ends). Negative means shift to earlier in time. Must not
6360 # be more than 365250 days (1000 years) each direction.
6361 #
6362 # For example, 3 means shift date to at most 3 days into the future.
6363 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
6364 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
6365 # results in the same shift for the same context and crypto_key. If
6366 # set, must also set context. Can only be applied to table items.
6367 # a key encryption key (KEK) stored by KMS).
6368 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
6369 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
6370 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07006371 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
6372 # leaking the key. Choose another type of key if possible.
6373 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
6374 },
6375 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
6376 # It will be discarded after the request finishes.
6377 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
6378 # This is an arbitrary string used to differentiate different keys.
6379 # A unique key is generated per name: two separate `TransientCryptoKey`
6380 # protos share the same generated key if their names are the same.
6381 # When the data crypto key is generated, this name is not used in any way
6382 # (repeating the api call will result in a different key being generated).
6383 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006384 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
6385 # The wrapped key must be a 128/192/256 bit key.
6386 # Authorization requires the following IAM permissions when sending a request
6387 # to perform a crypto transformation using a kms-wrapped crypto key:
6388 # dlp.kms.encrypt
6389 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
6390 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
6391 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006392 },
6393 },
6394 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
6395 },
6396 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
6397 # Uses SHA-256.
6398 # The key size must be either 32 or 64 bytes.
6399 # Outputs a base64 encoded representation of the hashed output
6400 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
6401 # Currently, only string and integer values can be hashed.
6402 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
6403 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
6404 # a key encryption key (KEK) stored by KMS).
6405 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
6406 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
6407 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07006408 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
6409 # leaking the key. Choose another type of key if possible.
6410 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
6411 },
6412 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
6413 # It will be discarded after the request finishes.
6414 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
6415 # This is an arbitrary string used to differentiate different keys.
6416 # A unique key is generated per name: two separate `TransientCryptoKey`
6417 # protos share the same generated key if their names are the same.
6418 # When the data crypto key is generated, this name is not used in any way
6419 # (repeating the api call will result in a different key being generated).
6420 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006421 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
6422 # The wrapped key must be a 128/192/256 bit key.
6423 # Authorization requires the following IAM permissions when sending a request
6424 # to perform a crypto transformation using a kms-wrapped crypto key:
6425 # dlp.kms.encrypt
6426 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
6427 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
6428 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006429 },
6430 },
6431 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
6432 # (FPE) with the FFX mode of operation; however when used in the
6433 # `ReidentifyContent` API method, it serves the opposite function by reversing
6434 # the surrogate back into the original identifier. The identifier must be
6435 # encoded as ASCII. For a given crypto key and context, the same identifier
6436 # will be replaced with the same surrogate. Identifiers must be at least two
6437 # characters long. In the case that the identifier is the empty string, it will
6438 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
6439 # more.
6440 #
6441 # Note: We recommend using CryptoDeterministicConfig for all use cases which
6442 # do not require preserving the input alphabet space and size, plus warrant
6443 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07006444 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
6445 # This annotation will be applied to the surrogate by prefixing it with
6446 # the name of the custom infoType followed by the number of
6447 # characters comprising the surrogate. The following scheme defines the
6448 # format: info_type_name(surrogate_character_count):surrogate
6449 #
6450 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
6451 # the surrogate is &#x27;abc&#x27;, the full replacement value
6452 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
6453 #
6454 # This annotation identifies the surrogate when inspecting content using the
6455 # custom infoType
6456 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
6457 # This facilitates reversal of the surrogate when it occurs in free text.
6458 #
6459 # In order for inspection to work properly, the name of this infoType must
6460 # not occur naturally anywhere in your data; otherwise, inspection may
6461 # find a surrogate that does not correspond to an actual identifier.
6462 # Therefore, choose your custom infoType name carefully after considering
6463 # what your data looks like. One way to select a name that has a high chance
6464 # of yielding reliable detection is to include one or more unicode characters
6465 # that are highly improbable to exist in your data.
6466 # For example, assuming your data is entered from a regular ASCII keyboard,
6467 # the symbol with the hex code point 29DD might be used like so:
6468 # ⧝MY_TOKEN_TYPE
6469 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
6470 # creating a CustomInfoType, or one of the names listed
6471 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
6472 # a built-in type. InfoType names should conform to the pattern
6473 # `[a-zA-Z0-9_]{1,64}`.
6474 },
6475 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
6476 # identifier in two different contexts won&#x27;t be given the same surrogate. If
6477 # the context is not set, a default tweak will be used.
6478 #
6479 # If the context is set but:
6480 #
6481 # 1. there is no record present when transforming a given value or
6482 # 1. the field is not present when transforming a given value,
6483 #
6484 # a default tweak will be used.
6485 #
6486 # Note that case (1) is expected when an `InfoTypeTransformation` is
6487 # applied to both structured and non-structured `ContentItem`s.
6488 # Currently, the referenced field may be of value type integer or string.
6489 #
6490 # The tweak is constructed as a sequence of bytes in big endian byte order
6491 # such that:
6492 #
6493 # - a 64 bit integer is encoded followed by a single byte of value 1
6494 # - a string is encoded in UTF-8 format followed by a single byte of value 2
6495 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
6496 },
6497 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
6498 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
6499 # a key encryption key (KEK) stored by KMS).
6500 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
6501 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
6502 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07006503 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
6504 # leaking the key. Choose another type of key if possible.
6505 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
6506 },
6507 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
6508 # It will be discarded after the request finishes.
6509 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
6510 # This is an arbitrary string used to differentiate different keys.
6511 # A unique key is generated per name: two separate `TransientCryptoKey`
6512 # protos share the same generated key if their names are the same.
6513 # When the data crypto key is generated, this name is not used in any way
6514 # (repeating the api call will result in a different key being generated).
6515 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006516 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
6517 # The wrapped key must be a 128/192/256 bit key.
6518 # Authorization requires the following IAM permissions when sending a request
6519 # to perform a crypto transformation using a kms-wrapped crypto key:
6520 # dlp.kms.encrypt
6521 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
6522 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
6523 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006524 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006525 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
6526 # that the FFX mode natively supports. This happens before/after
6527 # encryption/decryption.
6528 # Each character listed must appear only once.
6529 # Number of characters must be in the range [2, 95].
6530 # This must be encoded as ASCII.
6531 # The order of characters does not matter.
6532 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07006533 },
6534 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
6535 # input. Outputs a base64 encoded representation of the encrypted output.
6536 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
6537 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
6538 # This annotation will be applied to the surrogate by prefixing it with
6539 # the name of the custom info type followed by the number of
6540 # characters comprising the surrogate. The following scheme defines the
6541 # format: {info type name}({surrogate character count}):{surrogate}
6542 #
6543 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
6544 # the surrogate is &#x27;abc&#x27;, the full replacement value
6545 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
6546 #
6547 # This annotation identifies the surrogate when inspecting content using the
6548 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
6549 # surrogate when it occurs in free text.
6550 #
6551 # Note: For record transformations where the entire cell in a table is being
6552 # transformed, surrogates are not mandatory. Surrogates are used to denote
6553 # the location of the token and are necessary for re-identification in free
6554 # form text.
6555 #
6556 # In order for inspection to work properly, the name of this info type must
6557 # not occur naturally anywhere in your data; otherwise, inspection may either
6558 #
6559 # - reverse a surrogate that does not correspond to an actual identifier
6560 # - be unable to parse the surrogate and result in an error
6561 #
6562 # Therefore, choose your custom info type name carefully after considering
6563 # what your data looks like. One way to select a name that has a high chance
6564 # of yielding reliable detection is to include one or more unicode characters
6565 # that are highly improbable to exist in your data.
6566 # For example, assuming your data is entered from a regular ASCII keyboard,
6567 # the symbol with the hex code point 29DD might be used like so:
6568 # ⧝MY_TOKEN_TYPE.
6569 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
6570 # creating a CustomInfoType, or one of the names listed
6571 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
6572 # a built-in type. InfoType names should conform to the pattern
6573 # `[a-zA-Z0-9_]{1,64}`.
6574 },
6575 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
6576 # referential integrity such that the same identifier in two different
6577 # contexts will be given a distinct surrogate. The context is appended to
6578 # plaintext value being encrypted. On decryption the provided context is
6579 # validated against the value used during encryption. If a context was
6580 # provided during encryption, same context must be provided during decryption
6581 # as well.
6582 #
6583 # If the context is not set, plaintext would be used as is for encryption.
6584 # If the context is set but:
6585 #
6586 # 1. there is no record present when transforming a given value or
6587 # 2. the field is not present when transforming a given value,
6588 #
6589 # plaintext would be used as is for encryption.
6590 #
6591 # Note that case (1) is expected when an `InfoTypeTransformation` is
6592 # applied to both structured and non-structured `ContentItem`s.
6593 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
6594 },
6595 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
6596 # a key encryption key (KEK) stored by KMS).
6597 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
6598 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
6599 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07006600 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
6601 # leaking the key. Choose another type of key if possible.
6602 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
6603 },
6604 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
6605 # It will be discarded after the request finishes.
6606 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
6607 # This is an arbitrary string used to differentiate different keys.
6608 # A unique key is generated per name: two separate `TransientCryptoKey`
6609 # protos share the same generated key if their names are the same.
6610 # When the data crypto key is generated, this name is not used in any way
6611 # (repeating the api call will result in a different key being generated).
6612 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006613 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
6614 # The wrapped key must be a 128/192/256 bit key.
6615 # Authorization requires the following IAM permissions when sending a request
6616 # to perform a crypto transformation using a kms-wrapped crypto key:
6617 # dlp.kms.encrypt
6618 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
6619 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
6620 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006621 },
6622 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006623 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
6624 # replacement values are dynamically provided by the user for custom behavior,
6625 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
6626 # This can be used on
6627 # data of type: number, long, string, timestamp.
6628 # If the bound `Value` type differs from the type of data being transformed, we
6629 # will first attempt converting the type of the data to be transformed to match
6630 # the type of the bound before comparing.
6631 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
6632 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
6633 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07006634 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
6635 # the default behavior will be to hyphenate the min-max range.
6636 # Note that for the purposes of inspection or transformation, the number
6637 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6638 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6639 # 123456789, the number of bytes would be counted as 9, even though an
6640 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07006641 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6642 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6643 # and time zone are either specified elsewhere or are not significant. The date
6644 # is relative to the Proleptic Gregorian Calendar. This can represent:
6645 #
6646 # * A full date, with non-zero year, month and day values
6647 # * A month and day value, with a zero year, e.g. an anniversary
6648 # * A year on its own, with zero month and day values
6649 # * A year and month value, with a zero day, e.g. a credit card expiration date
6650 #
6651 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6652 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6653 # a year.
6654 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6655 # month and day.
6656 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6657 # if specifying a year by itself or a year and month where the day is not
6658 # significant.
6659 },
6660 &quot;stringValue&quot;: &quot;A String&quot;, # string
6661 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6662 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6663 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6664 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006665 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6666 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6667 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006668 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6669 # allow the value 60 if it allows leap-seconds.
6670 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07006671 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006672 &quot;booleanValue&quot;: True or False, # boolean
6673 &quot;floatValue&quot;: 3.14, # float
6674 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6675 },
6676 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
6677 # used.
6678 # Note that for the purposes of inspection or transformation, the number
6679 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6680 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6681 # 123456789, the number of bytes would be counted as 9, even though an
6682 # int64 only holds up to 8 bytes of data.
6683 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6684 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6685 # and time zone are either specified elsewhere or are not significant. The date
6686 # is relative to the Proleptic Gregorian Calendar. This can represent:
6687 #
6688 # * A full date, with non-zero year, month and day values
6689 # * A month and day value, with a zero year, e.g. an anniversary
6690 # * A year on its own, with zero month and day values
6691 # * A year and month value, with a zero day, e.g. a credit card expiration date
6692 #
6693 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6694 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6695 # a year.
6696 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6697 # month and day.
6698 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6699 # if specifying a year by itself or a year and month where the day is not
6700 # significant.
6701 },
6702 &quot;stringValue&quot;: &quot;A String&quot;, # string
6703 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6704 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6705 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6706 # types are google.type.Date and `google.protobuf.Timestamp`.
6707 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6708 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6709 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6710 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6711 # allow the value 60 if it allows leap-seconds.
6712 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6713 },
6714 &quot;booleanValue&quot;: True or False, # boolean
6715 &quot;floatValue&quot;: 3.14, # float
6716 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6717 },
6718 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
6719 # Note that for the purposes of inspection or transformation, the number
6720 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6721 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6722 # 123456789, the number of bytes would be counted as 9, even though an
6723 # int64 only holds up to 8 bytes of data.
6724 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6725 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6726 # and time zone are either specified elsewhere or are not significant. The date
6727 # is relative to the Proleptic Gregorian Calendar. This can represent:
6728 #
6729 # * A full date, with non-zero year, month and day values
6730 # * A month and day value, with a zero year, e.g. an anniversary
6731 # * A year on its own, with zero month and day values
6732 # * A year and month value, with a zero day, e.g. a credit card expiration date
6733 #
6734 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6735 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6736 # a year.
6737 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6738 # month and day.
6739 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6740 # if specifying a year by itself or a year and month where the day is not
6741 # significant.
6742 },
6743 &quot;stringValue&quot;: &quot;A String&quot;, # string
6744 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6745 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6746 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6747 # types are google.type.Date and `google.protobuf.Timestamp`.
6748 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6749 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6750 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6751 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6752 # allow the value 60 if it allows leap-seconds.
6753 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6754 },
6755 &quot;booleanValue&quot;: True or False, # boolean
6756 &quot;floatValue&quot;: 3.14, # float
6757 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07006758 },
6759 },
6760 ],
6761 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006762 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
6763 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
6764 # output would be &#x27;My phone number is &#x27;.
6765 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006766 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
6767 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
6768 # Note that for the purposes of inspection or transformation, the number
6769 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6770 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6771 # 123456789, the number of bytes would be counted as 9, even though an
6772 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07006773 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6774 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6775 # and time zone are either specified elsewhere or are not significant. The date
6776 # is relative to the Proleptic Gregorian Calendar. This can represent:
6777 #
6778 # * A full date, with non-zero year, month and day values
6779 # * A month and day value, with a zero year, e.g. an anniversary
6780 # * A year on its own, with zero month and day values
6781 # * A year and month value, with a zero day, e.g. a credit card expiration date
6782 #
6783 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6784 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6785 # a year.
6786 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6787 # month and day.
6788 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6789 # if specifying a year by itself or a year and month where the day is not
6790 # significant.
6791 },
6792 &quot;stringValue&quot;: &quot;A String&quot;, # string
6793 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6794 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6795 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6796 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006797 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6798 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6799 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006800 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6801 # allow the value 60 if it allows leap-seconds.
6802 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07006803 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006804 &quot;booleanValue&quot;: True or False, # boolean
6805 &quot;floatValue&quot;: 3.14, # float
6806 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07006807 },
6808 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006809 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
6810 # Bucketing transformation can provide all of this functionality,
6811 # but requires more configuration. This message is provided as a convenience to
6812 # the user for simple bucketing strategies.
6813 #
6814 # The transformed value will be a hyphenated string of
6815 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
6816 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
6817 #
6818 # This can be used on data of type: double, long.
6819 #
6820 # If the bound Value type differs from the type of data
6821 # being transformed, we will first attempt converting the type of the data to
6822 # be transformed to match the type of the bound before comparing.
6823 #
6824 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07006825 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
6826 # grouped together into a single bucket; for example if `upper_bound` = 89,
6827 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
6828 # Note that for the purposes of inspection or transformation, the number
6829 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6830 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6831 # 123456789, the number of bytes would be counted as 9, even though an
6832 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07006833 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6834 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6835 # and time zone are either specified elsewhere or are not significant. The date
6836 # is relative to the Proleptic Gregorian Calendar. This can represent:
6837 #
6838 # * A full date, with non-zero year, month and day values
6839 # * A month and day value, with a zero year, e.g. an anniversary
6840 # * A year on its own, with zero month and day values
6841 # * A year and month value, with a zero day, e.g. a credit card expiration date
6842 #
6843 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6844 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6845 # a year.
6846 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6847 # month and day.
6848 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6849 # if specifying a year by itself or a year and month where the day is not
6850 # significant.
6851 },
6852 &quot;stringValue&quot;: &quot;A String&quot;, # string
6853 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6854 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6855 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6856 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006857 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6858 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6859 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006860 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6861 # allow the value 60 if it allows leap-seconds.
6862 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07006863 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006864 &quot;booleanValue&quot;: True or False, # boolean
6865 &quot;floatValue&quot;: 3.14, # float
6866 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07006867 },
6868 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
6869 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
6870 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
6871 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006872 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
6873 # grouped together into a single bucket; for example if `lower_bound` = 10,
6874 # then all values less than 10 are replaced with the value &quot;-10&quot;.
6875 # Note that for the purposes of inspection or transformation, the number
6876 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
6877 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
6878 # 123456789, the number of bytes would be counted as 9, even though an
6879 # int64 only holds up to 8 bytes of data.
6880 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
6881 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
6882 # and time zone are either specified elsewhere or are not significant. The date
6883 # is relative to the Proleptic Gregorian Calendar. This can represent:
6884 #
6885 # * A full date, with non-zero year, month and day values
6886 # * A month and day value, with a zero year, e.g. an anniversary
6887 # * A year on its own, with zero month and day values
6888 # * A year and month value, with a zero day, e.g. a credit card expiration date
6889 #
6890 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
6891 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
6892 # a year.
6893 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
6894 # month and day.
6895 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
6896 # if specifying a year by itself or a year and month where the day is not
6897 # significant.
6898 },
6899 &quot;stringValue&quot;: &quot;A String&quot;, # string
6900 &quot;integerValue&quot;: &quot;A String&quot;, # integer
6901 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
6902 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6903 # types are google.type.Date and `google.protobuf.Timestamp`.
6904 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6905 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6906 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6907 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6908 # allow the value 60 if it allows leap-seconds.
6909 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6910 },
6911 &quot;booleanValue&quot;: True or False, # boolean
6912 &quot;floatValue&quot;: 3.14, # float
6913 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
6914 },
6915 },
6916 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
6917 # fixed character. Masking can start from the beginning or end of the string.
6918 # This can be used on data of any type (numbers, longs, and so on) and when
6919 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
6920 # type. (This allows you to take a long like 123 and modify it to a string like
6921 # **3.
6922 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
6923 # characters. For example, if the input string is `555-555-5555` and you
6924 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
6925 # returns `***-**5-5555`.
6926 { # Characters to skip when doing deidentification of a value. These will be left
6927 # alone and skipped.
6928 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
6929 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
6930 # punctuation.
6931 },
6932 ],
6933 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
6934 # masked. Skipped characters do not count towards this tally.
6935 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
6936 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
6937 # code or credit card number. This string must have a length of 1. If not
6938 # supplied, this value defaults to `*` for strings, and `0` for digits.
6939 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
6940 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
6941 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
6942 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
6943 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006944 },
6945 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006946 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
6947 # this transformation to apply to all findings that correspond to
6948 # infoTypes that were requested in `InspectConfig`.
6949 { # Type of information detected by the API.
6950 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
6951 # creating a CustomInfoType, or one of the names listed
6952 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
6953 # a built-in type. InfoType names should conform to the pattern
6954 # `[a-zA-Z0-9_]{1,64}`.
6955 },
6956 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006957 },
6958 ],
6959 },
6960 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Apply the transformation to the entire field.
6961 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
6962 # portion of the value.
6963 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
6964 },
6965 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
6966 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
6967 # to learn more.
6968 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
6969 # If set, must also set cryptoKey. If set, shift will be consistent for the
6970 # given context.
6971 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
6972 },
6973 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
6974 # range (inclusive ends). Negative means shift to earlier in time. Must not
6975 # be more than 365250 days (1000 years) each direction.
6976 #
6977 # For example, 3 means shift date to at most 3 days into the future.
6978 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
6979 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
6980 # results in the same shift for the same context and crypto_key. If
6981 # set, must also set context. Can only be applied to table items.
6982 # a key encryption key (KEK) stored by KMS).
6983 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
6984 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
6985 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07006986 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
6987 # leaking the key. Choose another type of key if possible.
6988 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
6989 },
6990 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
6991 # It will be discarded after the request finishes.
6992 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
6993 # This is an arbitrary string used to differentiate different keys.
6994 # A unique key is generated per name: two separate `TransientCryptoKey`
6995 # protos share the same generated key if their names are the same.
6996 # When the data crypto key is generated, this name is not used in any way
6997 # (repeating the api call will result in a different key being generated).
6998 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07006999 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7000 # The wrapped key must be a 128/192/256 bit key.
7001 # Authorization requires the following IAM permissions when sending a request
7002 # to perform a crypto transformation using a kms-wrapped crypto key:
7003 # dlp.kms.encrypt
7004 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7005 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7006 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007007 },
7008 },
7009 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
7010 },
7011 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
7012 # Uses SHA-256.
7013 # The key size must be either 32 or 64 bytes.
7014 # Outputs a base64 encoded representation of the hashed output
7015 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
7016 # Currently, only string and integer values can be hashed.
7017 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
7018 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
7019 # a key encryption key (KEK) stored by KMS).
7020 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7021 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7022 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007023 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7024 # leaking the key. Choose another type of key if possible.
7025 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7026 },
7027 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7028 # It will be discarded after the request finishes.
7029 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
7030 # This is an arbitrary string used to differentiate different keys.
7031 # A unique key is generated per name: two separate `TransientCryptoKey`
7032 # protos share the same generated key if their names are the same.
7033 # When the data crypto key is generated, this name is not used in any way
7034 # (repeating the api call will result in a different key being generated).
7035 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007036 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7037 # The wrapped key must be a 128/192/256 bit key.
7038 # Authorization requires the following IAM permissions when sending a request
7039 # to perform a crypto transformation using a kms-wrapped crypto key:
7040 # dlp.kms.encrypt
7041 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7042 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7043 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007044 },
7045 },
7046 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
7047 # (FPE) with the FFX mode of operation; however when used in the
7048 # `ReidentifyContent` API method, it serves the opposite function by reversing
7049 # the surrogate back into the original identifier. The identifier must be
7050 # encoded as ASCII. For a given crypto key and context, the same identifier
7051 # will be replaced with the same surrogate. Identifiers must be at least two
7052 # characters long. In the case that the identifier is the empty string, it will
7053 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
7054 # more.
7055 #
7056 # Note: We recommend using CryptoDeterministicConfig for all use cases which
7057 # do not require preserving the input alphabet space and size, plus warrant
7058 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07007059 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
7060 # This annotation will be applied to the surrogate by prefixing it with
7061 # the name of the custom infoType followed by the number of
7062 # characters comprising the surrogate. The following scheme defines the
7063 # format: info_type_name(surrogate_character_count):surrogate
7064 #
7065 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
7066 # the surrogate is &#x27;abc&#x27;, the full replacement value
7067 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
7068 #
7069 # This annotation identifies the surrogate when inspecting content using the
7070 # custom infoType
7071 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
7072 # This facilitates reversal of the surrogate when it occurs in free text.
7073 #
7074 # In order for inspection to work properly, the name of this infoType must
7075 # not occur naturally anywhere in your data; otherwise, inspection may
7076 # find a surrogate that does not correspond to an actual identifier.
7077 # Therefore, choose your custom infoType name carefully after considering
7078 # what your data looks like. One way to select a name that has a high chance
7079 # of yielding reliable detection is to include one or more unicode characters
7080 # that are highly improbable to exist in your data.
7081 # For example, assuming your data is entered from a regular ASCII keyboard,
7082 # the symbol with the hex code point 29DD might be used like so:
7083 # ⧝MY_TOKEN_TYPE
7084 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
7085 # creating a CustomInfoType, or one of the names listed
7086 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
7087 # a built-in type. InfoType names should conform to the pattern
7088 # `[a-zA-Z0-9_]{1,64}`.
7089 },
7090 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
7091 # identifier in two different contexts won&#x27;t be given the same surrogate. If
7092 # the context is not set, a default tweak will be used.
7093 #
7094 # If the context is set but:
7095 #
7096 # 1. there is no record present when transforming a given value or
7097 # 1. the field is not present when transforming a given value,
7098 #
7099 # a default tweak will be used.
7100 #
7101 # Note that case (1) is expected when an `InfoTypeTransformation` is
7102 # applied to both structured and non-structured `ContentItem`s.
7103 # Currently, the referenced field may be of value type integer or string.
7104 #
7105 # The tweak is constructed as a sequence of bytes in big endian byte order
7106 # such that:
7107 #
7108 # - a 64 bit integer is encoded followed by a single byte of value 1
7109 # - a string is encoded in UTF-8 format followed by a single byte of value 2
7110 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7111 },
7112 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
7113 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
7114 # a key encryption key (KEK) stored by KMS).
7115 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7116 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7117 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007118 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7119 # leaking the key. Choose another type of key if possible.
7120 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7121 },
7122 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7123 # It will be discarded after the request finishes.
7124 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
7125 # This is an arbitrary string used to differentiate different keys.
7126 # A unique key is generated per name: two separate `TransientCryptoKey`
7127 # protos share the same generated key if their names are the same.
7128 # When the data crypto key is generated, this name is not used in any way
7129 # (repeating the api call will result in a different key being generated).
7130 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007131 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7132 # The wrapped key must be a 128/192/256 bit key.
7133 # Authorization requires the following IAM permissions when sending a request
7134 # to perform a crypto transformation using a kms-wrapped crypto key:
7135 # dlp.kms.encrypt
7136 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7137 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7138 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007139 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007140 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
7141 # that the FFX mode natively supports. This happens before/after
7142 # encryption/decryption.
7143 # Each character listed must appear only once.
7144 # Number of characters must be in the range [2, 95].
7145 # This must be encoded as ASCII.
7146 # The order of characters does not matter.
7147 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07007148 },
7149 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
7150 # input. Outputs a base64 encoded representation of the encrypted output.
7151 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
7152 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
7153 # This annotation will be applied to the surrogate by prefixing it with
7154 # the name of the custom info type followed by the number of
7155 # characters comprising the surrogate. The following scheme defines the
7156 # format: {info type name}({surrogate character count}):{surrogate}
7157 #
7158 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
7159 # the surrogate is &#x27;abc&#x27;, the full replacement value
7160 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
7161 #
7162 # This annotation identifies the surrogate when inspecting content using the
7163 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
7164 # surrogate when it occurs in free text.
7165 #
7166 # Note: For record transformations where the entire cell in a table is being
7167 # transformed, surrogates are not mandatory. Surrogates are used to denote
7168 # the location of the token and are necessary for re-identification in free
7169 # form text.
7170 #
7171 # In order for inspection to work properly, the name of this info type must
7172 # not occur naturally anywhere in your data; otherwise, inspection may either
7173 #
7174 # - reverse a surrogate that does not correspond to an actual identifier
7175 # - be unable to parse the surrogate and result in an error
7176 #
7177 # Therefore, choose your custom info type name carefully after considering
7178 # what your data looks like. One way to select a name that has a high chance
7179 # of yielding reliable detection is to include one or more unicode characters
7180 # that are highly improbable to exist in your data.
7181 # For example, assuming your data is entered from a regular ASCII keyboard,
7182 # the symbol with the hex code point 29DD might be used like so:
7183 # ⧝MY_TOKEN_TYPE.
7184 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
7185 # creating a CustomInfoType, or one of the names listed
7186 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
7187 # a built-in type. InfoType names should conform to the pattern
7188 # `[a-zA-Z0-9_]{1,64}`.
7189 },
7190 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
7191 # referential integrity such that the same identifier in two different
7192 # contexts will be given a distinct surrogate. The context is appended to
7193 # plaintext value being encrypted. On decryption the provided context is
7194 # validated against the value used during encryption. If a context was
7195 # provided during encryption, same context must be provided during decryption
7196 # as well.
7197 #
7198 # If the context is not set, plaintext would be used as is for encryption.
7199 # If the context is set but:
7200 #
7201 # 1. there is no record present when transforming a given value or
7202 # 2. the field is not present when transforming a given value,
7203 #
7204 # plaintext would be used as is for encryption.
7205 #
7206 # Note that case (1) is expected when an `InfoTypeTransformation` is
7207 # applied to both structured and non-structured `ContentItem`s.
7208 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7209 },
7210 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
7211 # a key encryption key (KEK) stored by KMS).
7212 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7213 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7214 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007215 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7216 # leaking the key. Choose another type of key if possible.
7217 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7218 },
7219 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7220 # It will be discarded after the request finishes.
7221 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
7222 # This is an arbitrary string used to differentiate different keys.
7223 # A unique key is generated per name: two separate `TransientCryptoKey`
7224 # protos share the same generated key if their names are the same.
7225 # When the data crypto key is generated, this name is not used in any way
7226 # (repeating the api call will result in a different key being generated).
7227 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007228 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7229 # The wrapped key must be a 128/192/256 bit key.
7230 # Authorization requires the following IAM permissions when sending a request
7231 # to perform a crypto transformation using a kms-wrapped crypto key:
7232 # dlp.kms.encrypt
7233 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7234 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007236 },
7237 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007238 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
7239 # replacement values are dynamically provided by the user for custom behavior,
7240 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
7241 # This can be used on
7242 # data of type: number, long, string, timestamp.
7243 # If the bound `Value` type differs from the type of data being transformed, we
7244 # will first attempt converting the type of the data to be transformed to match
7245 # the type of the bound before comparing.
7246 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
7247 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
7248 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07007249 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
7250 # the default behavior will be to hyphenate the min-max range.
7251 # Note that for the purposes of inspection or transformation, the number
7252 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7253 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7254 # 123456789, the number of bytes would be counted as 9, even though an
7255 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07007256 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7257 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7258 # and time zone are either specified elsewhere or are not significant. The date
7259 # is relative to the Proleptic Gregorian Calendar. This can represent:
7260 #
7261 # * A full date, with non-zero year, month and day values
7262 # * A month and day value, with a zero year, e.g. an anniversary
7263 # * A year on its own, with zero month and day values
7264 # * A year and month value, with a zero day, e.g. a credit card expiration date
7265 #
7266 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7267 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7268 # a year.
7269 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7270 # month and day.
7271 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7272 # if specifying a year by itself or a year and month where the day is not
7273 # significant.
7274 },
7275 &quot;stringValue&quot;: &quot;A String&quot;, # string
7276 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7277 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7278 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7279 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007280 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7281 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7282 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007283 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7284 # allow the value 60 if it allows leap-seconds.
7285 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07007286 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007287 &quot;booleanValue&quot;: True or False, # boolean
7288 &quot;floatValue&quot;: 3.14, # float
7289 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
7290 },
7291 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
7292 # used.
7293 # Note that for the purposes of inspection or transformation, the number
7294 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7295 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7296 # 123456789, the number of bytes would be counted as 9, even though an
7297 # int64 only holds up to 8 bytes of data.
7298 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7299 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7300 # and time zone are either specified elsewhere or are not significant. The date
7301 # is relative to the Proleptic Gregorian Calendar. This can represent:
7302 #
7303 # * A full date, with non-zero year, month and day values
7304 # * A month and day value, with a zero year, e.g. an anniversary
7305 # * A year on its own, with zero month and day values
7306 # * A year and month value, with a zero day, e.g. a credit card expiration date
7307 #
7308 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7309 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7310 # a year.
7311 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7312 # month and day.
7313 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7314 # if specifying a year by itself or a year and month where the day is not
7315 # significant.
7316 },
7317 &quot;stringValue&quot;: &quot;A String&quot;, # string
7318 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7319 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7320 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7321 # types are google.type.Date and `google.protobuf.Timestamp`.
7322 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7323 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7324 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
7325 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7326 # allow the value 60 if it allows leap-seconds.
7327 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
7328 },
7329 &quot;booleanValue&quot;: True or False, # boolean
7330 &quot;floatValue&quot;: 3.14, # float
7331 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
7332 },
7333 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
7334 # Note that for the purposes of inspection or transformation, the number
7335 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7336 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7337 # 123456789, the number of bytes would be counted as 9, even though an
7338 # int64 only holds up to 8 bytes of data.
7339 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7340 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7341 # and time zone are either specified elsewhere or are not significant. The date
7342 # is relative to the Proleptic Gregorian Calendar. This can represent:
7343 #
7344 # * A full date, with non-zero year, month and day values
7345 # * A month and day value, with a zero year, e.g. an anniversary
7346 # * A year on its own, with zero month and day values
7347 # * A year and month value, with a zero day, e.g. a credit card expiration date
7348 #
7349 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7350 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7351 # a year.
7352 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7353 # month and day.
7354 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7355 # if specifying a year by itself or a year and month where the day is not
7356 # significant.
7357 },
7358 &quot;stringValue&quot;: &quot;A String&quot;, # string
7359 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7360 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7361 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7362 # types are google.type.Date and `google.protobuf.Timestamp`.
7363 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7364 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7365 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
7366 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7367 # allow the value 60 if it allows leap-seconds.
7368 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
7369 },
7370 &quot;booleanValue&quot;: True or False, # boolean
7371 &quot;floatValue&quot;: 3.14, # float
7372 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07007373 },
7374 },
7375 ],
7376 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007377 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
7378 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
7379 # output would be &#x27;My phone number is &#x27;.
7380 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007381 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
7382 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
7383 # Note that for the purposes of inspection or transformation, the number
7384 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7385 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7386 # 123456789, the number of bytes would be counted as 9, even though an
7387 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07007388 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7389 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7390 # and time zone are either specified elsewhere or are not significant. The date
7391 # is relative to the Proleptic Gregorian Calendar. This can represent:
7392 #
7393 # * A full date, with non-zero year, month and day values
7394 # * A month and day value, with a zero year, e.g. an anniversary
7395 # * A year on its own, with zero month and day values
7396 # * A year and month value, with a zero day, e.g. a credit card expiration date
7397 #
7398 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7399 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7400 # a year.
7401 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7402 # month and day.
7403 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7404 # if specifying a year by itself or a year and month where the day is not
7405 # significant.
7406 },
7407 &quot;stringValue&quot;: &quot;A String&quot;, # string
7408 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7409 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7410 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7411 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007412 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7413 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7414 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007415 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7416 # allow the value 60 if it allows leap-seconds.
7417 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07007418 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007419 &quot;booleanValue&quot;: True or False, # boolean
7420 &quot;floatValue&quot;: 3.14, # float
7421 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07007422 },
7423 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007424 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
7425 # Bucketing transformation can provide all of this functionality,
7426 # but requires more configuration. This message is provided as a convenience to
7427 # the user for simple bucketing strategies.
7428 #
7429 # The transformed value will be a hyphenated string of
7430 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
7431 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
7432 #
7433 # This can be used on data of type: double, long.
7434 #
7435 # If the bound Value type differs from the type of data
7436 # being transformed, we will first attempt converting the type of the data to
7437 # be transformed to match the type of the bound before comparing.
7438 #
7439 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07007440 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
7441 # grouped together into a single bucket; for example if `upper_bound` = 89,
7442 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
7443 # Note that for the purposes of inspection or transformation, the number
7444 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7445 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7446 # 123456789, the number of bytes would be counted as 9, even though an
7447 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07007448 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7449 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7450 # and time zone are either specified elsewhere or are not significant. The date
7451 # is relative to the Proleptic Gregorian Calendar. This can represent:
7452 #
7453 # * A full date, with non-zero year, month and day values
7454 # * A month and day value, with a zero year, e.g. an anniversary
7455 # * A year on its own, with zero month and day values
7456 # * A year and month value, with a zero day, e.g. a credit card expiration date
7457 #
7458 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7459 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7460 # a year.
7461 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7462 # month and day.
7463 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7464 # if specifying a year by itself or a year and month where the day is not
7465 # significant.
7466 },
7467 &quot;stringValue&quot;: &quot;A String&quot;, # string
7468 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7469 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7470 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7471 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007472 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7473 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7474 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007475 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7476 # allow the value 60 if it allows leap-seconds.
7477 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07007478 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007479 &quot;booleanValue&quot;: True or False, # boolean
7480 &quot;floatValue&quot;: 3.14, # float
7481 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07007482 },
7483 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
7484 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
7485 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
7486 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007487 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
7488 # grouped together into a single bucket; for example if `lower_bound` = 10,
7489 # then all values less than 10 are replaced with the value &quot;-10&quot;.
7490 # Note that for the purposes of inspection or transformation, the number
7491 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7492 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7493 # 123456789, the number of bytes would be counted as 9, even though an
7494 # int64 only holds up to 8 bytes of data.
7495 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7496 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7497 # and time zone are either specified elsewhere or are not significant. The date
7498 # is relative to the Proleptic Gregorian Calendar. This can represent:
7499 #
7500 # * A full date, with non-zero year, month and day values
7501 # * A month and day value, with a zero year, e.g. an anniversary
7502 # * A year on its own, with zero month and day values
7503 # * A year and month value, with a zero day, e.g. a credit card expiration date
7504 #
7505 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7506 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7507 # a year.
7508 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7509 # month and day.
7510 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7511 # if specifying a year by itself or a year and month where the day is not
7512 # significant.
7513 },
7514 &quot;stringValue&quot;: &quot;A String&quot;, # string
7515 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7516 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7517 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7518 # types are google.type.Date and `google.protobuf.Timestamp`.
7519 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7520 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7521 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
7522 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7523 # allow the value 60 if it allows leap-seconds.
7524 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
7525 },
7526 &quot;booleanValue&quot;: True or False, # boolean
7527 &quot;floatValue&quot;: 3.14, # float
7528 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
7529 },
7530 },
7531 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
7532 # fixed character. Masking can start from the beginning or end of the string.
7533 # This can be used on data of any type (numbers, longs, and so on) and when
7534 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
7535 # type. (This allows you to take a long like 123 and modify it to a string like
7536 # **3.
7537 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
7538 # characters. For example, if the input string is `555-555-5555` and you
7539 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
7540 # returns `***-**5-5555`.
7541 { # Characters to skip when doing deidentification of a value. These will be left
7542 # alone and skipped.
7543 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
7544 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
7545 # punctuation.
7546 },
7547 ],
7548 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
7549 # masked. Skipped characters do not count towards this tally.
7550 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
7551 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
7552 # code or credit card number. This string must have a length of 1. If not
7553 # supplied, this value defaults to `*` for strings, and `0` for digits.
7554 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
7555 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
7556 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
7557 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
7558 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007559 },
7560 },
7561 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # Only apply the transformation if the condition evaluates to true for the
7562 # given `RecordCondition`. The conditions are allowed to reference fields
7563 # that are not used in the actual transformation.
7564 #
7565 # Example Use Cases:
7566 #
7567 # - Apply a different bucket transformation to an age column if the zip code
7568 # column for the same record is within a specific range.
7569 # - Redact a field if the date of birth field is greater than 85.
7570 # a field.
7571 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
7572 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
7573 # only supported value is `AND`.
7574 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
7575 &quot;conditions&quot;: [ # A collection of conditions.
7576 { # The field type of `value` and `field` do not need to match to be
7577 # considered equal, but not all comparisons are possible.
7578 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
7579 # but all other comparisons are invalid with incompatible types.
7580 # A `value` of type:
7581 #
7582 # - `string` can be compared against all other types
7583 # - `boolean` can only be compared against other booleans
7584 # - `integer` can be compared against doubles or a string if the string value
7585 # can be parsed as an integer.
7586 # - `double` can be compared against integers or a string if the string can
7587 # be parsed as a double.
7588 # - `Timestamp` can be compared against strings in RFC 3339 date string
7589 # format.
7590 # - `TimeOfDay` can be compared against timestamps and strings in the format
7591 # of &#x27;HH:mm:ss&#x27;.
7592 #
7593 # If we fail to compare do to type mismatch, a warning will be given and
7594 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07007595 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
7596 # Note that for the purposes of inspection or transformation, the number
7597 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7598 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7599 # 123456789, the number of bytes would be counted as 9, even though an
7600 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07007601 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7602 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7603 # and time zone are either specified elsewhere or are not significant. The date
7604 # is relative to the Proleptic Gregorian Calendar. This can represent:
7605 #
7606 # * A full date, with non-zero year, month and day values
7607 # * A month and day value, with a zero year, e.g. an anniversary
7608 # * A year on its own, with zero month and day values
7609 # * A year and month value, with a zero day, e.g. a credit card expiration date
7610 #
7611 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7612 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7613 # a year.
7614 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7615 # month and day.
7616 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7617 # if specifying a year by itself or a year and month where the day is not
7618 # significant.
7619 },
7620 &quot;stringValue&quot;: &quot;A String&quot;, # string
7621 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7622 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7623 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7624 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007625 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7626 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7627 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007628 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7629 # allow the value 60 if it allows leap-seconds.
7630 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07007631 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007632 &quot;booleanValue&quot;: True or False, # boolean
7633 &quot;floatValue&quot;: 3.14, # float
7634 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07007635 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007636 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
7637 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7638 },
7639 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
7640 },
7641 ],
7642 },
7643 },
7644 },
7645 },
7646 ],
7647 &quot;recordSuppressions&quot;: [ # Configuration defining which records get suppressed entirely. Records that
7648 # match any suppression rule are omitted from the output.
7649 { # Configuration to suppress records whose suppression conditions evaluate to
7650 # true.
7651 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # A condition that when it evaluates to true will result in the record being
7652 # evaluated to be suppressed from the transformed content.
7653 # a field.
7654 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
7655 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
7656 # only supported value is `AND`.
7657 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
7658 &quot;conditions&quot;: [ # A collection of conditions.
7659 { # The field type of `value` and `field` do not need to match to be
7660 # considered equal, but not all comparisons are possible.
7661 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
7662 # but all other comparisons are invalid with incompatible types.
7663 # A `value` of type:
7664 #
7665 # - `string` can be compared against all other types
7666 # - `boolean` can only be compared against other booleans
7667 # - `integer` can be compared against doubles or a string if the string value
7668 # can be parsed as an integer.
7669 # - `double` can be compared against integers or a string if the string can
7670 # be parsed as a double.
7671 # - `Timestamp` can be compared against strings in RFC 3339 date string
7672 # format.
7673 # - `TimeOfDay` can be compared against timestamps and strings in the format
7674 # of &#x27;HH:mm:ss&#x27;.
7675 #
7676 # If we fail to compare do to type mismatch, a warning will be given and
7677 # the condition will evaluate to false.
7678 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
7679 # Note that for the purposes of inspection or transformation, the number
7680 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7681 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7682 # 123456789, the number of bytes would be counted as 9, even though an
7683 # int64 only holds up to 8 bytes of data.
7684 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7685 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7686 # and time zone are either specified elsewhere or are not significant. The date
7687 # is relative to the Proleptic Gregorian Calendar. This can represent:
7688 #
7689 # * A full date, with non-zero year, month and day values
7690 # * A month and day value, with a zero year, e.g. an anniversary
7691 # * A year on its own, with zero month and day values
7692 # * A year and month value, with a zero day, e.g. a credit card expiration date
7693 #
7694 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7695 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7696 # a year.
7697 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7698 # month and day.
7699 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7700 # if specifying a year by itself or a year and month where the day is not
7701 # significant.
7702 },
7703 &quot;stringValue&quot;: &quot;A String&quot;, # string
7704 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7705 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7706 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7707 # types are google.type.Date and `google.protobuf.Timestamp`.
7708 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7709 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7710 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
7711 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7712 # allow the value 60 if it allows leap-seconds.
7713 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
7714 },
7715 &quot;booleanValue&quot;: True or False, # boolean
7716 &quot;floatValue&quot;: 3.14, # float
7717 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
7718 },
7719 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
7720 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7721 },
7722 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07007723 },
7724 ],
7725 },
7726 },
7727 },
7728 },
7729 ],
7730 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007731 },
7732 &quot;item&quot;: { # Container structure for the content to inspect. # The item to re-identify. Will be treated as text.
7733 &quot;byteItem&quot;: { # Container for bytes to inspect or redact. # Content data to inspect or redact. Replaces `type` and `data`.
7734 &quot;data&quot;: &quot;A String&quot;, # Content data to inspect or redact.
7735 &quot;type&quot;: &quot;A String&quot;, # The type of data stored in the bytes string. Default will be TEXT_UTF8.
7736 },
7737 &quot;value&quot;: &quot;A String&quot;, # String data to inspect or redact.
7738 &quot;table&quot;: { # Structured content to inspect. Up to 50,000 `Value`s per request allowed. # Structured content for inspection. See
7739 # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
7740 # learn more.
7741 # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
7742 # learn more.
7743 &quot;rows&quot;: [ # Rows of the table.
7744 { # Values of the row.
7745 &quot;values&quot;: [ # Individual cells.
7746 { # Set of primitive values supported by the system.
7747 # Note that for the purposes of inspection or transformation, the number
7748 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
7749 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
7750 # 123456789, the number of bytes would be counted as 9, even though an
7751 # int64 only holds up to 8 bytes of data.
7752 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
7753 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
7754 # and time zone are either specified elsewhere or are not significant. The date
7755 # is relative to the Proleptic Gregorian Calendar. This can represent:
7756 #
7757 # * A full date, with non-zero year, month and day values
7758 # * A month and day value, with a zero year, e.g. an anniversary
7759 # * A year on its own, with zero month and day values
7760 # * A year and month value, with a zero day, e.g. a credit card expiration date
7761 #
7762 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
7763 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
7764 # a year.
7765 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
7766 # month and day.
7767 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
7768 # if specifying a year by itself or a year and month where the day is not
7769 # significant.
7770 },
7771 &quot;stringValue&quot;: &quot;A String&quot;, # string
7772 &quot;integerValue&quot;: &quot;A String&quot;, # integer
7773 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
7774 # or are specified elsewhere. An API may choose to allow leap seconds. Related
7775 # types are google.type.Date and `google.protobuf.Timestamp`.
7776 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
7777 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
7778 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
7779 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
7780 # allow the value 60 if it allows leap-seconds.
7781 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
7782 },
7783 &quot;booleanValue&quot;: True or False, # boolean
7784 &quot;floatValue&quot;: 3.14, # float
7785 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07007786 },
7787 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007788 },
7789 ],
7790 &quot;headers&quot;: [ # Headers of the table.
7791 { # General identifier of a data field in a storage service.
7792 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
Bu Sun Kim65020912020-05-20 12:08:20 -07007793 },
7794 ],
7795 },
7796 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007797 &quot;inspectTemplateName&quot;: &quot;A String&quot;, # Template to use. Any configuration directly specified in
7798 # `inspect_config` will override those set in the template. Singular fields
7799 # that are set in this request will replace their corresponding fields in the
7800 # template. Repeated fields are appended. Singular sub-messages and groups
7801 # are recursively merged.
Bu Sun Kim65020912020-05-20 12:08:20 -07007802 }
7803
7804 x__xgafv: string, V1 error format.
7805 Allowed values
7806 1 - v1 error format
7807 2 - v2 error format
7808
7809Returns:
7810 An object of the form:
7811
7812 { # Results of re-identifying a item.
7813 &quot;overview&quot;: { # Overview of the modifications that occurred. # An overview of the changes that were made to the `item`.
7814 &quot;transformationSummaries&quot;: [ # Transformations applied to the dataset.
7815 { # Summary of a single transformation.
7816 # Only one of &#x27;transformation&#x27;, &#x27;field_transformation&#x27;, or &#x27;record_suppress&#x27;
7817 # will be set.
7818 &quot;fieldTransformations&quot;: [ # The field transformation that was applied.
7819 # If multiple field transformations are requested for a single field,
7820 # this list will contain all of them; otherwise, only one is supplied.
7821 { # The transformation to apply to the field.
7822 &quot;fields&quot;: [ # Required. Input field(s) to apply the transformation to.
7823 { # General identifier of a data field in a storage service.
7824 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7825 },
7826 ],
7827 &quot;infoTypeTransformations&quot;: { # A type of transformation that will scan unstructured text and # Treat the contents of the field as free text, and selectively
7828 # transform content that matches an `InfoType`.
7829 # apply various `PrimitiveTransformation`s to each finding, where the
7830 # transformation is applied to only values that were identified as a specific
7831 # info_type.
7832 &quot;transformations&quot;: [ # Required. Transformation for each infoType. Cannot specify more than one
7833 # for a given infoType.
7834 { # A transformation to apply to text that is identified as a specific
7835 # info_type.
Bu Sun Kim65020912020-05-20 12:08:20 -07007836 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Required. Primitive transformation to apply to the infoType.
7837 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
7838 # portion of the value.
7839 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
7840 },
7841 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
7842 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
7843 # to learn more.
7844 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
7845 # If set, must also set cryptoKey. If set, shift will be consistent for the
7846 # given context.
7847 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7848 },
7849 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
7850 # range (inclusive ends). Negative means shift to earlier in time. Must not
7851 # be more than 365250 days (1000 years) each direction.
7852 #
7853 # For example, 3 means shift date to at most 3 days into the future.
7854 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
7855 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
7856 # results in the same shift for the same context and crypto_key. If
7857 # set, must also set context. Can only be applied to table items.
7858 # a key encryption key (KEK) stored by KMS).
7859 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7860 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7861 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007862 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7863 # leaking the key. Choose another type of key if possible.
7864 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7865 },
7866 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7867 # It will be discarded after the request finishes.
7868 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
7869 # This is an arbitrary string used to differentiate different keys.
7870 # A unique key is generated per name: two separate `TransientCryptoKey`
7871 # protos share the same generated key if their names are the same.
7872 # When the data crypto key is generated, this name is not used in any way
7873 # (repeating the api call will result in a different key being generated).
7874 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007875 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7876 # The wrapped key must be a 128/192/256 bit key.
7877 # Authorization requires the following IAM permissions when sending a request
7878 # to perform a crypto transformation using a kms-wrapped crypto key:
7879 # dlp.kms.encrypt
7880 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7881 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7882 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007883 },
7884 },
7885 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
7886 },
7887 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
7888 # Uses SHA-256.
7889 # The key size must be either 32 or 64 bytes.
7890 # Outputs a base64 encoded representation of the hashed output
7891 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
7892 # Currently, only string and integer values can be hashed.
7893 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
7894 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
7895 # a key encryption key (KEK) stored by KMS).
7896 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7897 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7898 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007899 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7900 # leaking the key. Choose another type of key if possible.
7901 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7902 },
7903 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7904 # It will be discarded after the request finishes.
7905 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
7906 # This is an arbitrary string used to differentiate different keys.
7907 # A unique key is generated per name: two separate `TransientCryptoKey`
7908 # protos share the same generated key if their names are the same.
7909 # When the data crypto key is generated, this name is not used in any way
7910 # (repeating the api call will result in a different key being generated).
7911 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07007912 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
7913 # The wrapped key must be a 128/192/256 bit key.
7914 # Authorization requires the following IAM permissions when sending a request
7915 # to perform a crypto transformation using a kms-wrapped crypto key:
7916 # dlp.kms.encrypt
7917 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
7918 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
7919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007920 },
7921 },
7922 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
7923 # (FPE) with the FFX mode of operation; however when used in the
7924 # `ReidentifyContent` API method, it serves the opposite function by reversing
7925 # the surrogate back into the original identifier. The identifier must be
7926 # encoded as ASCII. For a given crypto key and context, the same identifier
7927 # will be replaced with the same surrogate. Identifiers must be at least two
7928 # characters long. In the case that the identifier is the empty string, it will
7929 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
7930 # more.
7931 #
7932 # Note: We recommend using CryptoDeterministicConfig for all use cases which
7933 # do not require preserving the input alphabet space and size, plus warrant
7934 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07007935 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
7936 # This annotation will be applied to the surrogate by prefixing it with
7937 # the name of the custom infoType followed by the number of
7938 # characters comprising the surrogate. The following scheme defines the
7939 # format: info_type_name(surrogate_character_count):surrogate
7940 #
7941 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
7942 # the surrogate is &#x27;abc&#x27;, the full replacement value
7943 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
7944 #
7945 # This annotation identifies the surrogate when inspecting content using the
7946 # custom infoType
7947 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
7948 # This facilitates reversal of the surrogate when it occurs in free text.
7949 #
7950 # In order for inspection to work properly, the name of this infoType must
7951 # not occur naturally anywhere in your data; otherwise, inspection may
7952 # find a surrogate that does not correspond to an actual identifier.
7953 # Therefore, choose your custom infoType name carefully after considering
7954 # what your data looks like. One way to select a name that has a high chance
7955 # of yielding reliable detection is to include one or more unicode characters
7956 # that are highly improbable to exist in your data.
7957 # For example, assuming your data is entered from a regular ASCII keyboard,
7958 # the symbol with the hex code point 29DD might be used like so:
7959 # ⧝MY_TOKEN_TYPE
7960 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
7961 # creating a CustomInfoType, or one of the names listed
7962 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
7963 # a built-in type. InfoType names should conform to the pattern
7964 # `[a-zA-Z0-9_]{1,64}`.
7965 },
7966 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
7967 # identifier in two different contexts won&#x27;t be given the same surrogate. If
7968 # the context is not set, a default tweak will be used.
7969 #
7970 # If the context is set but:
7971 #
7972 # 1. there is no record present when transforming a given value or
7973 # 1. the field is not present when transforming a given value,
7974 #
7975 # a default tweak will be used.
7976 #
7977 # Note that case (1) is expected when an `InfoTypeTransformation` is
7978 # applied to both structured and non-structured `ContentItem`s.
7979 # Currently, the referenced field may be of value type integer or string.
7980 #
7981 # The tweak is constructed as a sequence of bytes in big endian byte order
7982 # such that:
7983 #
7984 # - a 64 bit integer is encoded followed by a single byte of value 1
7985 # - a string is encoded in UTF-8 format followed by a single byte of value 2
7986 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
7987 },
7988 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
7989 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
7990 # a key encryption key (KEK) stored by KMS).
7991 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
7992 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
7993 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07007994 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
7995 # leaking the key. Choose another type of key if possible.
7996 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
7997 },
7998 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
7999 # It will be discarded after the request finishes.
8000 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8001 # This is an arbitrary string used to differentiate different keys.
8002 # A unique key is generated per name: two separate `TransientCryptoKey`
8003 # protos share the same generated key if their names are the same.
8004 # When the data crypto key is generated, this name is not used in any way
8005 # (repeating the api call will result in a different key being generated).
8006 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008007 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8008 # The wrapped key must be a 128/192/256 bit key.
8009 # Authorization requires the following IAM permissions when sending a request
8010 # to perform a crypto transformation using a kms-wrapped crypto key:
8011 # dlp.kms.encrypt
8012 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8013 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8014 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008015 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008016 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
8017 # that the FFX mode natively supports. This happens before/after
8018 # encryption/decryption.
8019 # Each character listed must appear only once.
8020 # Number of characters must be in the range [2, 95].
8021 # This must be encoded as ASCII.
8022 # The order of characters does not matter.
8023 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07008024 },
8025 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
8026 # input. Outputs a base64 encoded representation of the encrypted output.
8027 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
8028 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
8029 # This annotation will be applied to the surrogate by prefixing it with
8030 # the name of the custom info type followed by the number of
8031 # characters comprising the surrogate. The following scheme defines the
8032 # format: {info type name}({surrogate character count}):{surrogate}
8033 #
8034 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
8035 # the surrogate is &#x27;abc&#x27;, the full replacement value
8036 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
8037 #
8038 # This annotation identifies the surrogate when inspecting content using the
8039 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
8040 # surrogate when it occurs in free text.
8041 #
8042 # Note: For record transformations where the entire cell in a table is being
8043 # transformed, surrogates are not mandatory. Surrogates are used to denote
8044 # the location of the token and are necessary for re-identification in free
8045 # form text.
8046 #
8047 # In order for inspection to work properly, the name of this info type must
8048 # not occur naturally anywhere in your data; otherwise, inspection may either
8049 #
8050 # - reverse a surrogate that does not correspond to an actual identifier
8051 # - be unable to parse the surrogate and result in an error
8052 #
8053 # Therefore, choose your custom info type name carefully after considering
8054 # what your data looks like. One way to select a name that has a high chance
8055 # of yielding reliable detection is to include one or more unicode characters
8056 # that are highly improbable to exist in your data.
8057 # For example, assuming your data is entered from a regular ASCII keyboard,
8058 # the symbol with the hex code point 29DD might be used like so:
8059 # ⧝MY_TOKEN_TYPE.
8060 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
8061 # creating a CustomInfoType, or one of the names listed
8062 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
8063 # a built-in type. InfoType names should conform to the pattern
8064 # `[a-zA-Z0-9_]{1,64}`.
8065 },
8066 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
8067 # referential integrity such that the same identifier in two different
8068 # contexts will be given a distinct surrogate. The context is appended to
8069 # plaintext value being encrypted. On decryption the provided context is
8070 # validated against the value used during encryption. If a context was
8071 # provided during encryption, same context must be provided during decryption
8072 # as well.
8073 #
8074 # If the context is not set, plaintext would be used as is for encryption.
8075 # If the context is set but:
8076 #
8077 # 1. there is no record present when transforming a given value or
8078 # 2. the field is not present when transforming a given value,
8079 #
8080 # plaintext would be used as is for encryption.
8081 #
8082 # Note that case (1) is expected when an `InfoTypeTransformation` is
8083 # applied to both structured and non-structured `ContentItem`s.
8084 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
8085 },
8086 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
8087 # a key encryption key (KEK) stored by KMS).
8088 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
8089 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
8090 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07008091 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
8092 # leaking the key. Choose another type of key if possible.
8093 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
8094 },
8095 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
8096 # It will be discarded after the request finishes.
8097 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8098 # This is an arbitrary string used to differentiate different keys.
8099 # A unique key is generated per name: two separate `TransientCryptoKey`
8100 # protos share the same generated key if their names are the same.
8101 # When the data crypto key is generated, this name is not used in any way
8102 # (repeating the api call will result in a different key being generated).
8103 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008104 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8105 # The wrapped key must be a 128/192/256 bit key.
8106 # Authorization requires the following IAM permissions when sending a request
8107 # to perform a crypto transformation using a kms-wrapped crypto key:
8108 # dlp.kms.encrypt
8109 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8110 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8111 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008112 },
8113 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008114 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
8115 # replacement values are dynamically provided by the user for custom behavior,
8116 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
8117 # This can be used on
8118 # data of type: number, long, string, timestamp.
8119 # If the bound `Value` type differs from the type of data being transformed, we
8120 # will first attempt converting the type of the data to be transformed to match
8121 # the type of the bound before comparing.
8122 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
8123 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
8124 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07008125 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
8126 # the default behavior will be to hyphenate the min-max range.
8127 # Note that for the purposes of inspection or transformation, the number
8128 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8129 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8130 # 123456789, the number of bytes would be counted as 9, even though an
8131 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008132 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8133 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8134 # and time zone are either specified elsewhere or are not significant. The date
8135 # is relative to the Proleptic Gregorian Calendar. This can represent:
8136 #
8137 # * A full date, with non-zero year, month and day values
8138 # * A month and day value, with a zero year, e.g. an anniversary
8139 # * A year on its own, with zero month and day values
8140 # * A year and month value, with a zero day, e.g. a credit card expiration date
8141 #
8142 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8143 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8144 # a year.
8145 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8146 # month and day.
8147 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8148 # if specifying a year by itself or a year and month where the day is not
8149 # significant.
8150 },
8151 &quot;stringValue&quot;: &quot;A String&quot;, # string
8152 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8153 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8154 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8155 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008156 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8157 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8158 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008159 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8160 # allow the value 60 if it allows leap-seconds.
8161 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008162 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008163 &quot;booleanValue&quot;: True or False, # boolean
8164 &quot;floatValue&quot;: 3.14, # float
8165 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
8166 },
8167 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
8168 # used.
8169 # Note that for the purposes of inspection or transformation, the number
8170 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8171 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8172 # 123456789, the number of bytes would be counted as 9, even though an
8173 # int64 only holds up to 8 bytes of data.
8174 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8175 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8176 # and time zone are either specified elsewhere or are not significant. The date
8177 # is relative to the Proleptic Gregorian Calendar. This can represent:
8178 #
8179 # * A full date, with non-zero year, month and day values
8180 # * A month and day value, with a zero year, e.g. an anniversary
8181 # * A year on its own, with zero month and day values
8182 # * A year and month value, with a zero day, e.g. a credit card expiration date
8183 #
8184 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8185 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8186 # a year.
8187 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8188 # month and day.
8189 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8190 # if specifying a year by itself or a year and month where the day is not
8191 # significant.
8192 },
8193 &quot;stringValue&quot;: &quot;A String&quot;, # string
8194 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8195 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8196 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8197 # types are google.type.Date and `google.protobuf.Timestamp`.
8198 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8199 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8200 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
8201 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8202 # allow the value 60 if it allows leap-seconds.
8203 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8204 },
8205 &quot;booleanValue&quot;: True or False, # boolean
8206 &quot;floatValue&quot;: 3.14, # float
8207 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
8208 },
8209 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
8210 # Note that for the purposes of inspection or transformation, the number
8211 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8212 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8213 # 123456789, the number of bytes would be counted as 9, even though an
8214 # int64 only holds up to 8 bytes of data.
8215 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8216 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8217 # and time zone are either specified elsewhere or are not significant. The date
8218 # is relative to the Proleptic Gregorian Calendar. This can represent:
8219 #
8220 # * A full date, with non-zero year, month and day values
8221 # * A month and day value, with a zero year, e.g. an anniversary
8222 # * A year on its own, with zero month and day values
8223 # * A year and month value, with a zero day, e.g. a credit card expiration date
8224 #
8225 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8226 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8227 # a year.
8228 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8229 # month and day.
8230 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8231 # if specifying a year by itself or a year and month where the day is not
8232 # significant.
8233 },
8234 &quot;stringValue&quot;: &quot;A String&quot;, # string
8235 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8236 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8237 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8238 # types are google.type.Date and `google.protobuf.Timestamp`.
8239 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8240 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8241 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
8242 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8243 # allow the value 60 if it allows leap-seconds.
8244 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8245 },
8246 &quot;booleanValue&quot;: True or False, # boolean
8247 &quot;floatValue&quot;: 3.14, # float
8248 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008249 },
8250 },
8251 ],
8252 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008253 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
8254 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
8255 # output would be &#x27;My phone number is &#x27;.
8256 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008257 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
8258 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
8259 # Note that for the purposes of inspection or transformation, the number
8260 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8261 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8262 # 123456789, the number of bytes would be counted as 9, even though an
8263 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008264 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8265 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8266 # and time zone are either specified elsewhere or are not significant. The date
8267 # is relative to the Proleptic Gregorian Calendar. This can represent:
8268 #
8269 # * A full date, with non-zero year, month and day values
8270 # * A month and day value, with a zero year, e.g. an anniversary
8271 # * A year on its own, with zero month and day values
8272 # * A year and month value, with a zero day, e.g. a credit card expiration date
8273 #
8274 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8275 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8276 # a year.
8277 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8278 # month and day.
8279 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8280 # if specifying a year by itself or a year and month where the day is not
8281 # significant.
8282 },
8283 &quot;stringValue&quot;: &quot;A String&quot;, # string
8284 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8285 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8286 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8287 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008288 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8289 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8290 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008291 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8292 # allow the value 60 if it allows leap-seconds.
8293 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008294 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008295 &quot;booleanValue&quot;: True or False, # boolean
8296 &quot;floatValue&quot;: 3.14, # float
8297 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008298 },
8299 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008300 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
8301 # Bucketing transformation can provide all of this functionality,
8302 # but requires more configuration. This message is provided as a convenience to
8303 # the user for simple bucketing strategies.
8304 #
8305 # The transformed value will be a hyphenated string of
8306 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
8307 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
8308 #
8309 # This can be used on data of type: double, long.
8310 #
8311 # If the bound Value type differs from the type of data
8312 # being transformed, we will first attempt converting the type of the data to
8313 # be transformed to match the type of the bound before comparing.
8314 #
8315 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07008316 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
8317 # grouped together into a single bucket; for example if `upper_bound` = 89,
8318 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
8319 # Note that for the purposes of inspection or transformation, the number
8320 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8321 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8322 # 123456789, the number of bytes would be counted as 9, even though an
8323 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008324 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8325 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8326 # and time zone are either specified elsewhere or are not significant. The date
8327 # is relative to the Proleptic Gregorian Calendar. This can represent:
8328 #
8329 # * A full date, with non-zero year, month and day values
8330 # * A month and day value, with a zero year, e.g. an anniversary
8331 # * A year on its own, with zero month and day values
8332 # * A year and month value, with a zero day, e.g. a credit card expiration date
8333 #
8334 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8335 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8336 # a year.
8337 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8338 # month and day.
8339 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8340 # if specifying a year by itself or a year and month where the day is not
8341 # significant.
8342 },
8343 &quot;stringValue&quot;: &quot;A String&quot;, # string
8344 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8345 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8346 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8347 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008348 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8349 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8350 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008351 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8352 # allow the value 60 if it allows leap-seconds.
8353 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008354 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008355 &quot;booleanValue&quot;: True or False, # boolean
8356 &quot;floatValue&quot;: 3.14, # float
8357 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008358 },
8359 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
8360 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
8361 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
8362 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008363 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
8364 # grouped together into a single bucket; for example if `lower_bound` = 10,
8365 # then all values less than 10 are replaced with the value &quot;-10&quot;.
8366 # Note that for the purposes of inspection or transformation, the number
8367 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8368 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8369 # 123456789, the number of bytes would be counted as 9, even though an
8370 # int64 only holds up to 8 bytes of data.
8371 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8372 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8373 # and time zone are either specified elsewhere or are not significant. The date
8374 # is relative to the Proleptic Gregorian Calendar. This can represent:
8375 #
8376 # * A full date, with non-zero year, month and day values
8377 # * A month and day value, with a zero year, e.g. an anniversary
8378 # * A year on its own, with zero month and day values
8379 # * A year and month value, with a zero day, e.g. a credit card expiration date
8380 #
8381 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8382 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8383 # a year.
8384 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8385 # month and day.
8386 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8387 # if specifying a year by itself or a year and month where the day is not
8388 # significant.
8389 },
8390 &quot;stringValue&quot;: &quot;A String&quot;, # string
8391 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8392 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8393 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8394 # types are google.type.Date and `google.protobuf.Timestamp`.
8395 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8396 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8397 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
8398 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8399 # allow the value 60 if it allows leap-seconds.
8400 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8401 },
8402 &quot;booleanValue&quot;: True or False, # boolean
8403 &quot;floatValue&quot;: 3.14, # float
8404 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
8405 },
8406 },
8407 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
8408 # fixed character. Masking can start from the beginning or end of the string.
8409 # This can be used on data of any type (numbers, longs, and so on) and when
8410 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
8411 # type. (This allows you to take a long like 123 and modify it to a string like
8412 # **3.
8413 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
8414 # characters. For example, if the input string is `555-555-5555` and you
8415 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
8416 # returns `***-**5-5555`.
8417 { # Characters to skip when doing deidentification of a value. These will be left
8418 # alone and skipped.
8419 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
8420 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
8421 # punctuation.
8422 },
8423 ],
8424 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
8425 # masked. Skipped characters do not count towards this tally.
8426 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
8427 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
8428 # code or credit card number. This string must have a length of 1. If not
8429 # supplied, this value defaults to `*` for strings, and `0` for digits.
8430 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
8431 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
8432 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
8433 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
8434 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008435 },
8436 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008437 &quot;infoTypes&quot;: [ # InfoTypes to apply the transformation to. An empty list will cause
8438 # this transformation to apply to all findings that correspond to
8439 # infoTypes that were requested in `InspectConfig`.
8440 { # Type of information detected by the API.
8441 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
8442 # creating a CustomInfoType, or one of the names listed
8443 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
8444 # a built-in type. InfoType names should conform to the pattern
8445 # `[a-zA-Z0-9_]{1,64}`.
8446 },
8447 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07008448 },
8449 ],
8450 },
8451 &quot;primitiveTransformation&quot;: { # A rule for transforming a value. # Apply the transformation to the entire field.
8452 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
8453 # portion of the value.
8454 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
8455 },
8456 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
8457 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
8458 # to learn more.
8459 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
8460 # If set, must also set cryptoKey. If set, shift will be consistent for the
8461 # given context.
8462 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
8463 },
8464 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
8465 # range (inclusive ends). Negative means shift to earlier in time. Must not
8466 # be more than 365250 days (1000 years) each direction.
8467 #
8468 # For example, 3 means shift date to at most 3 days into the future.
8469 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
8470 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
8471 # results in the same shift for the same context and crypto_key. If
8472 # set, must also set context. Can only be applied to table items.
8473 # a key encryption key (KEK) stored by KMS).
8474 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
8475 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
8476 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07008477 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
8478 # leaking the key. Choose another type of key if possible.
8479 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
8480 },
8481 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
8482 # It will be discarded after the request finishes.
8483 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8484 # This is an arbitrary string used to differentiate different keys.
8485 # A unique key is generated per name: two separate `TransientCryptoKey`
8486 # protos share the same generated key if their names are the same.
8487 # When the data crypto key is generated, this name is not used in any way
8488 # (repeating the api call will result in a different key being generated).
8489 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008490 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8491 # The wrapped key must be a 128/192/256 bit key.
8492 # Authorization requires the following IAM permissions when sending a request
8493 # to perform a crypto transformation using a kms-wrapped crypto key:
8494 # dlp.kms.encrypt
8495 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8496 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8497 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008498 },
8499 },
8500 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
8501 },
8502 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
8503 # Uses SHA-256.
8504 # The key size must be either 32 or 64 bytes.
8505 # Outputs a base64 encoded representation of the hashed output
8506 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
8507 # Currently, only string and integer values can be hashed.
8508 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
8509 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
8510 # a key encryption key (KEK) stored by KMS).
8511 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
8512 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
8513 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07008514 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
8515 # leaking the key. Choose another type of key if possible.
8516 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
8517 },
8518 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
8519 # It will be discarded after the request finishes.
8520 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8521 # This is an arbitrary string used to differentiate different keys.
8522 # A unique key is generated per name: two separate `TransientCryptoKey`
8523 # protos share the same generated key if their names are the same.
8524 # When the data crypto key is generated, this name is not used in any way
8525 # (repeating the api call will result in a different key being generated).
8526 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008527 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8528 # The wrapped key must be a 128/192/256 bit key.
8529 # Authorization requires the following IAM permissions when sending a request
8530 # to perform a crypto transformation using a kms-wrapped crypto key:
8531 # dlp.kms.encrypt
8532 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8533 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8534 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008535 },
8536 },
8537 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
8538 # (FPE) with the FFX mode of operation; however when used in the
8539 # `ReidentifyContent` API method, it serves the opposite function by reversing
8540 # the surrogate back into the original identifier. The identifier must be
8541 # encoded as ASCII. For a given crypto key and context, the same identifier
8542 # will be replaced with the same surrogate. Identifiers must be at least two
8543 # characters long. In the case that the identifier is the empty string, it will
8544 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
8545 # more.
8546 #
8547 # Note: We recommend using CryptoDeterministicConfig for all use cases which
8548 # do not require preserving the input alphabet space and size, plus warrant
8549 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07008550 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
8551 # This annotation will be applied to the surrogate by prefixing it with
8552 # the name of the custom infoType followed by the number of
8553 # characters comprising the surrogate. The following scheme defines the
8554 # format: info_type_name(surrogate_character_count):surrogate
8555 #
8556 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
8557 # the surrogate is &#x27;abc&#x27;, the full replacement value
8558 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
8559 #
8560 # This annotation identifies the surrogate when inspecting content using the
8561 # custom infoType
8562 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
8563 # This facilitates reversal of the surrogate when it occurs in free text.
8564 #
8565 # In order for inspection to work properly, the name of this infoType must
8566 # not occur naturally anywhere in your data; otherwise, inspection may
8567 # find a surrogate that does not correspond to an actual identifier.
8568 # Therefore, choose your custom infoType name carefully after considering
8569 # what your data looks like. One way to select a name that has a high chance
8570 # of yielding reliable detection is to include one or more unicode characters
8571 # that are highly improbable to exist in your data.
8572 # For example, assuming your data is entered from a regular ASCII keyboard,
8573 # the symbol with the hex code point 29DD might be used like so:
8574 # ⧝MY_TOKEN_TYPE
8575 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
8576 # creating a CustomInfoType, or one of the names listed
8577 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
8578 # a built-in type. InfoType names should conform to the pattern
8579 # `[a-zA-Z0-9_]{1,64}`.
8580 },
8581 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
8582 # identifier in two different contexts won&#x27;t be given the same surrogate. If
8583 # the context is not set, a default tweak will be used.
8584 #
8585 # If the context is set but:
8586 #
8587 # 1. there is no record present when transforming a given value or
8588 # 1. the field is not present when transforming a given value,
8589 #
8590 # a default tweak will be used.
8591 #
8592 # Note that case (1) is expected when an `InfoTypeTransformation` is
8593 # applied to both structured and non-structured `ContentItem`s.
8594 # Currently, the referenced field may be of value type integer or string.
8595 #
8596 # The tweak is constructed as a sequence of bytes in big endian byte order
8597 # such that:
8598 #
8599 # - a 64 bit integer is encoded followed by a single byte of value 1
8600 # - a string is encoded in UTF-8 format followed by a single byte of value 2
8601 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
8602 },
8603 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
8604 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
8605 # a key encryption key (KEK) stored by KMS).
8606 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
8607 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
8608 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07008609 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
8610 # leaking the key. Choose another type of key if possible.
8611 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
8612 },
8613 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
8614 # It will be discarded after the request finishes.
8615 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8616 # This is an arbitrary string used to differentiate different keys.
8617 # A unique key is generated per name: two separate `TransientCryptoKey`
8618 # protos share the same generated key if their names are the same.
8619 # When the data crypto key is generated, this name is not used in any way
8620 # (repeating the api call will result in a different key being generated).
8621 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008622 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8623 # The wrapped key must be a 128/192/256 bit key.
8624 # Authorization requires the following IAM permissions when sending a request
8625 # to perform a crypto transformation using a kms-wrapped crypto key:
8626 # dlp.kms.encrypt
8627 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8628 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8629 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008630 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008631 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
8632 # that the FFX mode natively supports. This happens before/after
8633 # encryption/decryption.
8634 # Each character listed must appear only once.
8635 # Number of characters must be in the range [2, 95].
8636 # This must be encoded as ASCII.
8637 # The order of characters does not matter.
8638 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07008639 },
8640 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
8641 # input. Outputs a base64 encoded representation of the encrypted output.
8642 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
8643 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
8644 # This annotation will be applied to the surrogate by prefixing it with
8645 # the name of the custom info type followed by the number of
8646 # characters comprising the surrogate. The following scheme defines the
8647 # format: {info type name}({surrogate character count}):{surrogate}
8648 #
8649 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
8650 # the surrogate is &#x27;abc&#x27;, the full replacement value
8651 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
8652 #
8653 # This annotation identifies the surrogate when inspecting content using the
8654 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
8655 # surrogate when it occurs in free text.
8656 #
8657 # Note: For record transformations where the entire cell in a table is being
8658 # transformed, surrogates are not mandatory. Surrogates are used to denote
8659 # the location of the token and are necessary for re-identification in free
8660 # form text.
8661 #
8662 # In order for inspection to work properly, the name of this info type must
8663 # not occur naturally anywhere in your data; otherwise, inspection may either
8664 #
8665 # - reverse a surrogate that does not correspond to an actual identifier
8666 # - be unable to parse the surrogate and result in an error
8667 #
8668 # Therefore, choose your custom info type name carefully after considering
8669 # what your data looks like. One way to select a name that has a high chance
8670 # of yielding reliable detection is to include one or more unicode characters
8671 # that are highly improbable to exist in your data.
8672 # For example, assuming your data is entered from a regular ASCII keyboard,
8673 # the symbol with the hex code point 29DD might be used like so:
8674 # ⧝MY_TOKEN_TYPE.
8675 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
8676 # creating a CustomInfoType, or one of the names listed
8677 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
8678 # a built-in type. InfoType names should conform to the pattern
8679 # `[a-zA-Z0-9_]{1,64}`.
8680 },
8681 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
8682 # referential integrity such that the same identifier in two different
8683 # contexts will be given a distinct surrogate. The context is appended to
8684 # plaintext value being encrypted. On decryption the provided context is
8685 # validated against the value used during encryption. If a context was
8686 # provided during encryption, same context must be provided during decryption
8687 # as well.
8688 #
8689 # If the context is not set, plaintext would be used as is for encryption.
8690 # If the context is set but:
8691 #
8692 # 1. there is no record present when transforming a given value or
8693 # 2. the field is not present when transforming a given value,
8694 #
8695 # plaintext would be used as is for encryption.
8696 #
8697 # Note that case (1) is expected when an `InfoTypeTransformation` is
8698 # applied to both structured and non-structured `ContentItem`s.
8699 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
8700 },
8701 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
8702 # a key encryption key (KEK) stored by KMS).
8703 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
8704 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
8705 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07008706 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
8707 # leaking the key. Choose another type of key if possible.
8708 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
8709 },
8710 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
8711 # It will be discarded after the request finishes.
8712 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
8713 # This is an arbitrary string used to differentiate different keys.
8714 # A unique key is generated per name: two separate `TransientCryptoKey`
8715 # protos share the same generated key if their names are the same.
8716 # When the data crypto key is generated, this name is not used in any way
8717 # (repeating the api call will result in a different key being generated).
8718 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008719 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
8720 # The wrapped key must be a 128/192/256 bit key.
8721 # Authorization requires the following IAM permissions when sending a request
8722 # to perform a crypto transformation using a kms-wrapped crypto key:
8723 # dlp.kms.encrypt
8724 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
8725 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
8726 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008727 },
8728 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008729 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
8730 # replacement values are dynamically provided by the user for custom behavior,
8731 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
8732 # This can be used on
8733 # data of type: number, long, string, timestamp.
8734 # If the bound `Value` type differs from the type of data being transformed, we
8735 # will first attempt converting the type of the data to be transformed to match
8736 # the type of the bound before comparing.
8737 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
8738 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
8739 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07008740 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
8741 # the default behavior will be to hyphenate the min-max range.
8742 # Note that for the purposes of inspection or transformation, the number
8743 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8744 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8745 # 123456789, the number of bytes would be counted as 9, even though an
8746 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008747 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8748 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8749 # and time zone are either specified elsewhere or are not significant. The date
8750 # is relative to the Proleptic Gregorian Calendar. This can represent:
8751 #
8752 # * A full date, with non-zero year, month and day values
8753 # * A month and day value, with a zero year, e.g. an anniversary
8754 # * A year on its own, with zero month and day values
8755 # * A year and month value, with a zero day, e.g. a credit card expiration date
8756 #
8757 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8758 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8759 # a year.
8760 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8761 # month and day.
8762 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8763 # if specifying a year by itself or a year and month where the day is not
8764 # significant.
8765 },
8766 &quot;stringValue&quot;: &quot;A String&quot;, # string
8767 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8768 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8769 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8770 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008771 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8772 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8773 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008774 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8775 # allow the value 60 if it allows leap-seconds.
8776 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008777 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008778 &quot;booleanValue&quot;: True or False, # boolean
8779 &quot;floatValue&quot;: 3.14, # float
8780 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
8781 },
8782 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
8783 # used.
8784 # Note that for the purposes of inspection or transformation, the number
8785 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8786 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8787 # 123456789, the number of bytes would be counted as 9, even though an
8788 # int64 only holds up to 8 bytes of data.
8789 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8790 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8791 # and time zone are either specified elsewhere or are not significant. The date
8792 # is relative to the Proleptic Gregorian Calendar. This can represent:
8793 #
8794 # * A full date, with non-zero year, month and day values
8795 # * A month and day value, with a zero year, e.g. an anniversary
8796 # * A year on its own, with zero month and day values
8797 # * A year and month value, with a zero day, e.g. a credit card expiration date
8798 #
8799 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8800 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8801 # a year.
8802 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8803 # month and day.
8804 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8805 # if specifying a year by itself or a year and month where the day is not
8806 # significant.
8807 },
8808 &quot;stringValue&quot;: &quot;A String&quot;, # string
8809 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8810 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8811 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8812 # types are google.type.Date and `google.protobuf.Timestamp`.
8813 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8814 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8815 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
8816 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8817 # allow the value 60 if it allows leap-seconds.
8818 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8819 },
8820 &quot;booleanValue&quot;: True or False, # boolean
8821 &quot;floatValue&quot;: 3.14, # float
8822 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
8823 },
8824 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
8825 # Note that for the purposes of inspection or transformation, the number
8826 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8827 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8828 # 123456789, the number of bytes would be counted as 9, even though an
8829 # int64 only holds up to 8 bytes of data.
8830 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8831 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8832 # and time zone are either specified elsewhere or are not significant. The date
8833 # is relative to the Proleptic Gregorian Calendar. This can represent:
8834 #
8835 # * A full date, with non-zero year, month and day values
8836 # * A month and day value, with a zero year, e.g. an anniversary
8837 # * A year on its own, with zero month and day values
8838 # * A year and month value, with a zero day, e.g. a credit card expiration date
8839 #
8840 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8841 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8842 # a year.
8843 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8844 # month and day.
8845 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8846 # if specifying a year by itself or a year and month where the day is not
8847 # significant.
8848 },
8849 &quot;stringValue&quot;: &quot;A String&quot;, # string
8850 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8851 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8852 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8853 # types are google.type.Date and `google.protobuf.Timestamp`.
8854 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8855 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8856 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
8857 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8858 # allow the value 60 if it allows leap-seconds.
8859 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8860 },
8861 &quot;booleanValue&quot;: True or False, # boolean
8862 &quot;floatValue&quot;: 3.14, # float
8863 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008864 },
8865 },
8866 ],
8867 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008868 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
8869 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
8870 # output would be &#x27;My phone number is &#x27;.
8871 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008872 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
8873 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
8874 # Note that for the purposes of inspection or transformation, the number
8875 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8876 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8877 # 123456789, the number of bytes would be counted as 9, even though an
8878 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008879 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8880 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8881 # and time zone are either specified elsewhere or are not significant. The date
8882 # is relative to the Proleptic Gregorian Calendar. This can represent:
8883 #
8884 # * A full date, with non-zero year, month and day values
8885 # * A month and day value, with a zero year, e.g. an anniversary
8886 # * A year on its own, with zero month and day values
8887 # * A year and month value, with a zero day, e.g. a credit card expiration date
8888 #
8889 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8890 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8891 # a year.
8892 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8893 # month and day.
8894 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8895 # if specifying a year by itself or a year and month where the day is not
8896 # significant.
8897 },
8898 &quot;stringValue&quot;: &quot;A String&quot;, # string
8899 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8900 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8901 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8902 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008903 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8904 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8905 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008906 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8907 # allow the value 60 if it allows leap-seconds.
8908 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008909 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008910 &quot;booleanValue&quot;: True or False, # boolean
8911 &quot;floatValue&quot;: 3.14, # float
8912 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008913 },
8914 },
Bu Sun Kim65020912020-05-20 12:08:20 -07008915 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
8916 # Bucketing transformation can provide all of this functionality,
8917 # but requires more configuration. This message is provided as a convenience to
8918 # the user for simple bucketing strategies.
8919 #
8920 # The transformed value will be a hyphenated string of
8921 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
8922 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
8923 #
8924 # This can be used on data of type: double, long.
8925 #
8926 # If the bound Value type differs from the type of data
8927 # being transformed, we will first attempt converting the type of the data to
8928 # be transformed to match the type of the bound before comparing.
8929 #
8930 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07008931 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
8932 # grouped together into a single bucket; for example if `upper_bound` = 89,
8933 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
8934 # Note that for the purposes of inspection or transformation, the number
8935 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8936 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8937 # 123456789, the number of bytes would be counted as 9, even though an
8938 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07008939 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8940 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8941 # and time zone are either specified elsewhere or are not significant. The date
8942 # is relative to the Proleptic Gregorian Calendar. This can represent:
8943 #
8944 # * A full date, with non-zero year, month and day values
8945 # * A month and day value, with a zero year, e.g. an anniversary
8946 # * A year on its own, with zero month and day values
8947 # * A year and month value, with a zero day, e.g. a credit card expiration date
8948 #
8949 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8950 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8951 # a year.
8952 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
8953 # month and day.
8954 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
8955 # if specifying a year by itself or a year and month where the day is not
8956 # significant.
8957 },
8958 &quot;stringValue&quot;: &quot;A String&quot;, # string
8959 &quot;integerValue&quot;: &quot;A String&quot;, # integer
8960 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
8961 # or are specified elsewhere. An API may choose to allow leap seconds. Related
8962 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07008963 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
8964 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
8965 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008966 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
8967 # allow the value 60 if it allows leap-seconds.
8968 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07008969 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008970 &quot;booleanValue&quot;: True or False, # boolean
8971 &quot;floatValue&quot;: 3.14, # float
8972 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07008973 },
8974 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
8975 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
8976 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
8977 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07008978 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
8979 # grouped together into a single bucket; for example if `lower_bound` = 10,
8980 # then all values less than 10 are replaced with the value &quot;-10&quot;.
8981 # Note that for the purposes of inspection or transformation, the number
8982 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
8983 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
8984 # 123456789, the number of bytes would be counted as 9, even though an
8985 # int64 only holds up to 8 bytes of data.
8986 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
8987 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
8988 # and time zone are either specified elsewhere or are not significant. The date
8989 # is relative to the Proleptic Gregorian Calendar. This can represent:
8990 #
8991 # * A full date, with non-zero year, month and day values
8992 # * A month and day value, with a zero year, e.g. an anniversary
8993 # * A year on its own, with zero month and day values
8994 # * A year and month value, with a zero day, e.g. a credit card expiration date
8995 #
8996 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
8997 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
8998 # a year.
8999 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9000 # month and day.
9001 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9002 # if specifying a year by itself or a year and month where the day is not
9003 # significant.
9004 },
9005 &quot;stringValue&quot;: &quot;A String&quot;, # string
9006 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9007 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9008 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9009 # types are google.type.Date and `google.protobuf.Timestamp`.
9010 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9011 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9012 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
9013 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9014 # allow the value 60 if it allows leap-seconds.
9015 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
9016 },
9017 &quot;booleanValue&quot;: True or False, # boolean
9018 &quot;floatValue&quot;: 3.14, # float
9019 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
9020 },
9021 },
9022 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
9023 # fixed character. Masking can start from the beginning or end of the string.
9024 # This can be used on data of any type (numbers, longs, and so on) and when
9025 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
9026 # type. (This allows you to take a long like 123 and modify it to a string like
9027 # **3.
9028 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
9029 # characters. For example, if the input string is `555-555-5555` and you
9030 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
9031 # returns `***-**5-5555`.
9032 { # Characters to skip when doing deidentification of a value. These will be left
9033 # alone and skipped.
9034 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
9035 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
9036 # punctuation.
9037 },
9038 ],
9039 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
9040 # masked. Skipped characters do not count towards this tally.
9041 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
9042 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
9043 # code or credit card number. This string must have a length of 1. If not
9044 # supplied, this value defaults to `*` for strings, and `0` for digits.
9045 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
9046 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
9047 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
9048 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
9049 # is `true`, then the string `12345` is masked as `12***`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009050 },
9051 },
9052 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # Only apply the transformation if the condition evaluates to true for the
9053 # given `RecordCondition`. The conditions are allowed to reference fields
9054 # that are not used in the actual transformation.
9055 #
9056 # Example Use Cases:
9057 #
9058 # - Apply a different bucket transformation to an age column if the zip code
9059 # column for the same record is within a specific range.
9060 # - Redact a field if the date of birth field is greater than 85.
9061 # a field.
9062 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
9063 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
9064 # only supported value is `AND`.
9065 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
9066 &quot;conditions&quot;: [ # A collection of conditions.
9067 { # The field type of `value` and `field` do not need to match to be
9068 # considered equal, but not all comparisons are possible.
9069 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
9070 # but all other comparisons are invalid with incompatible types.
9071 # A `value` of type:
9072 #
9073 # - `string` can be compared against all other types
9074 # - `boolean` can only be compared against other booleans
9075 # - `integer` can be compared against doubles or a string if the string value
9076 # can be parsed as an integer.
9077 # - `double` can be compared against integers or a string if the string can
9078 # be parsed as a double.
9079 # - `Timestamp` can be compared against strings in RFC 3339 date string
9080 # format.
9081 # - `TimeOfDay` can be compared against timestamps and strings in the format
9082 # of &#x27;HH:mm:ss&#x27;.
9083 #
9084 # If we fail to compare do to type mismatch, a warning will be given and
9085 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07009086 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
9087 # Note that for the purposes of inspection or transformation, the number
9088 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9089 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9090 # 123456789, the number of bytes would be counted as 9, even though an
9091 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009092 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9093 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9094 # and time zone are either specified elsewhere or are not significant. The date
9095 # is relative to the Proleptic Gregorian Calendar. This can represent:
9096 #
9097 # * A full date, with non-zero year, month and day values
9098 # * A month and day value, with a zero year, e.g. an anniversary
9099 # * A year on its own, with zero month and day values
9100 # * A year and month value, with a zero day, e.g. a credit card expiration date
9101 #
9102 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9103 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9104 # a year.
9105 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9106 # month and day.
9107 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9108 # if specifying a year by itself or a year and month where the day is not
9109 # significant.
9110 },
9111 &quot;stringValue&quot;: &quot;A String&quot;, # string
9112 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9113 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9114 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9115 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009116 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9117 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9118 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009119 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9120 # allow the value 60 if it allows leap-seconds.
9121 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009122 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009123 &quot;booleanValue&quot;: True or False, # boolean
9124 &quot;floatValue&quot;: 3.14, # float
9125 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009126 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009127 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
9128 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9129 },
9130 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07009131 },
9132 ],
9133 },
9134 },
9135 },
9136 },
9137 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07009138 &quot;transformation&quot;: { # A rule for transforming a value. # The specific transformation these stats apply to.
9139 &quot;timePartConfig&quot;: { # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # Time extraction
9140 # portion of the value.
9141 &quot;partToExtract&quot;: &quot;A String&quot;, # The part of the time to keep.
9142 },
9143 &quot;dateShiftConfig&quot;: { # Shifts dates by random number of days, with option to be consistent for the # Date Shift
9144 # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
9145 # to learn more.
9146 &quot;context&quot;: { # General identifier of a data field in a storage service. # Points to the field that contains the context, for example, an entity id.
9147 # If set, must also set cryptoKey. If set, shift will be consistent for the
9148 # given context.
9149 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9150 },
9151 &quot;upperBoundDays&quot;: 42, # Required. Range of shift in days. Actual shift will be selected at random within this
9152 # range (inclusive ends). Negative means shift to earlier in time. Must not
9153 # be more than 365250 days (1000 years) each direction.
9154 #
9155 # For example, 3 means shift date to at most 3 days into the future.
9156 &quot;lowerBoundDays&quot;: 42, # Required. For example, -5 means shift date to at most 5 days back in the past.
9157 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Causes the shift to be computed based on this key and the context. This
9158 # results in the same shift for the same context and crypto_key. If
9159 # set, must also set context. Can only be applied to table items.
9160 # a key encryption key (KEK) stored by KMS).
9161 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
9162 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
9163 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07009164 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
9165 # leaking the key. Choose another type of key if possible.
9166 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
9167 },
9168 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
9169 # It will be discarded after the request finishes.
9170 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
9171 # This is an arbitrary string used to differentiate different keys.
9172 # A unique key is generated per name: two separate `TransientCryptoKey`
9173 # protos share the same generated key if their names are the same.
9174 # When the data crypto key is generated, this name is not used in any way
9175 # (repeating the api call will result in a different key being generated).
9176 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009177 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
9178 # The wrapped key must be a 128/192/256 bit key.
9179 # Authorization requires the following IAM permissions when sending a request
9180 # to perform a crypto transformation using a kms-wrapped crypto key:
9181 # dlp.kms.encrypt
9182 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
9183 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
9184 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009185 },
9186 },
9187 &quot;replaceWithInfoTypeConfig&quot;: { # Replace each matching finding with the name of the info_type. # Replace with infotype
9188 },
9189 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Crypto
9190 # Uses SHA-256.
9191 # The key size must be either 32 or 64 bytes.
9192 # Outputs a base64 encoded representation of the hashed output
9193 # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
9194 # Currently, only string and integer values can be hashed.
9195 # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
9196 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the hash function.
9197 # a key encryption key (KEK) stored by KMS).
9198 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
9199 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
9200 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07009201 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
9202 # leaking the key. Choose another type of key if possible.
9203 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
9204 },
9205 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
9206 # It will be discarded after the request finishes.
9207 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
9208 # This is an arbitrary string used to differentiate different keys.
9209 # A unique key is generated per name: two separate `TransientCryptoKey`
9210 # protos share the same generated key if their names are the same.
9211 # When the data crypto key is generated, this name is not used in any way
9212 # (repeating the api call will result in a different key being generated).
9213 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009214 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
9215 # The wrapped key must be a 128/192/256 bit key.
9216 # Authorization requires the following IAM permissions when sending a request
9217 # to perform a crypto transformation using a kms-wrapped crypto key:
9218 # dlp.kms.encrypt
9219 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
9220 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
9221 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009222 },
9223 },
9224 &quot;cryptoReplaceFfxFpeConfig&quot;: { # Replaces an identifier with a surrogate using Format Preserving Encryption # Ffx-Fpe
9225 # (FPE) with the FFX mode of operation; however when used in the
9226 # `ReidentifyContent` API method, it serves the opposite function by reversing
9227 # the surrogate back into the original identifier. The identifier must be
9228 # encoded as ASCII. For a given crypto key and context, the same identifier
9229 # will be replaced with the same surrogate. Identifiers must be at least two
9230 # characters long. In the case that the identifier is the empty string, it will
9231 # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
9232 # more.
9233 #
9234 # Note: We recommend using CryptoDeterministicConfig for all use cases which
9235 # do not require preserving the input alphabet space and size, plus warrant
9236 # referential integrity.
Bu Sun Kim65020912020-05-20 12:08:20 -07009237 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom infoType to annotate the surrogate with.
9238 # This annotation will be applied to the surrogate by prefixing it with
9239 # the name of the custom infoType followed by the number of
9240 # characters comprising the surrogate. The following scheme defines the
9241 # format: info_type_name(surrogate_character_count):surrogate
9242 #
9243 # For example, if the name of custom infoType is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
9244 # the surrogate is &#x27;abc&#x27;, the full replacement value
9245 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
9246 #
9247 # This annotation identifies the surrogate when inspecting content using the
9248 # custom infoType
9249 # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
9250 # This facilitates reversal of the surrogate when it occurs in free text.
9251 #
9252 # In order for inspection to work properly, the name of this infoType must
9253 # not occur naturally anywhere in your data; otherwise, inspection may
9254 # find a surrogate that does not correspond to an actual identifier.
9255 # Therefore, choose your custom infoType name carefully after considering
9256 # what your data looks like. One way to select a name that has a high chance
9257 # of yielding reliable detection is to include one or more unicode characters
9258 # that are highly improbable to exist in your data.
9259 # For example, assuming your data is entered from a regular ASCII keyboard,
9260 # the symbol with the hex code point 29DD might be used like so:
9261 # ⧝MY_TOKEN_TYPE
9262 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
9263 # creating a CustomInfoType, or one of the names listed
9264 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
9265 # a built-in type. InfoType names should conform to the pattern
9266 # `[a-zA-Z0-9_]{1,64}`.
9267 },
9268 &quot;context&quot;: { # General identifier of a data field in a storage service. # The &#x27;tweak&#x27;, a context may be used for higher security since the same
9269 # identifier in two different contexts won&#x27;t be given the same surrogate. If
9270 # the context is not set, a default tweak will be used.
9271 #
9272 # If the context is set but:
9273 #
9274 # 1. there is no record present when transforming a given value or
9275 # 1. the field is not present when transforming a given value,
9276 #
9277 # a default tweak will be used.
9278 #
9279 # Note that case (1) is expected when an `InfoTypeTransformation` is
9280 # applied to both structured and non-structured `ContentItem`s.
9281 # Currently, the referenced field may be of value type integer or string.
9282 #
9283 # The tweak is constructed as a sequence of bytes in big endian byte order
9284 # such that:
9285 #
9286 # - a 64 bit integer is encoded followed by a single byte of value 1
9287 # - a string is encoded in UTF-8 format followed by a single byte of value 2
9288 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9289 },
9290 &quot;radix&quot;: 42, # The native way to select the alphabet. Must be in the range [2, 95].
9291 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # Required. The key used by the encryption algorithm.
9292 # a key encryption key (KEK) stored by KMS).
9293 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
9294 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
9295 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07009296 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
9297 # leaking the key. Choose another type of key if possible.
9298 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
9299 },
9300 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
9301 # It will be discarded after the request finishes.
9302 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
9303 # This is an arbitrary string used to differentiate different keys.
9304 # A unique key is generated per name: two separate `TransientCryptoKey`
9305 # protos share the same generated key if their names are the same.
9306 # When the data crypto key is generated, this name is not used in any way
9307 # (repeating the api call will result in a different key being generated).
9308 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009309 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
9310 # The wrapped key must be a 128/192/256 bit key.
9311 # Authorization requires the following IAM permissions when sending a request
9312 # to perform a crypto transformation using a kms-wrapped crypto key:
9313 # dlp.kms.encrypt
9314 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
9315 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
9316 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009317 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009318 &quot;customAlphabet&quot;: &quot;A String&quot;, # This is supported by mapping these to the alphanumeric characters
9319 # that the FFX mode natively supports. This happens before/after
9320 # encryption/decryption.
9321 # Each character listed must appear only once.
9322 # Number of characters must be in the range [2, 95].
9323 # This must be encoded as ASCII.
9324 # The order of characters does not matter.
9325 &quot;commonAlphabet&quot;: &quot;A String&quot;, # Common alphabets.
Bu Sun Kim65020912020-05-20 12:08:20 -07009326 },
9327 &quot;cryptoDeterministicConfig&quot;: { # Pseudonymization method that generates deterministic encryption for the given # Deterministic Crypto
9328 # input. Outputs a base64 encoded representation of the encrypted output.
9329 # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
9330 &quot;surrogateInfoType&quot;: { # Type of information detected by the API. # The custom info type to annotate the surrogate with.
9331 # This annotation will be applied to the surrogate by prefixing it with
9332 # the name of the custom info type followed by the number of
9333 # characters comprising the surrogate. The following scheme defines the
9334 # format: {info type name}({surrogate character count}):{surrogate}
9335 #
9336 # For example, if the name of custom info type is &#x27;MY_TOKEN_INFO_TYPE&#x27; and
9337 # the surrogate is &#x27;abc&#x27;, the full replacement value
9338 # will be: &#x27;MY_TOKEN_INFO_TYPE(3):abc&#x27;
9339 #
9340 # This annotation identifies the surrogate when inspecting content using the
9341 # custom info type &#x27;Surrogate&#x27;. This facilitates reversal of the
9342 # surrogate when it occurs in free text.
9343 #
9344 # Note: For record transformations where the entire cell in a table is being
9345 # transformed, surrogates are not mandatory. Surrogates are used to denote
9346 # the location of the token and are necessary for re-identification in free
9347 # form text.
9348 #
9349 # In order for inspection to work properly, the name of this info type must
9350 # not occur naturally anywhere in your data; otherwise, inspection may either
9351 #
9352 # - reverse a surrogate that does not correspond to an actual identifier
9353 # - be unable to parse the surrogate and result in an error
9354 #
9355 # Therefore, choose your custom info type name carefully after considering
9356 # what your data looks like. One way to select a name that has a high chance
9357 # of yielding reliable detection is to include one or more unicode characters
9358 # that are highly improbable to exist in your data.
9359 # For example, assuming your data is entered from a regular ASCII keyboard,
9360 # the symbol with the hex code point 29DD might be used like so:
9361 # ⧝MY_TOKEN_TYPE.
9362 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
9363 # creating a CustomInfoType, or one of the names listed
9364 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
9365 # a built-in type. InfoType names should conform to the pattern
9366 # `[a-zA-Z0-9_]{1,64}`.
9367 },
9368 &quot;context&quot;: { # General identifier of a data field in a storage service. # A context may be used for higher security and maintaining
9369 # referential integrity such that the same identifier in two different
9370 # contexts will be given a distinct surrogate. The context is appended to
9371 # plaintext value being encrypted. On decryption the provided context is
9372 # validated against the value used during encryption. If a context was
9373 # provided during encryption, same context must be provided during decryption
9374 # as well.
9375 #
9376 # If the context is not set, plaintext would be used as is for encryption.
9377 # If the context is set but:
9378 #
9379 # 1. there is no record present when transforming a given value or
9380 # 2. the field is not present when transforming a given value,
9381 #
9382 # plaintext would be used as is for encryption.
9383 #
9384 # Note that case (1) is expected when an `InfoTypeTransformation` is
9385 # applied to both structured and non-structured `ContentItem`s.
9386 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9387 },
9388 &quot;cryptoKey&quot;: { # This is a data encryption key (DEK) (as opposed to # The key used by the encryption function.
9389 # a key encryption key (KEK) stored by KMS).
9390 # When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
9391 # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
9392 # unwrap the data crypto key.
Bu Sun Kim65020912020-05-20 12:08:20 -07009393 &quot;unwrapped&quot;: { # Using raw keys is prone to security risks due to accidentally # Unwrapped crypto key
9394 # leaking the key. Choose another type of key if possible.
9395 &quot;key&quot;: &quot;A String&quot;, # Required. A 128/192/256 bit key.
9396 },
9397 &quot;transient&quot;: { # Use this to have a random data crypto key generated. # Transient crypto key
9398 # It will be discarded after the request finishes.
9399 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the key.
9400 # This is an arbitrary string used to differentiate different keys.
9401 # A unique key is generated per name: two separate `TransientCryptoKey`
9402 # protos share the same generated key if their names are the same.
9403 # When the data crypto key is generated, this name is not used in any way
9404 # (repeating the api call will result in a different key being generated).
9405 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009406 &quot;kmsWrapped&quot;: { # Include to use an existing data crypto key wrapped by KMS. # Kms wrapped key
9407 # The wrapped key must be a 128/192/256 bit key.
9408 # Authorization requires the following IAM permissions when sending a request
9409 # to perform a crypto transformation using a kms-wrapped crypto key:
9410 # dlp.kms.encrypt
9411 &quot;cryptoKeyName&quot;: &quot;A String&quot;, # Required. The resource name of the KMS CryptoKey to use for unwrapping.
9412 &quot;wrappedKey&quot;: &quot;A String&quot;, # Required. The wrapped data crypto key.
9413 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009414 },
9415 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009416 &quot;bucketingConfig&quot;: { # Generalization function that buckets values based on ranges. The ranges and # Bucketing
9417 # replacement values are dynamically provided by the user for custom behavior,
9418 # such as 1-30 -&gt; LOW 31-65 -&gt; MEDIUM 66-100 -&gt; HIGH
9419 # This can be used on
9420 # data of type: number, long, string, timestamp.
9421 # If the bound `Value` type differs from the type of data being transformed, we
9422 # will first attempt converting the type of the data to be transformed to match
9423 # the type of the bound before comparing.
9424 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
9425 &quot;buckets&quot;: [ # Set of buckets. Ranges must be non-overlapping.
9426 { # Bucket is represented as a range, along with replacement values.
Bu Sun Kim65020912020-05-20 12:08:20 -07009427 &quot;replacementValue&quot;: { # Set of primitive values supported by the system. # Replacement value for this bucket. If not provided
9428 # the default behavior will be to hyphenate the min-max range.
9429 # Note that for the purposes of inspection or transformation, the number
9430 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9431 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9432 # 123456789, the number of bytes would be counted as 9, even though an
9433 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009434 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9435 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9436 # and time zone are either specified elsewhere or are not significant. The date
9437 # is relative to the Proleptic Gregorian Calendar. This can represent:
9438 #
9439 # * A full date, with non-zero year, month and day values
9440 # * A month and day value, with a zero year, e.g. an anniversary
9441 # * A year on its own, with zero month and day values
9442 # * A year and month value, with a zero day, e.g. a credit card expiration date
9443 #
9444 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9445 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9446 # a year.
9447 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9448 # month and day.
9449 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9450 # if specifying a year by itself or a year and month where the day is not
9451 # significant.
9452 },
9453 &quot;stringValue&quot;: &quot;A String&quot;, # string
9454 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9455 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9456 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9457 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009458 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9459 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9460 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009461 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9462 # allow the value 60 if it allows leap-seconds.
9463 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009464 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009465 &quot;booleanValue&quot;: True or False, # boolean
9466 &quot;floatValue&quot;: 3.14, # float
9467 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
9468 },
9469 &quot;min&quot;: { # Set of primitive values supported by the system. # Lower bound of the range, inclusive. Type should be the same as max if
9470 # used.
9471 # Note that for the purposes of inspection or transformation, the number
9472 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9473 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9474 # 123456789, the number of bytes would be counted as 9, even though an
9475 # int64 only holds up to 8 bytes of data.
9476 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9477 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9478 # and time zone are either specified elsewhere or are not significant. The date
9479 # is relative to the Proleptic Gregorian Calendar. This can represent:
9480 #
9481 # * A full date, with non-zero year, month and day values
9482 # * A month and day value, with a zero year, e.g. an anniversary
9483 # * A year on its own, with zero month and day values
9484 # * A year and month value, with a zero day, e.g. a credit card expiration date
9485 #
9486 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9487 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9488 # a year.
9489 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9490 # month and day.
9491 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9492 # if specifying a year by itself or a year and month where the day is not
9493 # significant.
9494 },
9495 &quot;stringValue&quot;: &quot;A String&quot;, # string
9496 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9497 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9498 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9499 # types are google.type.Date and `google.protobuf.Timestamp`.
9500 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9501 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9502 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
9503 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9504 # allow the value 60 if it allows leap-seconds.
9505 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
9506 },
9507 &quot;booleanValue&quot;: True or False, # boolean
9508 &quot;floatValue&quot;: 3.14, # float
9509 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
9510 },
9511 &quot;max&quot;: { # Set of primitive values supported by the system. # Upper bound of the range, exclusive; type must match min.
9512 # Note that for the purposes of inspection or transformation, the number
9513 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9514 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9515 # 123456789, the number of bytes would be counted as 9, even though an
9516 # int64 only holds up to 8 bytes of data.
9517 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9518 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9519 # and time zone are either specified elsewhere or are not significant. The date
9520 # is relative to the Proleptic Gregorian Calendar. This can represent:
9521 #
9522 # * A full date, with non-zero year, month and day values
9523 # * A month and day value, with a zero year, e.g. an anniversary
9524 # * A year on its own, with zero month and day values
9525 # * A year and month value, with a zero day, e.g. a credit card expiration date
9526 #
9527 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9528 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9529 # a year.
9530 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9531 # month and day.
9532 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9533 # if specifying a year by itself or a year and month where the day is not
9534 # significant.
9535 },
9536 &quot;stringValue&quot;: &quot;A String&quot;, # string
9537 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9538 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9539 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9540 # types are google.type.Date and `google.protobuf.Timestamp`.
9541 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9542 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9543 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
9544 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9545 # allow the value 60 if it allows leap-seconds.
9546 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
9547 },
9548 &quot;booleanValue&quot;: True or False, # boolean
9549 &quot;floatValue&quot;: 3.14, # float
9550 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009551 },
9552 },
9553 ],
9554 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009555 &quot;redactConfig&quot;: { # Redact a given value. For example, if used with an `InfoTypeTransformation` # Redact
9556 # transforming PHONE_NUMBER, and input &#x27;My phone number is 206-555-0123&#x27;, the
9557 # output would be &#x27;My phone number is &#x27;.
9558 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009559 &quot;replaceConfig&quot;: { # Replace each input value with a given `Value`. # Replace
9560 &quot;newValue&quot;: { # Set of primitive values supported by the system. # Value to replace it with.
9561 # Note that for the purposes of inspection or transformation, the number
9562 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9563 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9564 # 123456789, the number of bytes would be counted as 9, even though an
9565 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009566 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9567 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9568 # and time zone are either specified elsewhere or are not significant. The date
9569 # is relative to the Proleptic Gregorian Calendar. This can represent:
9570 #
9571 # * A full date, with non-zero year, month and day values
9572 # * A month and day value, with a zero year, e.g. an anniversary
9573 # * A year on its own, with zero month and day values
9574 # * A year and month value, with a zero day, e.g. a credit card expiration date
9575 #
9576 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9577 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9578 # a year.
9579 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9580 # month and day.
9581 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9582 # if specifying a year by itself or a year and month where the day is not
9583 # significant.
9584 },
9585 &quot;stringValue&quot;: &quot;A String&quot;, # string
9586 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9587 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9588 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9589 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009590 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9591 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9592 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009593 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9594 # allow the value 60 if it allows leap-seconds.
9595 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009596 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009597 &quot;booleanValue&quot;: True or False, # boolean
9598 &quot;floatValue&quot;: 3.14, # float
9599 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009600 },
9601 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009602 &quot;fixedSizeBucketingConfig&quot;: { # Buckets values based on fixed size ranges. The # Fixed size bucketing
9603 # Bucketing transformation can provide all of this functionality,
9604 # but requires more configuration. This message is provided as a convenience to
9605 # the user for simple bucketing strategies.
9606 #
9607 # The transformed value will be a hyphenated string of
9608 # {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
9609 # all values that are within this bucket will be replaced with &quot;10-20&quot;.
9610 #
9611 # This can be used on data of type: double, long.
9612 #
9613 # If the bound Value type differs from the type of data
9614 # being transformed, we will first attempt converting the type of the data to
9615 # be transformed to match the type of the bound before comparing.
9616 #
9617 # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
Bu Sun Kim65020912020-05-20 12:08:20 -07009618 &quot;upperBound&quot;: { # Set of primitive values supported by the system. # Required. Upper bound value of buckets. All values greater than upper_bound are
9619 # grouped together into a single bucket; for example if `upper_bound` = 89,
9620 # then all values greater than 89 are replaced with the value &quot;89+&quot;.
9621 # Note that for the purposes of inspection or transformation, the number
9622 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9623 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9624 # 123456789, the number of bytes would be counted as 9, even though an
9625 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009626 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9627 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9628 # and time zone are either specified elsewhere or are not significant. The date
9629 # is relative to the Proleptic Gregorian Calendar. This can represent:
9630 #
9631 # * A full date, with non-zero year, month and day values
9632 # * A month and day value, with a zero year, e.g. an anniversary
9633 # * A year on its own, with zero month and day values
9634 # * A year and month value, with a zero day, e.g. a credit card expiration date
9635 #
9636 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9637 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9638 # a year.
9639 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9640 # month and day.
9641 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9642 # if specifying a year by itself or a year and month where the day is not
9643 # significant.
9644 },
9645 &quot;stringValue&quot;: &quot;A String&quot;, # string
9646 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9647 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9648 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9649 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009650 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9651 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9652 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009653 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9654 # allow the value 60 if it allows leap-seconds.
9655 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009656 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009657 &quot;booleanValue&quot;: True or False, # boolean
9658 &quot;floatValue&quot;: 3.14, # float
9659 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009660 },
9661 &quot;bucketSize&quot;: 3.14, # Required. Size of each bucket (except for minimum and maximum buckets). So if
9662 # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
9663 # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
9664 # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009665 &quot;lowerBound&quot;: { # Set of primitive values supported by the system. # Required. Lower bound value of buckets. All values less than `lower_bound` are
9666 # grouped together into a single bucket; for example if `lower_bound` = 10,
9667 # then all values less than 10 are replaced with the value &quot;-10&quot;.
9668 # Note that for the purposes of inspection or transformation, the number
9669 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9670 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9671 # 123456789, the number of bytes would be counted as 9, even though an
9672 # int64 only holds up to 8 bytes of data.
9673 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9674 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9675 # and time zone are either specified elsewhere or are not significant. The date
9676 # is relative to the Proleptic Gregorian Calendar. This can represent:
9677 #
9678 # * A full date, with non-zero year, month and day values
9679 # * A month and day value, with a zero year, e.g. an anniversary
9680 # * A year on its own, with zero month and day values
9681 # * A year and month value, with a zero day, e.g. a credit card expiration date
9682 #
9683 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9684 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9685 # a year.
9686 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9687 # month and day.
9688 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9689 # if specifying a year by itself or a year and month where the day is not
9690 # significant.
9691 },
9692 &quot;stringValue&quot;: &quot;A String&quot;, # string
9693 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9694 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9695 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9696 # types are google.type.Date and `google.protobuf.Timestamp`.
9697 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9698 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9699 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
9700 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9701 # allow the value 60 if it allows leap-seconds.
9702 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
9703 },
9704 &quot;booleanValue&quot;: True or False, # boolean
9705 &quot;floatValue&quot;: 3.14, # float
9706 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
9707 },
Bu Sun Kim65020912020-05-20 12:08:20 -07009708 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009709 &quot;characterMaskConfig&quot;: { # Partially mask a string by replacing a given number of characters with a # Mask
9710 # fixed character. Masking can start from the beginning or end of the string.
9711 # This can be used on data of any type (numbers, longs, and so on) and when
9712 # de-identifying structured data we&#x27;ll attempt to preserve the original data&#x27;s
9713 # type. (This allows you to take a long like 123 and modify it to a string like
9714 # **3.
9715 &quot;charactersToIgnore&quot;: [ # When masking a string, items in this list will be skipped when replacing
9716 # characters. For example, if the input string is `555-555-5555` and you
9717 # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
9718 # returns `***-**5-5555`.
9719 { # Characters to skip when doing deidentification of a value. These will be left
9720 # alone and skipped.
9721 &quot;charactersToSkip&quot;: &quot;A String&quot;, # Characters to not transform when masking.
9722 &quot;commonCharactersToIgnore&quot;: &quot;A String&quot;, # Common characters to not transform when masking. Useful to avoid removing
9723 # punctuation.
9724 },
9725 ],
9726 &quot;numberToMask&quot;: 42, # Number of characters to mask. If not set, all matching chars will be
9727 # masked. Skipped characters do not count towards this tally.
9728 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to use to mask the sensitive values&amp;mdash;for example, `*` for an
9729 # alphabetic string such as a name, or `0` for a numeric string such as ZIP
9730 # code or credit card number. This string must have a length of 1. If not
9731 # supplied, this value defaults to `*` for strings, and `0` for digits.
9732 &quot;reverseOrder&quot;: True or False, # Mask characters in reverse order. For example, if `masking_character` is
9733 # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
9734 # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
9735 # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
9736 # is `true`, then the string `12345` is masked as `12***`.
9737 },
9738 },
9739 &quot;field&quot;: { # General identifier of a data field in a storage service. # Set if the transformation was limited to a specific FieldId.
9740 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
Bu Sun Kim65020912020-05-20 12:08:20 -07009741 },
9742 &quot;transformedBytes&quot;: &quot;A String&quot;, # Total size in bytes that were transformed in some way.
9743 &quot;recordSuppress&quot;: { # Configuration to suppress records whose suppression conditions evaluate to # The specific suppression option these stats apply to.
9744 # true.
9745 &quot;condition&quot;: { # A condition for determining whether a transformation should be applied to # A condition that when it evaluates to true will result in the record being
9746 # evaluated to be suppressed from the transformed content.
9747 # a field.
9748 &quot;expressions&quot;: { # An expression, consisting or an operator and conditions. # An expression.
9749 &quot;logicalOperator&quot;: &quot;A String&quot;, # The operator to apply to the result of conditions. Default and currently
9750 # only supported value is `AND`.
9751 &quot;conditions&quot;: { # A collection of conditions. # Conditions to apply to the expression.
9752 &quot;conditions&quot;: [ # A collection of conditions.
9753 { # The field type of `value` and `field` do not need to match to be
9754 # considered equal, but not all comparisons are possible.
9755 # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
9756 # but all other comparisons are invalid with incompatible types.
9757 # A `value` of type:
9758 #
9759 # - `string` can be compared against all other types
9760 # - `boolean` can only be compared against other booleans
9761 # - `integer` can be compared against doubles or a string if the string value
9762 # can be parsed as an integer.
9763 # - `double` can be compared against integers or a string if the string can
9764 # be parsed as a double.
9765 # - `Timestamp` can be compared against strings in RFC 3339 date string
9766 # format.
9767 # - `TimeOfDay` can be compared against timestamps and strings in the format
9768 # of &#x27;HH:mm:ss&#x27;.
9769 #
9770 # If we fail to compare do to type mismatch, a warning will be given and
9771 # the condition will evaluate to false.
Bu Sun Kim65020912020-05-20 12:08:20 -07009772 &quot;value&quot;: { # Set of primitive values supported by the system. # Value to compare against. [Mandatory, except for `EXISTS` tests.]
9773 # Note that for the purposes of inspection or transformation, the number
9774 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9775 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9776 # 123456789, the number of bytes would be counted as 9, even though an
9777 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009778 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9779 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9780 # and time zone are either specified elsewhere or are not significant. The date
9781 # is relative to the Proleptic Gregorian Calendar. This can represent:
9782 #
9783 # * A full date, with non-zero year, month and day values
9784 # * A month and day value, with a zero year, e.g. an anniversary
9785 # * A year on its own, with zero month and day values
9786 # * A year and month value, with a zero day, e.g. a credit card expiration date
9787 #
9788 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9789 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9790 # a year.
9791 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9792 # month and day.
9793 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9794 # if specifying a year by itself or a year and month where the day is not
9795 # significant.
9796 },
9797 &quot;stringValue&quot;: &quot;A String&quot;, # string
9798 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9799 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9800 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9801 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009802 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9803 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9804 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009805 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9806 # allow the value 60 if it allows leap-seconds.
9807 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009808 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009809 &quot;booleanValue&quot;: True or False, # boolean
9810 &quot;floatValue&quot;: 3.14, # float
9811 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009812 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009813 &quot;field&quot;: { # General identifier of a data field in a storage service. # Required. Field within the record this condition is evaluated against.
9814 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9815 },
9816 &quot;operator&quot;: &quot;A String&quot;, # Required. Operator used to compare the field or infoType to the value.
Bu Sun Kim65020912020-05-20 12:08:20 -07009817 },
9818 ],
9819 },
9820 },
9821 },
9822 },
9823 &quot;infoType&quot;: { # Type of information detected by the API. # Set if the transformation was limited to a specific InfoType.
9824 &quot;name&quot;: &quot;A String&quot;, # Name of the information type. Either a name of your choosing when
9825 # creating a CustomInfoType, or one of the names listed
9826 # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
9827 # a built-in type. InfoType names should conform to the pattern
9828 # `[a-zA-Z0-9_]{1,64}`.
9829 },
9830 &quot;results&quot;: [ # Collection of all transformations that took place or had an error.
9831 { # A collection that informs the user the number of times a particular
9832 # `TransformationResultCode` and error details occurred.
Bu Sun Kim65020912020-05-20 12:08:20 -07009833 &quot;details&quot;: &quot;A String&quot;, # A place for warnings or errors to show up if a transformation didn&#x27;t
9834 # work as expected.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009835 &quot;code&quot;: &quot;A String&quot;, # Outcome of the transformation.
9836 &quot;count&quot;: &quot;A String&quot;, # Number of transformations counted by this result.
Bu Sun Kim65020912020-05-20 12:08:20 -07009837 },
9838 ],
9839 },
9840 ],
9841 &quot;transformedBytes&quot;: &quot;A String&quot;, # Total size in bytes that were transformed in some way.
9842 },
9843 &quot;item&quot;: { # Container structure for the content to inspect. # The re-identified item.
9844 &quot;byteItem&quot;: { # Container for bytes to inspect or redact. # Content data to inspect or redact. Replaces `type` and `data`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009845 &quot;data&quot;: &quot;A String&quot;, # Content data to inspect or redact.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009846 &quot;type&quot;: &quot;A String&quot;, # The type of data stored in the bytes string. Default will be TEXT_UTF8.
Bu Sun Kim65020912020-05-20 12:08:20 -07009847 },
9848 &quot;value&quot;: &quot;A String&quot;, # String data to inspect or redact.
9849 &quot;table&quot;: { # Structured content to inspect. Up to 50,000 `Value`s per request allowed. # Structured content for inspection. See
9850 # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
9851 # learn more.
9852 # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
9853 # learn more.
9854 &quot;rows&quot;: [ # Rows of the table.
9855 { # Values of the row.
9856 &quot;values&quot;: [ # Individual cells.
9857 { # Set of primitive values supported by the system.
9858 # Note that for the purposes of inspection or transformation, the number
9859 # of bytes considered to comprise a &#x27;Value&#x27; is based on its representation
9860 # as a UTF-8 encoded string. For example, if &#x27;integer_value&#x27; is set to
9861 # 123456789, the number of bytes would be counted as 9, even though an
9862 # int64 only holds up to 8 bytes of data.
Bu Sun Kim65020912020-05-20 12:08:20 -07009863 &quot;timestampValue&quot;: &quot;A String&quot;, # timestamp
9864 &quot;dateValue&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # date
9865 # and time zone are either specified elsewhere or are not significant. The date
9866 # is relative to the Proleptic Gregorian Calendar. This can represent:
9867 #
9868 # * A full date, with non-zero year, month and day values
9869 # * A month and day value, with a zero year, e.g. an anniversary
9870 # * A year on its own, with zero month and day values
9871 # * A year and month value, with a zero day, e.g. a credit card expiration date
9872 #
9873 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
9874 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
9875 # a year.
9876 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
9877 # month and day.
9878 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
9879 # if specifying a year by itself or a year and month where the day is not
9880 # significant.
9881 },
9882 &quot;stringValue&quot;: &quot;A String&quot;, # string
9883 &quot;integerValue&quot;: &quot;A String&quot;, # integer
9884 &quot;timeValue&quot;: { # Represents a time of day. The date and time zone are either not significant # time of day
9885 # or are specified elsewhere. An API may choose to allow leap seconds. Related
9886 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -07009887 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
9888 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
9889 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009890 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
9891 # allow the value 60 if it allows leap-seconds.
9892 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim65020912020-05-20 12:08:20 -07009893 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07009894 &quot;booleanValue&quot;: True or False, # boolean
9895 &quot;floatValue&quot;: 3.14, # float
9896 &quot;dayOfWeekValue&quot;: &quot;A String&quot;, # day of week
Bu Sun Kim65020912020-05-20 12:08:20 -07009897 },
9898 ],
9899 },
9900 ],
9901 &quot;headers&quot;: [ # Headers of the table.
9902 { # General identifier of a data field in a storage service.
9903 &quot;name&quot;: &quot;A String&quot;, # Name describing the field.
9904 },
9905 ],
9906 },
9907 },
9908 }</pre>
9909</div>
9910
9911</body></html>