1717
1818import com .google .api .core .BetaApi ;
1919import com .google .api .gax .core .BackgroundResource ;
20+ import com .google .api .gax .longrunning .OperationFuture ;
2021import com .google .api .gax .rpc .OperationCallable ;
21- import com .google .api .gax .rpc .OperationFuture ;
2222import com .google .api .gax .rpc .UnaryCallable ;
2323import com .google .cloud .dlp .v2beta1 .stub .DlpServiceStub ;
2424import com .google .longrunning .Operation ;
121121 * <code>
122122 * DlpServiceSettings dlpServiceSettings =
123123 * DlpServiceSettings.newBuilder()
124- * .setTransportProvider(DlpServiceSettings.defaultGrpcTransportProviderBuilder()
125- * .setChannelProvider(DlpServiceSettings.defaultGrpcChannelProviderBuilder()
126- * .setEndpoint(myEndpoint)
127- * .build())
124+ * .setTransportChannelProvider(DlpServiceSettings.defaultGrpcTransportProviderBuilder()
125+ * .setEndpoint(myEndpoint)
128126 * .build())
129127 * .build();
130128 * DlpServiceClient dlpServiceClient =
@@ -156,6 +154,7 @@ public static final DlpServiceClient create(DlpServiceSettings settings) throws
156154 * Constructs an instance of DlpServiceClient, using the given stub for making calls. This is for
157155 * advanced usage - prefer to use DlpServiceSettings}.
158156 */
157+ @ BetaApi
159158 public static final DlpServiceClient create (DlpServiceStub stub ) {
160159 return new DlpServiceClient (stub );
161160 }
@@ -302,8 +301,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
302301 * @param sourceTable Input dataset to compute metrics over.
303302 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
304303 */
305- public final OperationFuture <
306- RiskAnalysisOperationResult , RiskAnalysisOperationMetadata , Operation >
304+ public final OperationFuture <RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
307305 analyzeDataSourceRiskAsync (PrivacyMetric privacyMetric , BigQueryTable sourceTable ) {
308306
309307 AnalyzeDataSourceRiskRequest request =
@@ -336,8 +334,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
336334 * @param request The request object containing all of the parameters for the API call.
337335 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
338336 */
339- public final OperationFuture <
340- RiskAnalysisOperationResult , RiskAnalysisOperationMetadata , Operation >
337+ public final OperationFuture <RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
341338 analyzeDataSourceRiskAsync (AnalyzeDataSourceRiskRequest request ) {
342339 return analyzeDataSourceRiskOperationCallable ().futureCall (request );
343340 }
@@ -364,8 +361,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
364361 * </code></pre>
365362 */
366363 public final OperationCallable <
367- AnalyzeDataSourceRiskRequest , RiskAnalysisOperationResult , RiskAnalysisOperationMetadata ,
368- Operation >
364+ AnalyzeDataSourceRiskRequest , RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
369365 analyzeDataSourceRiskOperationCallable () {
370366 return stub .analyzeDataSourceRiskOperationCallable ();
371367 }
@@ -711,7 +707,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
711707 * @param outputConfig Optional location to store findings.
712708 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
713709 */
714- public final OperationFuture <InspectOperationResult , InspectOperationMetadata , Operation >
710+ public final OperationFuture <InspectOperationResult , InspectOperationMetadata >
715711 createInspectOperationAsync (
716712 InspectConfig inspectConfig ,
717713 StorageConfig storageConfig ,
@@ -765,7 +761,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
765761 * @param request The request object containing all of the parameters for the API call.
766762 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
767763 */
768- public final OperationFuture <InspectOperationResult , InspectOperationMetadata , Operation >
764+ public final OperationFuture <InspectOperationResult , InspectOperationMetadata >
769765 createInspectOperationAsync (CreateInspectOperationRequest request ) {
770766 return createInspectOperationOperationCallable ().futureCall (request );
771767 }
@@ -809,8 +805,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
809805 * </code></pre>
810806 */
811807 public final OperationCallable <
812- CreateInspectOperationRequest , InspectOperationResult , InspectOperationMetadata ,
813- Operation >
808+ CreateInspectOperationRequest , InspectOperationResult , InspectOperationMetadata >
814809 createInspectOperationOperationCallable () {
815810 return stub .createInspectOperationOperationCallable ();
816811 }
0 commit comments