Skip to content

Commit 506ff13

Browse files
1 parent 4cdd08c commit 506ff13

6 files changed

Lines changed: 188 additions & 6 deletions

File tree

clients/google-api-services-dlp/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dlp</artifactId>
25-
<version>v2-rev20260307-2.0.0</version>
25+
<version>v2-rev20260321-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260307-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260321-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dlp/v2/2.0.0/com/google/api/services/dlp/v2/model/GooglePrivacyDlpV2ContentItem.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public final class GooglePrivacyDlpV2ContentItem extends com.google.api.client.j
3737
@com.google.api.client.util.Key
3838
private GooglePrivacyDlpV2ByteContentItem byteItem;
3939

40+
/**
41+
* User provided metadata for the content.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GooglePrivacyDlpV2ContentMetadata contentMetadata;
46+
4047
/**
4148
* Structured content for inspection. See https://cloud.google.com/sensitive-data-
4249
* protection/docs/inspecting-text#inspecting_a_table to learn more.
@@ -69,6 +76,23 @@ public GooglePrivacyDlpV2ContentItem setByteItem(GooglePrivacyDlpV2ByteContentIt
6976
return this;
7077
}
7178

79+
/**
80+
* User provided metadata for the content.
81+
* @return value or {@code null} for none
82+
*/
83+
public GooglePrivacyDlpV2ContentMetadata getContentMetadata() {
84+
return contentMetadata;
85+
}
86+
87+
/**
88+
* User provided metadata for the content.
89+
* @param contentMetadata contentMetadata or {@code null} for none
90+
*/
91+
public GooglePrivacyDlpV2ContentItem setContentMetadata(GooglePrivacyDlpV2ContentMetadata contentMetadata) {
92+
this.contentMetadata = contentMetadata;
93+
return this;
94+
}
95+
7296
/**
7397
* Structured content for inspection. See https://cloud.google.com/sensitive-data-
7498
* protection/docs/inspecting-text#inspecting_a_table to learn more.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dlp.v2.model;
18+
19+
/**
20+
* Metadata on content to be scanned.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
24+
* explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GooglePrivacyDlpV2ContentMetadata extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* User provided key-value pairs of content metadata.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GooglePrivacyDlpV2KeyValueMetadataProperty> properties;
39+
40+
/**
41+
* User provided key-value pairs of content metadata.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<GooglePrivacyDlpV2KeyValueMetadataProperty> getProperties() {
45+
return properties;
46+
}
47+
48+
/**
49+
* User provided key-value pairs of content metadata.
50+
* @param properties properties or {@code null} for none
51+
*/
52+
public GooglePrivacyDlpV2ContentMetadata setProperties(java.util.List<GooglePrivacyDlpV2KeyValueMetadataProperty> properties) {
53+
this.properties = properties;
54+
return this;
55+
}
56+
57+
@Override
58+
public GooglePrivacyDlpV2ContentMetadata set(String fieldName, Object value) {
59+
return (GooglePrivacyDlpV2ContentMetadata) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GooglePrivacyDlpV2ContentMetadata clone() {
64+
return (GooglePrivacyDlpV2ContentMetadata) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dlp.v2.model;
18+
19+
/**
20+
* A key-value pair in the Metadata.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
24+
* explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GooglePrivacyDlpV2KeyValueMetadataProperty extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The key of the property.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String key;
39+
40+
/**
41+
* The value of the property.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String value;
46+
47+
/**
48+
* The key of the property.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getKey() {
52+
return key;
53+
}
54+
55+
/**
56+
* The key of the property.
57+
* @param key key or {@code null} for none
58+
*/
59+
public GooglePrivacyDlpV2KeyValueMetadataProperty setKey(java.lang.String key) {
60+
this.key = key;
61+
return this;
62+
}
63+
64+
/**
65+
* The value of the property.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.String getValue() {
69+
return value;
70+
}
71+
72+
/**
73+
* The value of the property.
74+
* @param value value or {@code null} for none
75+
*/
76+
public GooglePrivacyDlpV2KeyValueMetadataProperty setValue(java.lang.String value) {
77+
this.value = value;
78+
return this;
79+
}
80+
81+
@Override
82+
public GooglePrivacyDlpV2KeyValueMetadataProperty set(String fieldName, Object value) {
83+
return (GooglePrivacyDlpV2KeyValueMetadataProperty) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GooglePrivacyDlpV2KeyValueMetadataProperty clone() {
88+
return (GooglePrivacyDlpV2KeyValueMetadataProperty) super.clone();
89+
}
90+
91+
}

clients/google-api-services-dlp/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-dlp</artifactId>
11-
<version>v2-rev20260307-2.0.0</version>
12-
<name>Sensitive Data Protection (DLP) v2-rev20260307-2.0.0</name>
11+
<version>v2-rev20260321-2.0.0</version>
12+
<name>Sensitive Data Protection (DLP) v2-rev20260321-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-dlp/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dlp</artifactId>
25-
<version>v2-rev20260307-2.0.0</version>
25+
<version>v2-rev20260321-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260307-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260321-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)