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 deleteDataset to 30 seconds:
62
+ * <p>For example, to set the total timeout of createDataset to 30 seconds:
63
63
*
64
64
* <pre>
65
65
* <code>
66
66
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
67
67
* DataLabelingServiceSettings.newBuilder();
68
68
* dataLabelingServiceSettingsBuilder
69
- * .deleteDatasetSettings ()
69
+ * .createDatasetSettings ()
70
70
* .setRetrySettings(
71
- * dataLabelingServiceSettingsBuilder.deleteDatasetSettings ().getRetrySettings().toBuilder()
71
+ * dataLabelingServiceSettingsBuilder.createDatasetSettings ().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
-
116
81
/** Returns the object with the settings used for calls to createDataset. */
117
82
public UnaryCallSettings <CreateDatasetRequest , Dataset > createDatasetSettings () {
118
83
return ((DataLabelingServiceStubSettings ) getStubSettings ()).createDatasetSettings ();
@@ -129,6 +94,11 @@ public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
129
94
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listDatasetsSettings ();
130
95
}
131
96
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
+
132
102
/** Returns the object with the settings used for calls to importData. */
133
103
public UnaryCallSettings <ImportDataRequest , Operation > importDataSettings () {
134
104
return ((DataLabelingServiceStubSettings ) getStubSettings ()).importDataSettings ();
@@ -143,6 +113,20 @@ public UnaryCallSettings<ImportDataRequest, Operation> importDataSettings() {
143
113
return ((DataLabelingServiceStubSettings ) getStubSettings ()).importDataOperationSettings ();
144
114
}
145
115
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
+
146
130
/** Returns the object with the settings used for calls to getDataItem. */
147
131
public UnaryCallSettings <GetDataItemRequest , DataItem > getDataItemSettings () {
148
132
return ((DataLabelingServiceStubSettings ) getStubSettings ()).getDataItemSettings ();
@@ -245,6 +229,12 @@ public UnaryCallSettings<GetExampleRequest, Example> getExampleSettings() {
245
229
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listAnnotationSpecSetsSettings ();
246
230
}
247
231
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
+
248
238
/** Returns the object with the settings used for calls to createInstruction. */
249
239
public UnaryCallSettings <CreateInstructionRequest , Operation > createInstructionSettings () {
250
240
return ((DataLabelingServiceStubSettings ) getStubSettings ()).createInstructionSettings ();
@@ -271,6 +261,11 @@ public UnaryCallSettings<GetInstructionRequest, Instruction> getInstructionSetti
271
261
return ((DataLabelingServiceStubSettings ) getStubSettings ()).listInstructionsSettings ();
272
262
}
273
263
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
+
274
269
/** Returns the object with the settings used for calls to getEvaluation. */
275
270
public UnaryCallSettings <GetEvaluationRequest , Evaluation > getEvaluationSettings () {
276
271
return ((DataLabelingServiceStubSettings ) getStubSettings ()).getEvaluationSettings ();
@@ -319,6 +314,11 @@ public UnaryCallSettings<ResumeEvaluationJobRequest, Empty> resumeEvaluationJobS
319
314
return ((DataLabelingServiceStubSettings ) getStubSettings ()).resumeEvaluationJobSettings ();
320
315
}
321
316
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,42 +423,6 @@ 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
-
462
426
/** Returns the builder for the settings used for calls to createDataset. */
463
427
public UnaryCallSettings .Builder <CreateDatasetRequest , Dataset > createDatasetSettings () {
464
428
return getStubSettingsBuilder ().createDatasetSettings ();
@@ -476,6 +440,11 @@ public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings(
476
440
return getStubSettingsBuilder ().listDatasetsSettings ();
477
441
}
478
442
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
+
479
448
/** Returns the builder for the settings used for calls to importData. */
480
449
public UnaryCallSettings .Builder <ImportDataRequest , Operation > importDataSettings () {
481
450
return getStubSettingsBuilder ().importDataSettings ();
@@ -490,6 +459,20 @@ public UnaryCallSettings.Builder<ImportDataRequest, Operation> importDataSetting
490
459
return getStubSettingsBuilder ().importDataOperationSettings ();
491
460
}
492
461
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
+
493
476
/** Returns the builder for the settings used for calls to getDataItem. */
494
477
public UnaryCallSettings .Builder <GetDataItemRequest , DataItem > getDataItemSettings () {
495
478
return getStubSettingsBuilder ().getDataItemSettings ();
@@ -597,6 +580,12 @@ public UnaryCallSettings.Builder<GetExampleRequest, Example> getExampleSettings(
597
580
return getStubSettingsBuilder ().listAnnotationSpecSetsSettings ();
598
581
}
599
582
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
+
600
589
/** Returns the builder for the settings used for calls to createInstruction. */
601
590
public UnaryCallSettings .Builder <CreateInstructionRequest , Operation >
602
591
createInstructionSettings () {
@@ -624,6 +613,11 @@ public UnaryCallSettings.Builder<GetInstructionRequest, Instruction> getInstruct
624
613
return getStubSettingsBuilder ().listInstructionsSettings ();
625
614
}
626
615
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
+
627
621
/** Returns the builder for the settings used for calls to getEvaluation. */
628
622
public UnaryCallSettings .Builder <GetEvaluationRequest , Evaluation > getEvaluationSettings () {
629
623
return getStubSettingsBuilder ().getEvaluationSettings ();
@@ -675,6 +669,12 @@ public UnaryCallSettings.Builder<GetEvaluationRequest, Evaluation> getEvaluation
675
669
return getStubSettingsBuilder ().resumeEvaluationJobSettings ();
676
670
}
677
671
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