11/*
2- * Copyright 2017, Google LLC All rights reserved.
2+ * Copyright 2017, Google Inc. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717
1818import com .google .api .core .BetaApi ;
1919import com .google .api .gax .core .BackgroundResource ;
20- import com .google .api .gax .longrunning .OperationFuture ;
2120import 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- * .setTransportChannelProvider(DlpServiceSettings.defaultGrpcTransportProviderBuilder()
125- * .setEndpoint(myEndpoint)
124+ * .setTransportProvider(DlpServiceSettings.defaultGrpcTransportProviderBuilder()
125+ * .setChannelProvider(DlpServiceSettings.defaultGrpcChannelProviderBuilder()
126+ * .setEndpoint(myEndpoint)
127+ * .build())
126128 * .build())
127129 * .build();
128130 * DlpServiceClient dlpServiceClient =
@@ -154,7 +156,6 @@ public static final DlpServiceClient create(DlpServiceSettings settings) throws
154156 * Constructs an instance of DlpServiceClient, using the given stub for making calls. This is for
155157 * advanced usage - prefer to use DlpServiceSettings}.
156158 */
157- @ BetaApi
158159 public static final DlpServiceClient create (DlpServiceStub stub ) {
159160 return new DlpServiceClient (stub );
160161 }
@@ -301,7 +302,8 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
301302 * @param sourceTable Input dataset to compute metrics over.
302303 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
303304 */
304- public final OperationFuture <RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
305+ public final OperationFuture <
306+ RiskAnalysisOperationResult , RiskAnalysisOperationMetadata , Operation >
305307 analyzeDataSourceRiskAsync (PrivacyMetric privacyMetric , BigQueryTable sourceTable ) {
306308
307309 AnalyzeDataSourceRiskRequest request =
@@ -334,7 +336,8 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
334336 * @param request The request object containing all of the parameters for the API call.
335337 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
336338 */
337- public final OperationFuture <RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
339+ public final OperationFuture <
340+ RiskAnalysisOperationResult , RiskAnalysisOperationMetadata , Operation >
338341 analyzeDataSourceRiskAsync (AnalyzeDataSourceRiskRequest request ) {
339342 return analyzeDataSourceRiskOperationCallable ().futureCall (request );
340343 }
@@ -361,7 +364,8 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
361364 * </code></pre>
362365 */
363366 public final OperationCallable <
364- AnalyzeDataSourceRiskRequest , RiskAnalysisOperationResult , RiskAnalysisOperationMetadata >
367+ AnalyzeDataSourceRiskRequest , RiskAnalysisOperationResult , RiskAnalysisOperationMetadata ,
368+ Operation >
365369 analyzeDataSourceRiskOperationCallable () {
366370 return stub .analyzeDataSourceRiskOperationCallable ();
367371 }
@@ -707,7 +711,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
707711 * @param outputConfig Optional location to store findings.
708712 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
709713 */
710- public final OperationFuture <InspectOperationResult , InspectOperationMetadata >
714+ public final OperationFuture <InspectOperationResult , InspectOperationMetadata , Operation >
711715 createInspectOperationAsync (
712716 InspectConfig inspectConfig ,
713717 StorageConfig storageConfig ,
@@ -761,7 +765,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
761765 * @param request The request object containing all of the parameters for the API call.
762766 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
763767 */
764- public final OperationFuture <InspectOperationResult , InspectOperationMetadata >
768+ public final OperationFuture <InspectOperationResult , InspectOperationMetadata , Operation >
765769 createInspectOperationAsync (CreateInspectOperationRequest request ) {
766770 return createInspectOperationOperationCallable ().futureCall (request );
767771 }
@@ -805,7 +809,8 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
805809 * </code></pre>
806810 */
807811 public final OperationCallable <
808- CreateInspectOperationRequest , InspectOperationResult , InspectOperationMetadata >
812+ CreateInspectOperationRequest , InspectOperationResult , InspectOperationMetadata ,
813+ Operation >
809814 createInspectOperationOperationCallable () {
810815 return stub .createInspectOperationOperationCallable ();
811816 }
@@ -861,7 +866,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
861866 *
862867 * <pre><code>
863868 * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
864- * ResultName name = ResultName.of ("[RESULT]");
869+ * ResultName name = ResultName.create ("[RESULT]");
865870 * ListInspectFindingsResponse response = dlpServiceClient.listInspectFindings(name);
866871 * }
867872 * </code></pre>
@@ -885,7 +890,7 @@ public final ListInspectFindingsResponse listInspectFindings(ResultName name) {
885890 *
886891 * <pre><code>
887892 * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
888- * ResultName name = ResultName.of ("[RESULT]");
893+ * ResultName name = ResultName.create ("[RESULT]");
889894 * ListInspectFindingsRequest request = ListInspectFindingsRequest.newBuilder()
890895 * .setNameWithResultName(name)
891896 * .build();
@@ -908,7 +913,7 @@ public final ListInspectFindingsResponse listInspectFindings(ListInspectFindings
908913 *
909914 * <pre><code>
910915 * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
911- * ResultName name = ResultName.of ("[RESULT]");
916+ * ResultName name = ResultName.create ("[RESULT]");
912917 * ListInspectFindingsRequest request = ListInspectFindingsRequest.newBuilder()
913918 * .setNameWithResultName(name)
914919 * .build();
0 commit comments