53
53
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
54
54
* build() is called, the tree of builders is called to create the complete settings object.
55
55
*
56
- * <p>For example, to set the total timeout of deleteTransferConfig to 30 seconds:
56
+ * <p>For example, to set the total timeout of getDataSource to 30 seconds:
57
57
*
58
58
* <pre>
59
59
* <code>
60
60
* DataTransferServiceSettings.Builder dataTransferServiceSettingsBuilder =
61
61
* DataTransferServiceSettings.newBuilder();
62
62
* dataTransferServiceSettingsBuilder
63
- * .deleteTransferConfigSettings ()
63
+ * .getDataSourceSettings ()
64
64
* .setRetrySettings(
65
- * dataTransferServiceSettingsBuilder.deleteTransferConfigSettings ().getRetrySettings().toBuilder()
65
+ * dataTransferServiceSettingsBuilder.getDataSourceSettings ().getRetrySettings().toBuilder()
66
66
* .setTotalTimeout(Duration.ofSeconds(30))
67
67
* .build());
68
68
* DataTransferServiceSettings dataTransferServiceSettings = dataTransferServiceSettingsBuilder.build();
72
72
@ Generated ("by gapic-generator" )
73
73
@ BetaApi
74
74
public class DataTransferServiceSettings extends ClientSettings <DataTransferServiceSettings > {
75
- /** Returns the object with the settings used for calls to deleteTransferConfig. */
76
- public UnaryCallSettings <DeleteTransferConfigRequest , Empty > deleteTransferConfigSettings () {
77
- return ((DataTransferServiceStubSettings ) getStubSettings ()).deleteTransferConfigSettings ();
78
- }
79
-
80
- /** Returns the object with the settings used for calls to deleteTransferRun. */
81
- public UnaryCallSettings <DeleteTransferRunRequest , Empty > deleteTransferRunSettings () {
82
- return ((DataTransferServiceStubSettings ) getStubSettings ()).deleteTransferRunSettings ();
83
- }
84
-
85
- /** Returns the object with the settings used for calls to checkValidCreds. */
86
- public UnaryCallSettings <CheckValidCredsRequest , CheckValidCredsResponse >
87
- checkValidCredsSettings () {
88
- return ((DataTransferServiceStubSettings ) getStubSettings ()).checkValidCredsSettings ();
89
- }
90
-
91
75
/** Returns the object with the settings used for calls to getDataSource. */
92
76
public UnaryCallSettings <GetDataSourceRequest , DataSource > getDataSourceSettings () {
93
77
return ((DataTransferServiceStubSettings ) getStubSettings ()).getDataSourceSettings ();
@@ -112,6 +96,11 @@ public UnaryCallSettings<GetDataSourceRequest, DataSource> getDataSourceSettings
112
96
return ((DataTransferServiceStubSettings ) getStubSettings ()).updateTransferConfigSettings ();
113
97
}
114
98
99
+ /** Returns the object with the settings used for calls to deleteTransferConfig. */
100
+ public UnaryCallSettings <DeleteTransferConfigRequest , Empty > deleteTransferConfigSettings () {
101
+ return ((DataTransferServiceStubSettings ) getStubSettings ()).deleteTransferConfigSettings ();
102
+ }
103
+
115
104
/** Returns the object with the settings used for calls to getTransferConfig. */
116
105
public UnaryCallSettings <GetTransferConfigRequest , TransferConfig > getTransferConfigSettings () {
117
106
return ((DataTransferServiceStubSettings ) getStubSettings ()).getTransferConfigSettings ();
@@ -141,6 +130,11 @@ public UnaryCallSettings<GetTransferRunRequest, TransferRun> getTransferRunSetti
141
130
return ((DataTransferServiceStubSettings ) getStubSettings ()).getTransferRunSettings ();
142
131
}
143
132
133
+ /** Returns the object with the settings used for calls to deleteTransferRun. */
134
+ public UnaryCallSettings <DeleteTransferRunRequest , Empty > deleteTransferRunSettings () {
135
+ return ((DataTransferServiceStubSettings ) getStubSettings ()).deleteTransferRunSettings ();
136
+ }
137
+
144
138
/** Returns the object with the settings used for calls to listTransferRuns. */
145
139
public PagedCallSettings <
146
140
ListTransferRunsRequest , ListTransferRunsResponse , ListTransferRunsPagedResponse >
@@ -155,6 +149,12 @@ public UnaryCallSettings<GetTransferRunRequest, TransferRun> getTransferRunSetti
155
149
return ((DataTransferServiceStubSettings ) getStubSettings ()).listTransferLogsSettings ();
156
150
}
157
151
152
+ /** Returns the object with the settings used for calls to checkValidCreds. */
153
+ public UnaryCallSettings <CheckValidCredsRequest , CheckValidCredsResponse >
154
+ checkValidCredsSettings () {
155
+ return ((DataTransferServiceStubSettings ) getStubSettings ()).checkValidCredsSettings ();
156
+ }
157
+
158
158
public static final DataTransferServiceSettings create (DataTransferServiceStubSettings stub )
159
159
throws IOException {
160
160
return new DataTransferServiceSettings .Builder (stub .toBuilder ()).build ();
@@ -252,23 +252,6 @@ public Builder applyToAllUnaryMethods(
252
252
return this ;
253
253
}
254
254
255
- /** Returns the builder for the settings used for calls to deleteTransferConfig. */
256
- public UnaryCallSettings .Builder <DeleteTransferConfigRequest , Empty >
257
- deleteTransferConfigSettings () {
258
- return getStubSettingsBuilder ().deleteTransferConfigSettings ();
259
- }
260
-
261
- /** Returns the builder for the settings used for calls to deleteTransferRun. */
262
- public UnaryCallSettings .Builder <DeleteTransferRunRequest , Empty > deleteTransferRunSettings () {
263
- return getStubSettingsBuilder ().deleteTransferRunSettings ();
264
- }
265
-
266
- /** Returns the builder for the settings used for calls to checkValidCreds. */
267
- public UnaryCallSettings .Builder <CheckValidCredsRequest , CheckValidCredsResponse >
268
- checkValidCredsSettings () {
269
- return getStubSettingsBuilder ().checkValidCredsSettings ();
270
- }
271
-
272
255
/** Returns the builder for the settings used for calls to getDataSource. */
273
256
public UnaryCallSettings .Builder <GetDataSourceRequest , DataSource > getDataSourceSettings () {
274
257
return getStubSettingsBuilder ().getDataSourceSettings ();
@@ -293,6 +276,12 @@ public UnaryCallSettings.Builder<GetDataSourceRequest, DataSource> getDataSource
293
276
return getStubSettingsBuilder ().updateTransferConfigSettings ();
294
277
}
295
278
279
+ /** Returns the builder for the settings used for calls to deleteTransferConfig. */
280
+ public UnaryCallSettings .Builder <DeleteTransferConfigRequest , Empty >
281
+ deleteTransferConfigSettings () {
282
+ return getStubSettingsBuilder ().deleteTransferConfigSettings ();
283
+ }
284
+
296
285
/** Returns the builder for the settings used for calls to getTransferConfig. */
297
286
public UnaryCallSettings .Builder <GetTransferConfigRequest , TransferConfig >
298
287
getTransferConfigSettings () {
@@ -326,6 +315,11 @@ public UnaryCallSettings.Builder<GetTransferRunRequest, TransferRun> getTransfer
326
315
return getStubSettingsBuilder ().getTransferRunSettings ();
327
316
}
328
317
318
+ /** Returns the builder for the settings used for calls to deleteTransferRun. */
319
+ public UnaryCallSettings .Builder <DeleteTransferRunRequest , Empty > deleteTransferRunSettings () {
320
+ return getStubSettingsBuilder ().deleteTransferRunSettings ();
321
+ }
322
+
329
323
/** Returns the builder for the settings used for calls to listTransferRuns. */
330
324
public PagedCallSettings .Builder <
331
325
ListTransferRunsRequest , ListTransferRunsResponse , ListTransferRunsPagedResponse >
@@ -340,6 +334,12 @@ public UnaryCallSettings.Builder<GetTransferRunRequest, TransferRun> getTransfer
340
334
return getStubSettingsBuilder ().listTransferLogsSettings ();
341
335
}
342
336
337
+ /** Returns the builder for the settings used for calls to checkValidCreds. */
338
+ public UnaryCallSettings .Builder <CheckValidCredsRequest , CheckValidCredsResponse >
339
+ checkValidCredsSettings () {
340
+ return getStubSettingsBuilder ().checkValidCredsSettings ();
341
+ }
342
+
343
343
@ Override
344
344
public DataTransferServiceSettings build () throws IOException {
345
345
return new DataTransferServiceSettings (this );
0 commit comments