This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
NotebookServiceSettings.java
562 lines (471 loc) · 25.5 KB
/
NotebookServiceSettings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.notebooks.v1beta1;
import static com.google.cloud.notebooks.v1beta1.NotebookServiceClient.ListEnvironmentsPagedResponse;
import static com.google.cloud.notebooks.v1beta1.NotebookServiceClient.ListInstancesPagedResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.notebooks.v1beta1.stub.NotebookServiceStubSettings;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link NotebookServiceClient}.
*
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (notebooks.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getInstance to 30 seconds:
*
* <pre>{@code
* NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
* NotebookServiceSettings.newBuilder();
* notebookServiceSettingsBuilder
* .getInstanceSettings()
* .setRetrySettings(
* notebookServiceSettingsBuilder
* .getInstanceSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
* }</pre>
*/
@BetaApi
@Generated("by gapic-generator-java")
public class NotebookServiceSettings extends ClientSettings<NotebookServiceSettings> {
/** Returns the object with the settings used for calls to listInstances. */
public PagedCallSettings<ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
listInstancesSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).listInstancesSettings();
}
/** Returns the object with the settings used for calls to getInstance. */
public UnaryCallSettings<GetInstanceRequest, Instance> getInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).getInstanceSettings();
}
/** Returns the object with the settings used for calls to createInstance. */
public UnaryCallSettings<CreateInstanceRequest, Operation> createInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).createInstanceSettings();
}
/** Returns the object with the settings used for calls to createInstance. */
public OperationCallSettings<CreateInstanceRequest, Instance, OperationMetadata>
createInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).createInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to registerInstance. */
public UnaryCallSettings<RegisterInstanceRequest, Operation> registerInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).registerInstanceSettings();
}
/** Returns the object with the settings used for calls to registerInstance. */
public OperationCallSettings<RegisterInstanceRequest, Instance, OperationMetadata>
registerInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).registerInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to setInstanceAccelerator. */
public UnaryCallSettings<SetInstanceAcceleratorRequest, Operation>
setInstanceAcceleratorSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).setInstanceAcceleratorSettings();
}
/** Returns the object with the settings used for calls to setInstanceAccelerator. */
public OperationCallSettings<SetInstanceAcceleratorRequest, Instance, OperationMetadata>
setInstanceAcceleratorOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings())
.setInstanceAcceleratorOperationSettings();
}
/** Returns the object with the settings used for calls to setInstanceMachineType. */
public UnaryCallSettings<SetInstanceMachineTypeRequest, Operation>
setInstanceMachineTypeSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).setInstanceMachineTypeSettings();
}
/** Returns the object with the settings used for calls to setInstanceMachineType. */
public OperationCallSettings<SetInstanceMachineTypeRequest, Instance, OperationMetadata>
setInstanceMachineTypeOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings())
.setInstanceMachineTypeOperationSettings();
}
/** Returns the object with the settings used for calls to setInstanceLabels. */
public UnaryCallSettings<SetInstanceLabelsRequest, Operation> setInstanceLabelsSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).setInstanceLabelsSettings();
}
/** Returns the object with the settings used for calls to setInstanceLabels. */
public OperationCallSettings<SetInstanceLabelsRequest, Instance, OperationMetadata>
setInstanceLabelsOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).setInstanceLabelsOperationSettings();
}
/** Returns the object with the settings used for calls to deleteInstance. */
public UnaryCallSettings<DeleteInstanceRequest, Operation> deleteInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).deleteInstanceSettings();
}
/** Returns the object with the settings used for calls to deleteInstance. */
public OperationCallSettings<DeleteInstanceRequest, Empty, OperationMetadata>
deleteInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).deleteInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to startInstance. */
public UnaryCallSettings<StartInstanceRequest, Operation> startInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).startInstanceSettings();
}
/** Returns the object with the settings used for calls to startInstance. */
public OperationCallSettings<StartInstanceRequest, Instance, OperationMetadata>
startInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).startInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to stopInstance. */
public UnaryCallSettings<StopInstanceRequest, Operation> stopInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).stopInstanceSettings();
}
/** Returns the object with the settings used for calls to stopInstance. */
public OperationCallSettings<StopInstanceRequest, Instance, OperationMetadata>
stopInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).stopInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to resetInstance. */
public UnaryCallSettings<ResetInstanceRequest, Operation> resetInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).resetInstanceSettings();
}
/** Returns the object with the settings used for calls to resetInstance. */
public OperationCallSettings<ResetInstanceRequest, Instance, OperationMetadata>
resetInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).resetInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to reportInstanceInfo. */
public UnaryCallSettings<ReportInstanceInfoRequest, Operation> reportInstanceInfoSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).reportInstanceInfoSettings();
}
/** Returns the object with the settings used for calls to reportInstanceInfo. */
public OperationCallSettings<ReportInstanceInfoRequest, Instance, OperationMetadata>
reportInstanceInfoOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).reportInstanceInfoOperationSettings();
}
/** Returns the object with the settings used for calls to isInstanceUpgradeable. */
public UnaryCallSettings<IsInstanceUpgradeableRequest, IsInstanceUpgradeableResponse>
isInstanceUpgradeableSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).isInstanceUpgradeableSettings();
}
/** Returns the object with the settings used for calls to upgradeInstance. */
public UnaryCallSettings<UpgradeInstanceRequest, Operation> upgradeInstanceSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).upgradeInstanceSettings();
}
/** Returns the object with the settings used for calls to upgradeInstance. */
public OperationCallSettings<UpgradeInstanceRequest, Instance, OperationMetadata>
upgradeInstanceOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).upgradeInstanceOperationSettings();
}
/** Returns the object with the settings used for calls to upgradeInstanceInternal. */
public UnaryCallSettings<UpgradeInstanceInternalRequest, Operation>
upgradeInstanceInternalSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).upgradeInstanceInternalSettings();
}
/** Returns the object with the settings used for calls to upgradeInstanceInternal. */
public OperationCallSettings<UpgradeInstanceInternalRequest, Instance, OperationMetadata>
upgradeInstanceInternalOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings())
.upgradeInstanceInternalOperationSettings();
}
/** Returns the object with the settings used for calls to listEnvironments. */
public PagedCallSettings<
ListEnvironmentsRequest, ListEnvironmentsResponse, ListEnvironmentsPagedResponse>
listEnvironmentsSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).listEnvironmentsSettings();
}
/** Returns the object with the settings used for calls to getEnvironment. */
public UnaryCallSettings<GetEnvironmentRequest, Environment> getEnvironmentSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).getEnvironmentSettings();
}
/** Returns the object with the settings used for calls to createEnvironment. */
public UnaryCallSettings<CreateEnvironmentRequest, Operation> createEnvironmentSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).createEnvironmentSettings();
}
/** Returns the object with the settings used for calls to createEnvironment. */
public OperationCallSettings<CreateEnvironmentRequest, Environment, OperationMetadata>
createEnvironmentOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).createEnvironmentOperationSettings();
}
/** Returns the object with the settings used for calls to deleteEnvironment. */
public UnaryCallSettings<DeleteEnvironmentRequest, Operation> deleteEnvironmentSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).deleteEnvironmentSettings();
}
/** Returns the object with the settings used for calls to deleteEnvironment. */
public OperationCallSettings<DeleteEnvironmentRequest, Empty, OperationMetadata>
deleteEnvironmentOperationSettings() {
return ((NotebookServiceStubSettings) getStubSettings()).deleteEnvironmentOperationSettings();
}
public static final NotebookServiceSettings create(NotebookServiceStubSettings stub)
throws IOException {
return new NotebookServiceSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return NotebookServiceStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return NotebookServiceStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List<String> getDefaultServiceScopes() {
return NotebookServiceStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return NotebookServiceStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return NotebookServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return NotebookServiceStubSettings.defaultTransportChannelProvider();
}
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return NotebookServiceStubSettings.defaultApiClientHeaderProviderBuilder();
}
/** Returns a new builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
}
/** Returns a builder containing all the values of this settings class. */
public Builder toBuilder() {
return new Builder(this);
}
protected NotebookServiceSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for NotebookServiceSettings. */
public static class Builder extends ClientSettings.Builder<NotebookServiceSettings, Builder> {
protected Builder() throws IOException {
this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(NotebookServiceStubSettings.newBuilder(clientContext));
}
protected Builder(NotebookServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(NotebookServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}
private static Builder createDefault() {
return new Builder(NotebookServiceStubSettings.newBuilder());
}
public NotebookServiceStubSettings.Builder getStubSettingsBuilder() {
return ((NotebookServiceStubSettings.Builder) getStubSettings());
}
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
}
/** Returns the builder for the settings used for calls to listInstances. */
public PagedCallSettings.Builder<
ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
listInstancesSettings() {
return getStubSettingsBuilder().listInstancesSettings();
}
/** Returns the builder for the settings used for calls to getInstance. */
public UnaryCallSettings.Builder<GetInstanceRequest, Instance> getInstanceSettings() {
return getStubSettingsBuilder().getInstanceSettings();
}
/** Returns the builder for the settings used for calls to createInstance. */
public UnaryCallSettings.Builder<CreateInstanceRequest, Operation> createInstanceSettings() {
return getStubSettingsBuilder().createInstanceSettings();
}
/** Returns the builder for the settings used for calls to createInstance. */
public OperationCallSettings.Builder<CreateInstanceRequest, Instance, OperationMetadata>
createInstanceOperationSettings() {
return getStubSettingsBuilder().createInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to registerInstance. */
public UnaryCallSettings.Builder<RegisterInstanceRequest, Operation>
registerInstanceSettings() {
return getStubSettingsBuilder().registerInstanceSettings();
}
/** Returns the builder for the settings used for calls to registerInstance. */
public OperationCallSettings.Builder<RegisterInstanceRequest, Instance, OperationMetadata>
registerInstanceOperationSettings() {
return getStubSettingsBuilder().registerInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to setInstanceAccelerator. */
public UnaryCallSettings.Builder<SetInstanceAcceleratorRequest, Operation>
setInstanceAcceleratorSettings() {
return getStubSettingsBuilder().setInstanceAcceleratorSettings();
}
/** Returns the builder for the settings used for calls to setInstanceAccelerator. */
public OperationCallSettings.Builder<SetInstanceAcceleratorRequest, Instance, OperationMetadata>
setInstanceAcceleratorOperationSettings() {
return getStubSettingsBuilder().setInstanceAcceleratorOperationSettings();
}
/** Returns the builder for the settings used for calls to setInstanceMachineType. */
public UnaryCallSettings.Builder<SetInstanceMachineTypeRequest, Operation>
setInstanceMachineTypeSettings() {
return getStubSettingsBuilder().setInstanceMachineTypeSettings();
}
/** Returns the builder for the settings used for calls to setInstanceMachineType. */
public OperationCallSettings.Builder<SetInstanceMachineTypeRequest, Instance, OperationMetadata>
setInstanceMachineTypeOperationSettings() {
return getStubSettingsBuilder().setInstanceMachineTypeOperationSettings();
}
/** Returns the builder for the settings used for calls to setInstanceLabels. */
public UnaryCallSettings.Builder<SetInstanceLabelsRequest, Operation>
setInstanceLabelsSettings() {
return getStubSettingsBuilder().setInstanceLabelsSettings();
}
/** Returns the builder for the settings used for calls to setInstanceLabels. */
public OperationCallSettings.Builder<SetInstanceLabelsRequest, Instance, OperationMetadata>
setInstanceLabelsOperationSettings() {
return getStubSettingsBuilder().setInstanceLabelsOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteInstance. */
public UnaryCallSettings.Builder<DeleteInstanceRequest, Operation> deleteInstanceSettings() {
return getStubSettingsBuilder().deleteInstanceSettings();
}
/** Returns the builder for the settings used for calls to deleteInstance. */
public OperationCallSettings.Builder<DeleteInstanceRequest, Empty, OperationMetadata>
deleteInstanceOperationSettings() {
return getStubSettingsBuilder().deleteInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to startInstance. */
public UnaryCallSettings.Builder<StartInstanceRequest, Operation> startInstanceSettings() {
return getStubSettingsBuilder().startInstanceSettings();
}
/** Returns the builder for the settings used for calls to startInstance. */
public OperationCallSettings.Builder<StartInstanceRequest, Instance, OperationMetadata>
startInstanceOperationSettings() {
return getStubSettingsBuilder().startInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to stopInstance. */
public UnaryCallSettings.Builder<StopInstanceRequest, Operation> stopInstanceSettings() {
return getStubSettingsBuilder().stopInstanceSettings();
}
/** Returns the builder for the settings used for calls to stopInstance. */
public OperationCallSettings.Builder<StopInstanceRequest, Instance, OperationMetadata>
stopInstanceOperationSettings() {
return getStubSettingsBuilder().stopInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to resetInstance. */
public UnaryCallSettings.Builder<ResetInstanceRequest, Operation> resetInstanceSettings() {
return getStubSettingsBuilder().resetInstanceSettings();
}
/** Returns the builder for the settings used for calls to resetInstance. */
public OperationCallSettings.Builder<ResetInstanceRequest, Instance, OperationMetadata>
resetInstanceOperationSettings() {
return getStubSettingsBuilder().resetInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to reportInstanceInfo. */
public UnaryCallSettings.Builder<ReportInstanceInfoRequest, Operation>
reportInstanceInfoSettings() {
return getStubSettingsBuilder().reportInstanceInfoSettings();
}
/** Returns the builder for the settings used for calls to reportInstanceInfo. */
public OperationCallSettings.Builder<ReportInstanceInfoRequest, Instance, OperationMetadata>
reportInstanceInfoOperationSettings() {
return getStubSettingsBuilder().reportInstanceInfoOperationSettings();
}
/** Returns the builder for the settings used for calls to isInstanceUpgradeable. */
public UnaryCallSettings.Builder<IsInstanceUpgradeableRequest, IsInstanceUpgradeableResponse>
isInstanceUpgradeableSettings() {
return getStubSettingsBuilder().isInstanceUpgradeableSettings();
}
/** Returns the builder for the settings used for calls to upgradeInstance. */
public UnaryCallSettings.Builder<UpgradeInstanceRequest, Operation> upgradeInstanceSettings() {
return getStubSettingsBuilder().upgradeInstanceSettings();
}
/** Returns the builder for the settings used for calls to upgradeInstance. */
public OperationCallSettings.Builder<UpgradeInstanceRequest, Instance, OperationMetadata>
upgradeInstanceOperationSettings() {
return getStubSettingsBuilder().upgradeInstanceOperationSettings();
}
/** Returns the builder for the settings used for calls to upgradeInstanceInternal. */
public UnaryCallSettings.Builder<UpgradeInstanceInternalRequest, Operation>
upgradeInstanceInternalSettings() {
return getStubSettingsBuilder().upgradeInstanceInternalSettings();
}
/** Returns the builder for the settings used for calls to upgradeInstanceInternal. */
public OperationCallSettings.Builder<
UpgradeInstanceInternalRequest, Instance, OperationMetadata>
upgradeInstanceInternalOperationSettings() {
return getStubSettingsBuilder().upgradeInstanceInternalOperationSettings();
}
/** Returns the builder for the settings used for calls to listEnvironments. */
public PagedCallSettings.Builder<
ListEnvironmentsRequest, ListEnvironmentsResponse, ListEnvironmentsPagedResponse>
listEnvironmentsSettings() {
return getStubSettingsBuilder().listEnvironmentsSettings();
}
/** Returns the builder for the settings used for calls to getEnvironment. */
public UnaryCallSettings.Builder<GetEnvironmentRequest, Environment> getEnvironmentSettings() {
return getStubSettingsBuilder().getEnvironmentSettings();
}
/** Returns the builder for the settings used for calls to createEnvironment. */
public UnaryCallSettings.Builder<CreateEnvironmentRequest, Operation>
createEnvironmentSettings() {
return getStubSettingsBuilder().createEnvironmentSettings();
}
/** Returns the builder for the settings used for calls to createEnvironment. */
public OperationCallSettings.Builder<CreateEnvironmentRequest, Environment, OperationMetadata>
createEnvironmentOperationSettings() {
return getStubSettingsBuilder().createEnvironmentOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteEnvironment. */
public UnaryCallSettings.Builder<DeleteEnvironmentRequest, Operation>
deleteEnvironmentSettings() {
return getStubSettingsBuilder().deleteEnvironmentSettings();
}
/** Returns the builder for the settings used for calls to deleteEnvironment. */
public OperationCallSettings.Builder<DeleteEnvironmentRequest, Empty, OperationMetadata>
deleteEnvironmentOperationSettings() {
return getStubSettingsBuilder().deleteEnvironmentOperationSettings();
}
@Override
public NotebookServiceSettings build() throws IOException {
return new NotebookServiceSettings(this);
}
}
}