|
19 | 19 | import com.google.api.gax.longrunning.OperationFuture;
|
20 | 20 | import com.google.cloud.ServiceOptions;
|
21 | 21 | import com.google.cloud.dlp.v2beta1.DlpServiceClient;
|
22 |
| -import com.google.longrunning.Operation; |
23 | 22 | import com.google.privacy.dlp.v2beta1.BigQueryOptions;
|
24 | 23 | import com.google.privacy.dlp.v2beta1.BigQueryTable;
|
25 | 24 | import com.google.privacy.dlp.v2beta1.CloudStorageOptions;
|
@@ -241,7 +240,7 @@ private static void inspectGcsFile(
|
241 | 240 | // ...
|
242 | 241 | // block on response, returning job id of the operation
|
243 | 242 | InspectOperationResult inspectOperationResult = responseFuture.get();
|
244 |
| - ResultName resultName = inspectOperationResult.getNameAsResultName(); |
| 243 | + String resultName = inspectOperationResult.getName(); |
245 | 244 | InspectResult inspectResult = dlpServiceClient.listInspectFindings(resultName).getResult();
|
246 | 245 |
|
247 | 246 | if (inspectResult.getFindingsCount() > 0) {
|
@@ -315,7 +314,7 @@ private static void inspectDatastore(
|
315 | 314 | // ...
|
316 | 315 | // block on response, returning job id of the operation
|
317 | 316 | InspectOperationResult inspectOperationResult = responseFuture.get();
|
318 |
| - ResultName resultName = inspectOperationResult.getNameAsResultName(); |
| 317 | + String resultName = inspectOperationResult.getName(); |
319 | 318 | InspectResult inspectResult = dlpServiceClient.listInspectFindings(resultName).getResult();
|
320 | 319 |
|
321 | 320 | if (inspectResult.getFindingsCount() > 0) {
|
@@ -394,7 +393,7 @@ private static void inspectBigquery(
|
394 | 393 | // ...
|
395 | 394 | // block on response, returning job id of the operation
|
396 | 395 | InspectOperationResult inspectOperationResult = responseFuture.get();
|
397 |
| - ResultName resultName = inspectOperationResult.getNameAsResultName(); |
| 396 | + String resultName = inspectOperationResult.getName(); |
398 | 397 | InspectResult inspectResult = dlpServiceClient.listInspectFindings(resultName).getResult();
|
399 | 398 |
|
400 | 399 | if (inspectResult.getFindingsCount() > 0) {
|
|
0 commit comments