59
59
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
60
60
* build() is called, the tree of builders is called to create the complete settings object.
61
61
*
62
- * <p>For example, to set the total timeout of createDataset to 30 seconds:
62
+ * <p>For example, to set the total timeout of deleteDataset to 30 seconds:
63
63
*
64
64
* <pre>
65
65
* <code>
66
66
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
67
67
* DataLabelingServiceSettings.newBuilder();
68
68
* dataLabelingServiceSettingsBuilder
69
- * .createDatasetSettings ()
69
+ * .deleteDatasetSettings ()
70
70
* .setRetrySettings(
71
- * dataLabelingServiceSettingsBuilder.createDatasetSettings ().getRetrySettings().toBuilder()
71
+ * dataLabelingServiceSettingsBuilder.deleteDatasetSettings ().getRetrySettings().toBuilder()
72
72
* .setTotalTimeout(Duration.ofSeconds(30))
73
73
* .build());
74
74
* DataLabelingServiceSettings dataLabelingServiceSettings = dataLabelingServiceSettingsBuilder.build();
78
78
@ Generated ("by gapic-generator" )
79
79
@ BetaApi
80
80
public class DataLabelingServiceSettings extends ClientSettings <DataLabelingServiceSettings > {
81
+ /** Returns the object with the settings used for calls to deleteDataset. */
82
+ public UnaryCallSettings <DeleteDatasetRequest , Empty > deleteDatasetSettings () {
83
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteDatasetSettings ();
84
+ }
85
+
86
+ /** Returns the object with the settings used for calls to exportData. */
87
+ public UnaryCallSettings <ExportDataRequest , Operation > exportDataSettings () {
88
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).exportDataSettings ();
89
+ }
90
+
91
+ /** Returns the object with the settings used for calls to exportData. */
92
+ @ BetaApi (
93
+ "The surface for long-running operations is not stable yet and may change in the future." )
94
+ public OperationCallSettings <
95
+ ExportDataRequest , ExportDataOperationResponse , ExportDataOperationMetadata >
96
+ exportDataOperationSettings () {
97
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).exportDataOperationSettings ();
98
+ }
99
+
100
+ /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
101
+ public UnaryCallSettings <DeleteAnnotationSpecSetRequest , Empty >
102
+ deleteAnnotationSpecSetSettings () {
103
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteAnnotationSpecSetSettings ();
104
+ }
105
+
106
+ /** Returns the object with the settings used for calls to deleteInstruction. */
107
+ public UnaryCallSettings <DeleteInstructionRequest , Empty > deleteInstructionSettings () {
108
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteInstructionSettings ();
109
+ }
110
+
111
+ /** Returns the object with the settings used for calls to deleteEvaluationJob. */
112
+ public UnaryCallSettings <DeleteEvaluationJobRequest , Empty > deleteEvaluationJobSettings () {
113
+ return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteEvaluationJobSettings ();
114
+ }
115
+
81
116
/** Returns the object with the settings used for calls to createDataset. */
82
117
public UnaryCallSettings <CreateDatasetRequest , Dataset > createDatasetSettings () {
83
118
return ((DataLabelingServiceStubSettings ) getStubSettings ()).createDatasetSettings ();
@@ -94,11 +129,6 @@ public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
94
129
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listDatasetsSettings ();
95
130
}
96
131
97
- /** Returns the object with the settings used for calls to deleteDataset. */
98
- public UnaryCallSettings <DeleteDatasetRequest , Empty > deleteDatasetSettings () {
99
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteDatasetSettings ();
100
- }
101
-
102
132
/** Returns the object with the settings used for calls to importData. */
103
133
public UnaryCallSettings <ImportDataRequest , Operation > importDataSettings () {
104
134
return ((DataLabelingServiceStubSettings ) getStubSettings ()).importDataSettings ();
@@ -113,20 +143,6 @@ public UnaryCallSettings<ImportDataRequest, Operation> importDataSettings() {
113
143
return ((DataLabelingServiceStubSettings ) getStubSettings ()).importDataOperationSettings ();
114
144
}
115
145
116
- /** Returns the object with the settings used for calls to exportData. */
117
- public UnaryCallSettings <ExportDataRequest , Operation > exportDataSettings () {
118
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).exportDataSettings ();
119
- }
120
-
121
- /** Returns the object with the settings used for calls to exportData. */
122
- @ BetaApi (
123
- "The surface for long-running operations is not stable yet and may change in the future." )
124
- public OperationCallSettings <
125
- ExportDataRequest , ExportDataOperationResponse , ExportDataOperationMetadata >
126
- exportDataOperationSettings () {
127
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).exportDataOperationSettings ();
128
- }
129
-
130
146
/** Returns the object with the settings used for calls to getDataItem. */
131
147
public UnaryCallSettings <GetDataItemRequest , DataItem > getDataItemSettings () {
132
148
return ((DataLabelingServiceStubSettings ) getStubSettings ()).getDataItemSettings ();
@@ -229,12 +245,6 @@ public UnaryCallSettings<GetExampleRequest, Example> getExampleSettings() {
229
245
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listAnnotationSpecSetsSettings ();
230
246
}
231
247
232
- /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
233
- public UnaryCallSettings <DeleteAnnotationSpecSetRequest , Empty >
234
- deleteAnnotationSpecSetSettings () {
235
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteAnnotationSpecSetSettings ();
236
- }
237
-
238
248
/** Returns the object with the settings used for calls to createInstruction. */
239
249
public UnaryCallSettings <CreateInstructionRequest , Operation > createInstructionSettings () {
240
250
return ((DataLabelingServiceStubSettings ) getStubSettings ()).createInstructionSettings ();
@@ -261,11 +271,6 @@ public UnaryCallSettings<GetInstructionRequest, Instruction> getInstructionSetti
261
271
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listInstructionsSettings ();
262
272
}
263
273
264
- /** Returns the object with the settings used for calls to deleteInstruction. */
265
- public UnaryCallSettings <DeleteInstructionRequest , Empty > deleteInstructionSettings () {
266
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteInstructionSettings ();
267
- }
268
-
269
274
/** Returns the object with the settings used for calls to getEvaluation. */
270
275
public UnaryCallSettings <GetEvaluationRequest , Evaluation > getEvaluationSettings () {
271
276
return ((DataLabelingServiceStubSettings ) getStubSettings ()).getEvaluationSettings ();
@@ -314,11 +319,6 @@ public UnaryCallSettings<ResumeEvaluationJobRequest, Empty> resumeEvaluationJobS
314
319
return ((DataLabelingServiceStubSettings ) getStubSettings ()).resumeEvaluationJobSettings ();
315
320
}
316
321
317
- /** Returns the object with the settings used for calls to deleteEvaluationJob. */
318
- public UnaryCallSettings <DeleteEvaluationJobRequest , Empty > deleteEvaluationJobSettings () {
319
- return ((DataLabelingServiceStubSettings ) getStubSettings ()).deleteEvaluationJobSettings ();
320
- }
321
-
322
322
/** Returns the object with the settings used for calls to listEvaluationJobs. */
323
323
public PagedCallSettings <
324
324
ListEvaluationJobsRequest , ListEvaluationJobsResponse , ListEvaluationJobsPagedResponse >
@@ -423,6 +423,42 @@ public Builder applyToAllUnaryMethods(
423
423
return this ;
424
424
}
425
425
426
+ /** Returns the builder for the settings used for calls to deleteDataset. */
427
+ public UnaryCallSettings .Builder <DeleteDatasetRequest , Empty > deleteDatasetSettings () {
428
+ return getStubSettingsBuilder ().deleteDatasetSettings ();
429
+ }
430
+
431
+ /** Returns the builder for the settings used for calls to exportData. */
432
+ public UnaryCallSettings .Builder <ExportDataRequest , Operation > exportDataSettings () {
433
+ return getStubSettingsBuilder ().exportDataSettings ();
434
+ }
435
+
436
+ /** Returns the builder for the settings used for calls to exportData. */
437
+ @ BetaApi (
438
+ "The surface for long-running operations is not stable yet and may change in the future." )
439
+ public OperationCallSettings .Builder <
440
+ ExportDataRequest , ExportDataOperationResponse , ExportDataOperationMetadata >
441
+ exportDataOperationSettings () {
442
+ return getStubSettingsBuilder ().exportDataOperationSettings ();
443
+ }
444
+
445
+ /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
446
+ public UnaryCallSettings .Builder <DeleteAnnotationSpecSetRequest , Empty >
447
+ deleteAnnotationSpecSetSettings () {
448
+ return getStubSettingsBuilder ().deleteAnnotationSpecSetSettings ();
449
+ }
450
+
451
+ /** Returns the builder for the settings used for calls to deleteInstruction. */
452
+ public UnaryCallSettings .Builder <DeleteInstructionRequest , Empty > deleteInstructionSettings () {
453
+ return getStubSettingsBuilder ().deleteInstructionSettings ();
454
+ }
455
+
456
+ /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
457
+ public UnaryCallSettings .Builder <DeleteEvaluationJobRequest , Empty >
458
+ deleteEvaluationJobSettings () {
459
+ return getStubSettingsBuilder ().deleteEvaluationJobSettings ();
460
+ }
461
+
426
462
/** Returns the builder for the settings used for calls to createDataset. */
427
463
public UnaryCallSettings .Builder <CreateDatasetRequest , Dataset > createDatasetSettings () {
428
464
return getStubSettingsBuilder ().createDatasetSettings ();
@@ -440,11 +476,6 @@ public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings(
440
476
return getStubSettingsBuilder ().listDatasetsSettings ();
441
477
}
442
478
443
- /** Returns the builder for the settings used for calls to deleteDataset. */
444
- public UnaryCallSettings .Builder <DeleteDatasetRequest , Empty > deleteDatasetSettings () {
445
- return getStubSettingsBuilder ().deleteDatasetSettings ();
446
- }
447
-
448
479
/** Returns the builder for the settings used for calls to importData. */
449
480
public UnaryCallSettings .Builder <ImportDataRequest , Operation > importDataSettings () {
450
481
return getStubSettingsBuilder ().importDataSettings ();
@@ -459,20 +490,6 @@ public UnaryCallSettings.Builder<ImportDataRequest, Operation> importDataSetting
459
490
return getStubSettingsBuilder ().importDataOperationSettings ();
460
491
}
461
492
462
- /** Returns the builder for the settings used for calls to exportData. */
463
- public UnaryCallSettings .Builder <ExportDataRequest , Operation > exportDataSettings () {
464
- return getStubSettingsBuilder ().exportDataSettings ();
465
- }
466
-
467
- /** Returns the builder for the settings used for calls to exportData. */
468
- @ BetaApi (
469
- "The surface for long-running operations is not stable yet and may change in the future." )
470
- public OperationCallSettings .Builder <
471
- ExportDataRequest , ExportDataOperationResponse , ExportDataOperationMetadata >
472
- exportDataOperationSettings () {
473
- return getStubSettingsBuilder ().exportDataOperationSettings ();
474
- }
475
-
476
493
/** Returns the builder for the settings used for calls to getDataItem. */
477
494
public UnaryCallSettings .Builder <GetDataItemRequest , DataItem > getDataItemSettings () {
478
495
return getStubSettingsBuilder ().getDataItemSettings ();
@@ -580,12 +597,6 @@ public UnaryCallSettings.Builder<GetExampleRequest, Example> getExampleSettings(
580
597
return getStubSettingsBuilder ().listAnnotationSpecSetsSettings ();
581
598
}
582
599
583
- /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
584
- public UnaryCallSettings .Builder <DeleteAnnotationSpecSetRequest , Empty >
585
- deleteAnnotationSpecSetSettings () {
586
- return getStubSettingsBuilder ().deleteAnnotationSpecSetSettings ();
587
- }
588
-
589
600
/** Returns the builder for the settings used for calls to createInstruction. */
590
601
public UnaryCallSettings .Builder <CreateInstructionRequest , Operation >
591
602
createInstructionSettings () {
@@ -613,11 +624,6 @@ public UnaryCallSettings.Builder<GetInstructionRequest, Instruction> getInstruct
613
624
return getStubSettingsBuilder ().listInstructionsSettings ();
614
625
}
615
626
616
- /** Returns the builder for the settings used for calls to deleteInstruction. */
617
- public UnaryCallSettings .Builder <DeleteInstructionRequest , Empty > deleteInstructionSettings () {
618
- return getStubSettingsBuilder ().deleteInstructionSettings ();
619
- }
620
-
621
627
/** Returns the builder for the settings used for calls to getEvaluation. */
622
628
public UnaryCallSettings .Builder <GetEvaluationRequest , Evaluation > getEvaluationSettings () {
623
629
return getStubSettingsBuilder ().getEvaluationSettings ();
@@ -669,12 +675,6 @@ public UnaryCallSettings.Builder<GetEvaluationRequest, Evaluation> getEvaluation
669
675
return getStubSettingsBuilder ().resumeEvaluationJobSettings ();
670
676
}
671
677
672
- /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
673
- public UnaryCallSettings .Builder <DeleteEvaluationJobRequest , Empty >
674
- deleteEvaluationJobSettings () {
675
- return getStubSettingsBuilder ().deleteEvaluationJobSettings ();
676
- }
677
-
678
678
/** Returns the builder for the settings used for calls to listEvaluationJobs. */
679
679
public PagedCallSettings .Builder <
680
680
ListEvaluationJobsRequest , ListEvaluationJobsResponse , ListEvaluationJobsPagedResponse >
0 commit comments