Skip to content

Commit 80df4cc

Browse files
1 parent 3385a4c commit 80df4cc

10 files changed

+505
-11
lines changed

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-rev20250216-2.0.0</version>
25+
<version>v2-rev20250305-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-rev20250216-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20250305-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13936,7 +13936,8 @@ public class Image {
1393613936
* protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or
1393713937
* CustomInfoTypes are specified in this request, the system will automatically choose what
1393813938
* detectors to run. By default this may be all types, but may change over time as detectors are
13939-
* updated.
13939+
* updated. Only the first frame of each multiframe image is redacted. Metadata and other frames are
13940+
* omitted in the response.
1394013941
*
1394113942
* Create a request for the method "image.redact".
1394213943
*
@@ -13973,7 +13974,8 @@ public class Redact extends DLPRequest<com.google.api.services.dlp.v2.model.Goog
1397313974
* protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or
1397413975
* CustomInfoTypes are specified in this request, the system will automatically choose what
1397513976
* detectors to run. By default this may be all types, but may change over time as detectors are
13976-
* updated.
13977+
* updated. Only the first frame of each multiframe image is redacted. Metadata and other frames
13978+
* are omitted in the response.
1397713979
*
1397813980
* Create a request for the method "image.redact".
1397913981
*
@@ -21792,7 +21794,8 @@ public class Image {
2179221794
* protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or
2179321795
* CustomInfoTypes are specified in this request, the system will automatically choose what
2179421796
* detectors to run. By default this may be all types, but may change over time as detectors are
21795-
* updated.
21797+
* updated. Only the first frame of each multiframe image is redacted. Metadata and other frames are
21798+
* omitted in the response.
2179621799
*
2179721800
* Create a request for the method "image.redact".
2179821801
*
@@ -21829,7 +21832,8 @@ public class Redact extends DLPRequest<com.google.api.services.dlp.v2.model.Goog
2182921832
* protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or
2183021833
* CustomInfoTypes are specified in this request, the system will automatically choose what
2183121834
* detectors to run. By default this may be all types, but may change over time as detectors are
21832-
* updated.
21835+
* updated. Only the first frame of each multiframe image is redacted. Metadata and other frames
21836+
* are omitted in the response.
2183321837
*
2183421838
* Create a request for the method "image.redact".
2183521839
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dlp.v2.model;
18+
19+
/**
20+
* Details about a piece of potentially sensitive information that was detected when the data
21+
* resource was profiled.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
25+
* explanation see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GooglePrivacyDlpV2DataProfileFinding extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Resource name of the data profile associated with the finding.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String dataProfileResourceName;
40+
41+
/**
42+
* A unique identifier for the finding.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String findingId;
47+
48+
/**
49+
* The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-
50+
* reference) that might have been found.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private GooglePrivacyDlpV2InfoType infotype;
55+
56+
/**
57+
* Where the content was found.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private GooglePrivacyDlpV2DataProfileFindingLocation location;
62+
63+
/**
64+
* The content that was found. Even if the content is not textual, it may be converted to a
65+
* textual representation here. If the finding exceeds 4096 bytes in length, the quote may be
66+
* omitted.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String quote;
71+
72+
/**
73+
* Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
74+
* The value may be {@code null}.
75+
*/
76+
@com.google.api.client.util.Key
77+
private GooglePrivacyDlpV2QuoteInfo quoteInfo;
78+
79+
/**
80+
* How broadly a resource has been shared.
81+
* The value may be {@code null}.
82+
*/
83+
@com.google.api.client.util.Key
84+
private java.lang.String resourceVisibility;
85+
86+
/**
87+
* Timestamp when the finding was detected.
88+
* The value may be {@code null}.
89+
*/
90+
@com.google.api.client.util.Key
91+
private String timestamp;
92+
93+
/**
94+
* Resource name of the data profile associated with the finding.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.lang.String getDataProfileResourceName() {
98+
return dataProfileResourceName;
99+
}
100+
101+
/**
102+
* Resource name of the data profile associated with the finding.
103+
* @param dataProfileResourceName dataProfileResourceName or {@code null} for none
104+
*/
105+
public GooglePrivacyDlpV2DataProfileFinding setDataProfileResourceName(java.lang.String dataProfileResourceName) {
106+
this.dataProfileResourceName = dataProfileResourceName;
107+
return this;
108+
}
109+
110+
/**
111+
* A unique identifier for the finding.
112+
* @return value or {@code null} for none
113+
*/
114+
public java.lang.String getFindingId() {
115+
return findingId;
116+
}
117+
118+
/**
119+
* A unique identifier for the finding.
120+
* @param findingId findingId or {@code null} for none
121+
*/
122+
public GooglePrivacyDlpV2DataProfileFinding setFindingId(java.lang.String findingId) {
123+
this.findingId = findingId;
124+
return this;
125+
}
126+
127+
/**
128+
* The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-
129+
* reference) that might have been found.
130+
* @return value or {@code null} for none
131+
*/
132+
public GooglePrivacyDlpV2InfoType getInfotype() {
133+
return infotype;
134+
}
135+
136+
/**
137+
* The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-
138+
* reference) that might have been found.
139+
* @param infotype infotype or {@code null} for none
140+
*/
141+
public GooglePrivacyDlpV2DataProfileFinding setInfotype(GooglePrivacyDlpV2InfoType infotype) {
142+
this.infotype = infotype;
143+
return this;
144+
}
145+
146+
/**
147+
* Where the content was found.
148+
* @return value or {@code null} for none
149+
*/
150+
public GooglePrivacyDlpV2DataProfileFindingLocation getLocation() {
151+
return location;
152+
}
153+
154+
/**
155+
* Where the content was found.
156+
* @param location location or {@code null} for none
157+
*/
158+
public GooglePrivacyDlpV2DataProfileFinding setLocation(GooglePrivacyDlpV2DataProfileFindingLocation location) {
159+
this.location = location;
160+
return this;
161+
}
162+
163+
/**
164+
* The content that was found. Even if the content is not textual, it may be converted to a
165+
* textual representation here. If the finding exceeds 4096 bytes in length, the quote may be
166+
* omitted.
167+
* @return value or {@code null} for none
168+
*/
169+
public java.lang.String getQuote() {
170+
return quote;
171+
}
172+
173+
/**
174+
* The content that was found. Even if the content is not textual, it may be converted to a
175+
* textual representation here. If the finding exceeds 4096 bytes in length, the quote may be
176+
* omitted.
177+
* @param quote quote or {@code null} for none
178+
*/
179+
public GooglePrivacyDlpV2DataProfileFinding setQuote(java.lang.String quote) {
180+
this.quote = quote;
181+
return this;
182+
}
183+
184+
/**
185+
* Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
186+
* @return value or {@code null} for none
187+
*/
188+
public GooglePrivacyDlpV2QuoteInfo getQuoteInfo() {
189+
return quoteInfo;
190+
}
191+
192+
/**
193+
* Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
194+
* @param quoteInfo quoteInfo or {@code null} for none
195+
*/
196+
public GooglePrivacyDlpV2DataProfileFinding setQuoteInfo(GooglePrivacyDlpV2QuoteInfo quoteInfo) {
197+
this.quoteInfo = quoteInfo;
198+
return this;
199+
}
200+
201+
/**
202+
* How broadly a resource has been shared.
203+
* @return value or {@code null} for none
204+
*/
205+
public java.lang.String getResourceVisibility() {
206+
return resourceVisibility;
207+
}
208+
209+
/**
210+
* How broadly a resource has been shared.
211+
* @param resourceVisibility resourceVisibility or {@code null} for none
212+
*/
213+
public GooglePrivacyDlpV2DataProfileFinding setResourceVisibility(java.lang.String resourceVisibility) {
214+
this.resourceVisibility = resourceVisibility;
215+
return this;
216+
}
217+
218+
/**
219+
* Timestamp when the finding was detected.
220+
* @return value or {@code null} for none
221+
*/
222+
public String getTimestamp() {
223+
return timestamp;
224+
}
225+
226+
/**
227+
* Timestamp when the finding was detected.
228+
* @param timestamp timestamp or {@code null} for none
229+
*/
230+
public GooglePrivacyDlpV2DataProfileFinding setTimestamp(String timestamp) {
231+
this.timestamp = timestamp;
232+
return this;
233+
}
234+
235+
@Override
236+
public GooglePrivacyDlpV2DataProfileFinding set(String fieldName, Object value) {
237+
return (GooglePrivacyDlpV2DataProfileFinding) super.set(fieldName, value);
238+
}
239+
240+
@Override
241+
public GooglePrivacyDlpV2DataProfileFinding clone() {
242+
return (GooglePrivacyDlpV2DataProfileFinding) super.clone();
243+
}
244+
245+
}

0 commit comments

Comments
 (0)