Skip to content

Commit de7d2de

Browse files
chore: [dlp] update generator version to newest release v4.12.0 (#8443)
* feat: Supporting SDP Batch Content docs: A comment for field `participant_id` in message `.google.privacy.dlp.v2.ConversationMessage` is changed PiperOrigin-RevId: 926837595 Source-Link: googleapis/googleapis@ee4a3e1 Source-Link: googleapis/googleapis-gen@9d72b61 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiI5ZDcyYjYxNGNkM2M3N2NkMTcwMjk4MjlhMmU3MDc1NGZkN2M4Y2FmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update generator version to newest release v4.12.0 PiperOrigin-RevId: 928929299 Source-Link: googleapis/googleapis@05c4b6d Source-Link: googleapis/googleapis-gen@0cbc8bf Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiIwY2JjOGJmMmQ1ZWEwMjdkOWFkM2EyMTk3Njg2ZDY4NmNhMzFlOTMyIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d76f8d8 commit de7d2de

7 files changed

Lines changed: 13512 additions & 4235 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
const config = {
20+
"enable-source-maps": true,
21+
"throw-deprecation": true,
22+
"timeout": 10000
23+
}
24+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
25+
delete config['throw-deprecation'];
26+
}
27+
if (process.env.MOCHA_REPORTER) {
28+
config.reporter = process.env.MOCHA_REPORTER;
29+
}
30+
if (process.env.MOCHA_REPORTER_OUTPUT) {
31+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
32+
}
33+
module.exports = config

packages/google-privacy-dlp/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
115115
| update inspect template | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-privacy-dlp/samples/generated/v2/dlp_service.update_inspect_template.js) |
116116
| update job trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-privacy-dlp/samples/generated/v2/dlp_service.update_job_trigger.js) |
117117
| update stored info type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-privacy-dlp/samples/generated/v2/dlp_service.update_stored_info_type.js) |
118-
| privacy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-privacy-dlp/samples/generated/v2/snippet_metadata_google.privacy.dlp.v2.json) |
119118

120119

121120
## Supported Node.js Versions

packages/google-privacy-dlp/protos/google/privacy/dlp/v2/dlp.proto

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,9 @@ message ContentItem {
13881388
// It is assumed that all included messages are contiguous and ordered in
13891389
// chronological order.
13901390
Conversation conversation = 7;
1391+
1392+
// Represents a batch of items to inspect.
1393+
BatchContentItem batch_content_item = 8;
13911394
}
13921395

13931396
// User provided metadata for the content.
@@ -1434,14 +1437,30 @@ message ConversationMessage {
14341437
MessageType message_type = 2;
14351438

14361439
// Optional. The identifier of the participant,
1437-
// for example, 'test-user' or 'gemini'.
1440+
// for example 'test-user' or 'gemini'.
14381441
// The participant ID can contain lowercase letters, numbers, and hyphens;
14391442
// that is, it must match the regular expression:
14401443
// `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
14411444
// The maximum length is 63 characters.
14421445
string participant_id = 3;
14431446
}
14441447

1448+
// Represents a batch of content to inspect or redact.
1449+
message BatchContentItem {
1450+
// Represents the batch to inspect or redact.
1451+
oneof batch {
1452+
// Optional. Represents a batch of string values to inspect or redact.
1453+
StringValueBatch string_value_batch = 1
1454+
[(google.api.field_behavior) = OPTIONAL];
1455+
}
1456+
}
1457+
1458+
// Represents a batch of string values to inspect or redact.
1459+
message StringValueBatch {
1460+
// Optional. Represents string data to inspect or redact.
1461+
repeated string values = 1 [(google.api.field_behavior) = OPTIONAL];
1462+
}
1463+
14451464
// Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
14461465
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
14471466
// to learn more.
@@ -1608,6 +1627,9 @@ message ContentLocation {
16081627

16091628
// Location within a conversation.
16101629
ConversationLocation conversation_location = 10;
1630+
1631+
// Location within a batch of content.
1632+
BatchContentLocation batch_content_location = 11;
16111633
}
16121634

16131635
// Finding container modification timestamp, if applicable. For Cloud Storage,
@@ -1639,6 +1661,12 @@ message ConversationLocation {
16391661
}
16401662
}
16411663

1664+
// Location within a batch of content.
1665+
message BatchContentLocation {
1666+
// Matches an index of a batch item in the batch provided in the request.
1667+
int32 item_index = 1;
1668+
}
1669+
16421670
// Metadata Location
16431671
message MetadataLocation {
16441672
// Type of metadata containing the finding.

0 commit comments

Comments
 (0)