Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit e558868

Browse files
fix: migrate dlp/v2 to grpc_service_config (#231)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/2172df15-42fb-4ea2-9939-61316a413093/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 319782065 Source-Link: googleapis/googleapis@e66c163
1 parent 61c0cc3 commit e558868

7 files changed

Lines changed: 1800 additions & 1788 deletions

File tree

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java

Lines changed: 854 additions & 854 deletions
Large diffs are not rendered by default.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -213,41 +213,25 @@ public UnaryCallSettings<DeleteInspectTemplateRequest, Empty> deleteInspectTempl
213213
return ((DlpServiceStubSettings) getStubSettings()).deleteDeidentifyTemplateSettings();
214214
}
215215

216-
/** Returns the object with the settings used for calls to createDlpJob. */
217-
public UnaryCallSettings<CreateDlpJobRequest, DlpJob> createDlpJobSettings() {
218-
return ((DlpServiceStubSettings) getStubSettings()).createDlpJobSettings();
219-
}
220-
221-
/** Returns the object with the settings used for calls to listDlpJobs. */
222-
public PagedCallSettings<ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>
223-
listDlpJobsSettings() {
224-
return ((DlpServiceStubSettings) getStubSettings()).listDlpJobsSettings();
225-
}
226-
227-
/** Returns the object with the settings used for calls to getDlpJob. */
228-
public UnaryCallSettings<GetDlpJobRequest, DlpJob> getDlpJobSettings() {
229-
return ((DlpServiceStubSettings) getStubSettings()).getDlpJobSettings();
230-
}
231-
232-
/** Returns the object with the settings used for calls to deleteDlpJob. */
233-
public UnaryCallSettings<DeleteDlpJobRequest, Empty> deleteDlpJobSettings() {
234-
return ((DlpServiceStubSettings) getStubSettings()).deleteDlpJobSettings();
216+
/** Returns the object with the settings used for calls to createJobTrigger. */
217+
public UnaryCallSettings<CreateJobTriggerRequest, JobTrigger> createJobTriggerSettings() {
218+
return ((DlpServiceStubSettings) getStubSettings()).createJobTriggerSettings();
235219
}
236220

237-
/** Returns the object with the settings used for calls to cancelDlpJob. */
238-
public UnaryCallSettings<CancelDlpJobRequest, Empty> cancelDlpJobSettings() {
239-
return ((DlpServiceStubSettings) getStubSettings()).cancelDlpJobSettings();
221+
/** Returns the object with the settings used for calls to updateJobTrigger. */
222+
public UnaryCallSettings<UpdateJobTriggerRequest, JobTrigger> updateJobTriggerSettings() {
223+
return ((DlpServiceStubSettings) getStubSettings()).updateJobTriggerSettings();
240224
}
241225

242-
/** Returns the object with the settings used for calls to finishDlpJob. */
243-
public UnaryCallSettings<FinishDlpJobRequest, Empty> finishDlpJobSettings() {
244-
return ((DlpServiceStubSettings) getStubSettings()).finishDlpJobSettings();
226+
/** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
227+
public UnaryCallSettings<HybridInspectJobTriggerRequest, HybridInspectResponse>
228+
hybridInspectJobTriggerSettings() {
229+
return ((DlpServiceStubSettings) getStubSettings()).hybridInspectJobTriggerSettings();
245230
}
246231

247-
/** Returns the object with the settings used for calls to hybridInspectDlpJob. */
248-
public UnaryCallSettings<HybridInspectDlpJobRequest, HybridInspectResponse>
249-
hybridInspectDlpJobSettings() {
250-
return ((DlpServiceStubSettings) getStubSettings()).hybridInspectDlpJobSettings();
232+
/** Returns the object with the settings used for calls to getJobTrigger. */
233+
public UnaryCallSettings<GetJobTriggerRequest, JobTrigger> getJobTriggerSettings() {
234+
return ((DlpServiceStubSettings) getStubSettings()).getJobTriggerSettings();
251235
}
252236

253237
/** Returns the object with the settings used for calls to listJobTriggers. */
@@ -257,30 +241,35 @@ public UnaryCallSettings<FinishDlpJobRequest, Empty> finishDlpJobSettings() {
257241
return ((DlpServiceStubSettings) getStubSettings()).listJobTriggersSettings();
258242
}
259243

260-
/** Returns the object with the settings used for calls to getJobTrigger. */
261-
public UnaryCallSettings<GetJobTriggerRequest, JobTrigger> getJobTriggerSettings() {
262-
return ((DlpServiceStubSettings) getStubSettings()).getJobTriggerSettings();
263-
}
264-
265244
/** Returns the object with the settings used for calls to deleteJobTrigger. */
266245
public UnaryCallSettings<DeleteJobTriggerRequest, Empty> deleteJobTriggerSettings() {
267246
return ((DlpServiceStubSettings) getStubSettings()).deleteJobTriggerSettings();
268247
}
269248

270-
/** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
271-
public UnaryCallSettings<HybridInspectJobTriggerRequest, HybridInspectResponse>
272-
hybridInspectJobTriggerSettings() {
273-
return ((DlpServiceStubSettings) getStubSettings()).hybridInspectJobTriggerSettings();
249+
/** Returns the object with the settings used for calls to createDlpJob. */
250+
public UnaryCallSettings<CreateDlpJobRequest, DlpJob> createDlpJobSettings() {
251+
return ((DlpServiceStubSettings) getStubSettings()).createDlpJobSettings();
274252
}
275253

276-
/** Returns the object with the settings used for calls to updateJobTrigger. */
277-
public UnaryCallSettings<UpdateJobTriggerRequest, JobTrigger> updateJobTriggerSettings() {
278-
return ((DlpServiceStubSettings) getStubSettings()).updateJobTriggerSettings();
254+
/** Returns the object with the settings used for calls to listDlpJobs. */
255+
public PagedCallSettings<ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>
256+
listDlpJobsSettings() {
257+
return ((DlpServiceStubSettings) getStubSettings()).listDlpJobsSettings();
279258
}
280259

281-
/** Returns the object with the settings used for calls to createJobTrigger. */
282-
public UnaryCallSettings<CreateJobTriggerRequest, JobTrigger> createJobTriggerSettings() {
283-
return ((DlpServiceStubSettings) getStubSettings()).createJobTriggerSettings();
260+
/** Returns the object with the settings used for calls to getDlpJob. */
261+
public UnaryCallSettings<GetDlpJobRequest, DlpJob> getDlpJobSettings() {
262+
return ((DlpServiceStubSettings) getStubSettings()).getDlpJobSettings();
263+
}
264+
265+
/** Returns the object with the settings used for calls to deleteDlpJob. */
266+
public UnaryCallSettings<DeleteDlpJobRequest, Empty> deleteDlpJobSettings() {
267+
return ((DlpServiceStubSettings) getStubSettings()).deleteDlpJobSettings();
268+
}
269+
270+
/** Returns the object with the settings used for calls to cancelDlpJob. */
271+
public UnaryCallSettings<CancelDlpJobRequest, Empty> cancelDlpJobSettings() {
272+
return ((DlpServiceStubSettings) getStubSettings()).cancelDlpJobSettings();
284273
}
285274

286275
/** Returns the object with the settings used for calls to createStoredInfoType. */
@@ -312,6 +301,17 @@ public UnaryCallSettings<DeleteStoredInfoTypeRequest, Empty> deleteStoredInfoTyp
312301
return ((DlpServiceStubSettings) getStubSettings()).deleteStoredInfoTypeSettings();
313302
}
314303

304+
/** Returns the object with the settings used for calls to hybridInspectDlpJob. */
305+
public UnaryCallSettings<HybridInspectDlpJobRequest, HybridInspectResponse>
306+
hybridInspectDlpJobSettings() {
307+
return ((DlpServiceStubSettings) getStubSettings()).hybridInspectDlpJobSettings();
308+
}
309+
310+
/** Returns the object with the settings used for calls to finishDlpJob. */
311+
public UnaryCallSettings<FinishDlpJobRequest, Empty> finishDlpJobSettings() {
312+
return ((DlpServiceStubSettings) getStubSettings()).finishDlpJobSettings();
313+
}
314+
315315
public static final DlpServiceSettings create(DlpServiceStubSettings stub) throws IOException {
316316
return new DlpServiceSettings.Builder(stub.toBuilder()).build();
317317
}
@@ -504,6 +504,41 @@ public Builder applyToAllUnaryMethods(
504504
return getStubSettingsBuilder().deleteDeidentifyTemplateSettings();
505505
}
506506

507+
/** Returns the builder for the settings used for calls to createJobTrigger. */
508+
public UnaryCallSettings.Builder<CreateJobTriggerRequest, JobTrigger>
509+
createJobTriggerSettings() {
510+
return getStubSettingsBuilder().createJobTriggerSettings();
511+
}
512+
513+
/** Returns the builder for the settings used for calls to updateJobTrigger. */
514+
public UnaryCallSettings.Builder<UpdateJobTriggerRequest, JobTrigger>
515+
updateJobTriggerSettings() {
516+
return getStubSettingsBuilder().updateJobTriggerSettings();
517+
}
518+
519+
/** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
520+
public UnaryCallSettings.Builder<HybridInspectJobTriggerRequest, HybridInspectResponse>
521+
hybridInspectJobTriggerSettings() {
522+
return getStubSettingsBuilder().hybridInspectJobTriggerSettings();
523+
}
524+
525+
/** Returns the builder for the settings used for calls to getJobTrigger. */
526+
public UnaryCallSettings.Builder<GetJobTriggerRequest, JobTrigger> getJobTriggerSettings() {
527+
return getStubSettingsBuilder().getJobTriggerSettings();
528+
}
529+
530+
/** Returns the builder for the settings used for calls to listJobTriggers. */
531+
public PagedCallSettings.Builder<
532+
ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
533+
listJobTriggersSettings() {
534+
return getStubSettingsBuilder().listJobTriggersSettings();
535+
}
536+
537+
/** Returns the builder for the settings used for calls to deleteJobTrigger. */
538+
public UnaryCallSettings.Builder<DeleteJobTriggerRequest, Empty> deleteJobTriggerSettings() {
539+
return getStubSettingsBuilder().deleteJobTriggerSettings();
540+
}
541+
507542
/** Returns the builder for the settings used for calls to createDlpJob. */
508543
public UnaryCallSettings.Builder<CreateDlpJobRequest, DlpJob> createDlpJobSettings() {
509544
return getStubSettingsBuilder().createDlpJobSettings();
@@ -531,52 +566,6 @@ public UnaryCallSettings.Builder<CancelDlpJobRequest, Empty> cancelDlpJobSetting
531566
return getStubSettingsBuilder().cancelDlpJobSettings();
532567
}
533568

534-
/** Returns the builder for the settings used for calls to finishDlpJob. */
535-
public UnaryCallSettings.Builder<FinishDlpJobRequest, Empty> finishDlpJobSettings() {
536-
return getStubSettingsBuilder().finishDlpJobSettings();
537-
}
538-
539-
/** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
540-
public UnaryCallSettings.Builder<HybridInspectDlpJobRequest, HybridInspectResponse>
541-
hybridInspectDlpJobSettings() {
542-
return getStubSettingsBuilder().hybridInspectDlpJobSettings();
543-
}
544-
545-
/** Returns the builder for the settings used for calls to listJobTriggers. */
546-
public PagedCallSettings.Builder<
547-
ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
548-
listJobTriggersSettings() {
549-
return getStubSettingsBuilder().listJobTriggersSettings();
550-
}
551-
552-
/** Returns the builder for the settings used for calls to getJobTrigger. */
553-
public UnaryCallSettings.Builder<GetJobTriggerRequest, JobTrigger> getJobTriggerSettings() {
554-
return getStubSettingsBuilder().getJobTriggerSettings();
555-
}
556-
557-
/** Returns the builder for the settings used for calls to deleteJobTrigger. */
558-
public UnaryCallSettings.Builder<DeleteJobTriggerRequest, Empty> deleteJobTriggerSettings() {
559-
return getStubSettingsBuilder().deleteJobTriggerSettings();
560-
}
561-
562-
/** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
563-
public UnaryCallSettings.Builder<HybridInspectJobTriggerRequest, HybridInspectResponse>
564-
hybridInspectJobTriggerSettings() {
565-
return getStubSettingsBuilder().hybridInspectJobTriggerSettings();
566-
}
567-
568-
/** Returns the builder for the settings used for calls to updateJobTrigger. */
569-
public UnaryCallSettings.Builder<UpdateJobTriggerRequest, JobTrigger>
570-
updateJobTriggerSettings() {
571-
return getStubSettingsBuilder().updateJobTriggerSettings();
572-
}
573-
574-
/** Returns the builder for the settings used for calls to createJobTrigger. */
575-
public UnaryCallSettings.Builder<CreateJobTriggerRequest, JobTrigger>
576-
createJobTriggerSettings() {
577-
return getStubSettingsBuilder().createJobTriggerSettings();
578-
}
579-
580569
/** Returns the builder for the settings used for calls to createStoredInfoType. */
581570
public UnaryCallSettings.Builder<CreateStoredInfoTypeRequest, StoredInfoType>
582571
createStoredInfoTypeSettings() {
@@ -610,6 +599,17 @@ public UnaryCallSettings.Builder<DeleteJobTriggerRequest, Empty> deleteJobTrigge
610599
return getStubSettingsBuilder().deleteStoredInfoTypeSettings();
611600
}
612601

602+
/** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
603+
public UnaryCallSettings.Builder<HybridInspectDlpJobRequest, HybridInspectResponse>
604+
hybridInspectDlpJobSettings() {
605+
return getStubSettingsBuilder().hybridInspectDlpJobSettings();
606+
}
607+
608+
/** Returns the builder for the settings used for calls to finishDlpJob. */
609+
public UnaryCallSettings.Builder<FinishDlpJobRequest, Empty> finishDlpJobSettings() {
610+
return getStubSettingsBuilder().finishDlpJobSettings();
611+
}
612+
613613
@Override
614614
public DlpServiceSettings build() throws IOException {
615615
return new DlpServiceSettings(this);

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -166,37 +166,21 @@ public UnaryCallable<DeleteDeidentifyTemplateRequest, Empty> deleteDeidentifyTem
166166
throw new UnsupportedOperationException("Not implemented: deleteDeidentifyTemplateCallable()");
167167
}
168168

169-
public UnaryCallable<CreateDlpJobRequest, DlpJob> createDlpJobCallable() {
170-
throw new UnsupportedOperationException("Not implemented: createDlpJobCallable()");
171-
}
172-
173-
public UnaryCallable<ListDlpJobsRequest, ListDlpJobsPagedResponse> listDlpJobsPagedCallable() {
174-
throw new UnsupportedOperationException("Not implemented: listDlpJobsPagedCallable()");
175-
}
176-
177-
public UnaryCallable<ListDlpJobsRequest, ListDlpJobsResponse> listDlpJobsCallable() {
178-
throw new UnsupportedOperationException("Not implemented: listDlpJobsCallable()");
179-
}
180-
181-
public UnaryCallable<GetDlpJobRequest, DlpJob> getDlpJobCallable() {
182-
throw new UnsupportedOperationException("Not implemented: getDlpJobCallable()");
183-
}
184-
185-
public UnaryCallable<DeleteDlpJobRequest, Empty> deleteDlpJobCallable() {
186-
throw new UnsupportedOperationException("Not implemented: deleteDlpJobCallable()");
169+
public UnaryCallable<CreateJobTriggerRequest, JobTrigger> createJobTriggerCallable() {
170+
throw new UnsupportedOperationException("Not implemented: createJobTriggerCallable()");
187171
}
188172

189-
public UnaryCallable<CancelDlpJobRequest, Empty> cancelDlpJobCallable() {
190-
throw new UnsupportedOperationException("Not implemented: cancelDlpJobCallable()");
173+
public UnaryCallable<UpdateJobTriggerRequest, JobTrigger> updateJobTriggerCallable() {
174+
throw new UnsupportedOperationException("Not implemented: updateJobTriggerCallable()");
191175
}
192176

193-
public UnaryCallable<FinishDlpJobRequest, Empty> finishDlpJobCallable() {
194-
throw new UnsupportedOperationException("Not implemented: finishDlpJobCallable()");
177+
public UnaryCallable<HybridInspectJobTriggerRequest, HybridInspectResponse>
178+
hybridInspectJobTriggerCallable() {
179+
throw new UnsupportedOperationException("Not implemented: hybridInspectJobTriggerCallable()");
195180
}
196181

197-
public UnaryCallable<HybridInspectDlpJobRequest, HybridInspectResponse>
198-
hybridInspectDlpJobCallable() {
199-
throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()");
182+
public UnaryCallable<GetJobTriggerRequest, JobTrigger> getJobTriggerCallable() {
183+
throw new UnsupportedOperationException("Not implemented: getJobTriggerCallable()");
200184
}
201185

202186
public UnaryCallable<ListJobTriggersRequest, ListJobTriggersPagedResponse>
@@ -208,25 +192,32 @@ public UnaryCallable<ListJobTriggersRequest, ListJobTriggersResponse> listJobTri
208192
throw new UnsupportedOperationException("Not implemented: listJobTriggersCallable()");
209193
}
210194

211-
public UnaryCallable<GetJobTriggerRequest, JobTrigger> getJobTriggerCallable() {
212-
throw new UnsupportedOperationException("Not implemented: getJobTriggerCallable()");
213-
}
214-
215195
public UnaryCallable<DeleteJobTriggerRequest, Empty> deleteJobTriggerCallable() {
216196
throw new UnsupportedOperationException("Not implemented: deleteJobTriggerCallable()");
217197
}
218198

219-
public UnaryCallable<HybridInspectJobTriggerRequest, HybridInspectResponse>
220-
hybridInspectJobTriggerCallable() {
221-
throw new UnsupportedOperationException("Not implemented: hybridInspectJobTriggerCallable()");
199+
public UnaryCallable<CreateDlpJobRequest, DlpJob> createDlpJobCallable() {
200+
throw new UnsupportedOperationException("Not implemented: createDlpJobCallable()");
222201
}
223202

224-
public UnaryCallable<UpdateJobTriggerRequest, JobTrigger> updateJobTriggerCallable() {
225-
throw new UnsupportedOperationException("Not implemented: updateJobTriggerCallable()");
203+
public UnaryCallable<ListDlpJobsRequest, ListDlpJobsPagedResponse> listDlpJobsPagedCallable() {
204+
throw new UnsupportedOperationException("Not implemented: listDlpJobsPagedCallable()");
226205
}
227206

228-
public UnaryCallable<CreateJobTriggerRequest, JobTrigger> createJobTriggerCallable() {
229-
throw new UnsupportedOperationException("Not implemented: createJobTriggerCallable()");
207+
public UnaryCallable<ListDlpJobsRequest, ListDlpJobsResponse> listDlpJobsCallable() {
208+
throw new UnsupportedOperationException("Not implemented: listDlpJobsCallable()");
209+
}
210+
211+
public UnaryCallable<GetDlpJobRequest, DlpJob> getDlpJobCallable() {
212+
throw new UnsupportedOperationException("Not implemented: getDlpJobCallable()");
213+
}
214+
215+
public UnaryCallable<DeleteDlpJobRequest, Empty> deleteDlpJobCallable() {
216+
throw new UnsupportedOperationException("Not implemented: deleteDlpJobCallable()");
217+
}
218+
219+
public UnaryCallable<CancelDlpJobRequest, Empty> cancelDlpJobCallable() {
220+
throw new UnsupportedOperationException("Not implemented: cancelDlpJobCallable()");
230221
}
231222

232223
public UnaryCallable<CreateStoredInfoTypeRequest, StoredInfoType> createStoredInfoTypeCallable() {
@@ -255,6 +246,15 @@ public UnaryCallable<DeleteStoredInfoTypeRequest, Empty> deleteStoredInfoTypeCal
255246
throw new UnsupportedOperationException("Not implemented: deleteStoredInfoTypeCallable()");
256247
}
257248

249+
public UnaryCallable<HybridInspectDlpJobRequest, HybridInspectResponse>
250+
hybridInspectDlpJobCallable() {
251+
throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()");
252+
}
253+
254+
public UnaryCallable<FinishDlpJobRequest, Empty> finishDlpJobCallable() {
255+
throw new UnsupportedOperationException("Not implemented: finishDlpJobCallable()");
256+
}
257+
258258
@Override
259259
public abstract void close();
260260
}

0 commit comments

Comments
 (0)