Skip to content

Commit

Permalink
samples: Auto-update dependencies. (#912)
Browse files Browse the repository at this point in the history
* Auto-update dependencies.

* Reverted Vision API classes.

* Fixed OperationalFuture references.

* Fixed some more Vision classes back.

* Fixed some more classes.
  • Loading branch information
dpebot authored and chingor13 committed Aug 4, 2020
1 parent 5c11dea commit d824631
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.example.dlp;

import com.google.api.gax.rpc.OperationFuture;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.ServiceOptions;
import com.google.cloud.dlp.v2beta1.DlpServiceClient;
import com.google.longrunning.Operation;
Expand Down Expand Up @@ -235,7 +235,7 @@ private static void inspectGcsFile(
OutputStorageConfig outputConfig = OutputStorageConfig.getDefaultInstance();

// asynchronously submit an inspect operation
OperationFuture<InspectOperationResult, InspectOperationMetadata, Operation> responseFuture =
OperationFuture<InspectOperationResult, InspectOperationMetadata> responseFuture =
dlpServiceClient.createInspectOperationAsync(inspectConfig, storageConfig, outputConfig);

// ...
Expand Down Expand Up @@ -309,7 +309,7 @@ private static void inspectDatastore(
OutputStorageConfig outputConfig = OutputStorageConfig.getDefaultInstance();

// asynchronously submit an inspect operation
OperationFuture<InspectOperationResult, InspectOperationMetadata, Operation> responseFuture =
OperationFuture<InspectOperationResult, InspectOperationMetadata> responseFuture =
dlpServiceClient.createInspectOperationAsync(inspectConfig, storageConfig, outputConfig);

// ...
Expand Down Expand Up @@ -387,7 +387,7 @@ private static void inspectBigquery(
OutputStorageConfig outputConfig = OutputStorageConfig.getDefaultInstance();

// asynchronously submit an inspect operation
OperationFuture<InspectOperationResult, InspectOperationMetadata, Operation> responseFuture =
OperationFuture<InspectOperationResult, InspectOperationMetadata> responseFuture =
dlpServiceClient.createInspectOperationAsync(
inspectConfig, storageConfig, outputConfig);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.example.dlp;

import com.google.api.gax.rpc.OperationFuture;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.ServiceOptions;
import com.google.cloud.dlp.v2beta1.DlpServiceClient;
import com.google.longrunning.Operation;
Expand Down Expand Up @@ -102,7 +102,7 @@ private static void calculateNumericalStats(
.build();

// asynchronously submit a risk analysis operation
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata, Operation>
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata>
responseFuture = dlpServiceClient.analyzeDataSourceRiskAsync(request);

// ...
Expand Down Expand Up @@ -180,7 +180,7 @@ private static void calculateCategoricalStats(
.build();

// asynchronously submit a risk analysis operation
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata, Operation>
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata>
responseFuture = dlpServiceClient.analyzeDataSourceRiskAsync(request);

// ...
Expand Down Expand Up @@ -259,7 +259,7 @@ private static void calculateKAnonymity(
.build();

// asynchronously submit a risk analysis operation
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata, Operation>
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata>
responseFuture = dlpServiceClient.analyzeDataSourceRiskAsync(request);

// ...
Expand Down Expand Up @@ -352,7 +352,7 @@ private static void calculateLDiversity(
.build();

// asynchronously submit a risk analysis operation
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata, Operation>
OperationFuture<RiskAnalysisOperationResult, RiskAnalysisOperationMetadata>
responseFuture = dlpServiceClient.analyzeDataSourceRiskAsync(request);

// ...
Expand Down

0 comments on commit d824631

Please sign in to comment.