55
55
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
56
56
* build() is called, the tree of builders is called to create the complete settings object.
57
57
*
58
- * <p>For example, to set the total timeout of createDeviceRegistry to 30 seconds:
58
+ * <p>For example, to set the total timeout of deleteDeviceRegistry to 30 seconds:
59
59
*
60
60
* <pre>
61
61
* <code>
62
62
* DeviceManagerSettings.Builder deviceManagerSettingsBuilder =
63
63
* DeviceManagerSettings.newBuilder();
64
64
* deviceManagerSettingsBuilder
65
- * .createDeviceRegistrySettings ()
65
+ * .deleteDeviceRegistrySettings ()
66
66
* .setRetrySettings(
67
- * deviceManagerSettingsBuilder.createDeviceRegistrySettings ().getRetrySettings().toBuilder()
67
+ * deviceManagerSettingsBuilder.deleteDeviceRegistrySettings ().getRetrySettings().toBuilder()
68
68
* .setTotalTimeout(Duration.ofSeconds(30))
69
69
* .build());
70
70
* DeviceManagerSettings deviceManagerSettings = deviceManagerSettingsBuilder.build();
74
74
@ Generated ("by gapic-generator" )
75
75
@ BetaApi
76
76
public class DeviceManagerSettings extends ClientSettings <DeviceManagerSettings > {
77
+ /** Returns the object with the settings used for calls to deleteDeviceRegistry. */
78
+ public UnaryCallSettings <DeleteDeviceRegistryRequest , Empty > deleteDeviceRegistrySettings () {
79
+ return ((DeviceManagerStubSettings ) getStubSettings ()).deleteDeviceRegistrySettings ();
80
+ }
81
+
82
+ /** Returns the object with the settings used for calls to deleteDevice. */
83
+ public UnaryCallSettings <DeleteDeviceRequest , Empty > deleteDeviceSettings () {
84
+ return ((DeviceManagerStubSettings ) getStubSettings ()).deleteDeviceSettings ();
85
+ }
86
+
87
+ /** Returns the object with the settings used for calls to modifyCloudToDeviceConfig. */
88
+ public UnaryCallSettings <ModifyCloudToDeviceConfigRequest , DeviceConfig >
89
+ modifyCloudToDeviceConfigSettings () {
90
+ return ((DeviceManagerStubSettings ) getStubSettings ()).modifyCloudToDeviceConfigSettings ();
91
+ }
92
+
93
+ /** Returns the object with the settings used for calls to sendCommandToDevice. */
94
+ public UnaryCallSettings <SendCommandToDeviceRequest , SendCommandToDeviceResponse >
95
+ sendCommandToDeviceSettings () {
96
+ return ((DeviceManagerStubSettings ) getStubSettings ()).sendCommandToDeviceSettings ();
97
+ }
98
+
77
99
/** Returns the object with the settings used for calls to createDeviceRegistry. */
78
100
public UnaryCallSettings <CreateDeviceRegistryRequest , DeviceRegistry >
79
101
createDeviceRegistrySettings () {
@@ -91,11 +113,6 @@ public UnaryCallSettings<GetDeviceRegistryRequest, DeviceRegistry> getDeviceRegi
91
113
return ((DeviceManagerStubSettings ) getStubSettings ()).updateDeviceRegistrySettings ();
92
114
}
93
115
94
- /** Returns the object with the settings used for calls to deleteDeviceRegistry. */
95
- public UnaryCallSettings <DeleteDeviceRegistryRequest , Empty > deleteDeviceRegistrySettings () {
96
- return ((DeviceManagerStubSettings ) getStubSettings ()).deleteDeviceRegistrySettings ();
97
- }
98
-
99
116
/** Returns the object with the settings used for calls to listDeviceRegistries. */
100
117
public PagedCallSettings <
101
118
ListDeviceRegistriesRequest ,
@@ -120,23 +137,12 @@ public UnaryCallSettings<UpdateDeviceRequest, Device> updateDeviceSettings() {
120
137
return ((DeviceManagerStubSettings ) getStubSettings ()).updateDeviceSettings ();
121
138
}
122
139
123
- /** Returns the object with the settings used for calls to deleteDevice. */
124
- public UnaryCallSettings <DeleteDeviceRequest , Empty > deleteDeviceSettings () {
125
- return ((DeviceManagerStubSettings ) getStubSettings ()).deleteDeviceSettings ();
126
- }
127
-
128
140
/** Returns the object with the settings used for calls to listDevices. */
129
141
public PagedCallSettings <ListDevicesRequest , ListDevicesResponse , ListDevicesPagedResponse >
130
142
listDevicesSettings () {
131
143
return ((DeviceManagerStubSettings ) getStubSettings ()).listDevicesSettings ();
132
144
}
133
145
134
- /** Returns the object with the settings used for calls to modifyCloudToDeviceConfig. */
135
- public UnaryCallSettings <ModifyCloudToDeviceConfigRequest , DeviceConfig >
136
- modifyCloudToDeviceConfigSettings () {
137
- return ((DeviceManagerStubSettings ) getStubSettings ()).modifyCloudToDeviceConfigSettings ();
138
- }
139
-
140
146
/** Returns the object with the settings used for calls to listDeviceConfigVersions. */
141
147
public UnaryCallSettings <ListDeviceConfigVersionsRequest , ListDeviceConfigVersionsResponse >
142
148
listDeviceConfigVersionsSettings () {
@@ -165,12 +171,6 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
165
171
return ((DeviceManagerStubSettings ) getStubSettings ()).testIamPermissionsSettings ();
166
172
}
167
173
168
- /** Returns the object with the settings used for calls to sendCommandToDevice. */
169
- public UnaryCallSettings <SendCommandToDeviceRequest , SendCommandToDeviceResponse >
170
- sendCommandToDeviceSettings () {
171
- return ((DeviceManagerStubSettings ) getStubSettings ()).sendCommandToDeviceSettings ();
172
- }
173
-
174
174
/** Returns the object with the settings used for calls to bindDeviceToGateway. */
175
175
public UnaryCallSettings <BindDeviceToGatewayRequest , BindDeviceToGatewayResponse >
176
176
bindDeviceToGatewaySettings () {
@@ -280,6 +280,29 @@ public Builder applyToAllUnaryMethods(
280
280
return this ;
281
281
}
282
282
283
+ /** Returns the builder for the settings used for calls to deleteDeviceRegistry. */
284
+ public UnaryCallSettings .Builder <DeleteDeviceRegistryRequest , Empty >
285
+ deleteDeviceRegistrySettings () {
286
+ return getStubSettingsBuilder ().deleteDeviceRegistrySettings ();
287
+ }
288
+
289
+ /** Returns the builder for the settings used for calls to deleteDevice. */
290
+ public UnaryCallSettings .Builder <DeleteDeviceRequest , Empty > deleteDeviceSettings () {
291
+ return getStubSettingsBuilder ().deleteDeviceSettings ();
292
+ }
293
+
294
+ /** Returns the builder for the settings used for calls to modifyCloudToDeviceConfig. */
295
+ public UnaryCallSettings .Builder <ModifyCloudToDeviceConfigRequest , DeviceConfig >
296
+ modifyCloudToDeviceConfigSettings () {
297
+ return getStubSettingsBuilder ().modifyCloudToDeviceConfigSettings ();
298
+ }
299
+
300
+ /** Returns the builder for the settings used for calls to sendCommandToDevice. */
301
+ public UnaryCallSettings .Builder <SendCommandToDeviceRequest , SendCommandToDeviceResponse >
302
+ sendCommandToDeviceSettings () {
303
+ return getStubSettingsBuilder ().sendCommandToDeviceSettings ();
304
+ }
305
+
283
306
/** Returns the builder for the settings used for calls to createDeviceRegistry. */
284
307
public UnaryCallSettings .Builder <CreateDeviceRegistryRequest , DeviceRegistry >
285
308
createDeviceRegistrySettings () {
@@ -298,12 +321,6 @@ public Builder applyToAllUnaryMethods(
298
321
return getStubSettingsBuilder ().updateDeviceRegistrySettings ();
299
322
}
300
323
301
- /** Returns the builder for the settings used for calls to deleteDeviceRegistry. */
302
- public UnaryCallSettings .Builder <DeleteDeviceRegistryRequest , Empty >
303
- deleteDeviceRegistrySettings () {
304
- return getStubSettingsBuilder ().deleteDeviceRegistrySettings ();
305
- }
306
-
307
324
/** Returns the builder for the settings used for calls to listDeviceRegistries. */
308
325
public PagedCallSettings .Builder <
309
326
ListDeviceRegistriesRequest ,
@@ -328,24 +345,13 @@ public UnaryCallSettings.Builder<UpdateDeviceRequest, Device> updateDeviceSettin
328
345
return getStubSettingsBuilder ().updateDeviceSettings ();
329
346
}
330
347
331
- /** Returns the builder for the settings used for calls to deleteDevice. */
332
- public UnaryCallSettings .Builder <DeleteDeviceRequest , Empty > deleteDeviceSettings () {
333
- return getStubSettingsBuilder ().deleteDeviceSettings ();
334
- }
335
-
336
348
/** Returns the builder for the settings used for calls to listDevices. */
337
349
public PagedCallSettings .Builder <
338
350
ListDevicesRequest , ListDevicesResponse , ListDevicesPagedResponse >
339
351
listDevicesSettings () {
340
352
return getStubSettingsBuilder ().listDevicesSettings ();
341
353
}
342
354
343
- /** Returns the builder for the settings used for calls to modifyCloudToDeviceConfig. */
344
- public UnaryCallSettings .Builder <ModifyCloudToDeviceConfigRequest , DeviceConfig >
345
- modifyCloudToDeviceConfigSettings () {
346
- return getStubSettingsBuilder ().modifyCloudToDeviceConfigSettings ();
347
- }
348
-
349
355
/** Returns the builder for the settings used for calls to listDeviceConfigVersions. */
350
356
public UnaryCallSettings .Builder <
351
357
ListDeviceConfigVersionsRequest , ListDeviceConfigVersionsResponse >
@@ -375,12 +381,6 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
375
381
return getStubSettingsBuilder ().testIamPermissionsSettings ();
376
382
}
377
383
378
- /** Returns the builder for the settings used for calls to sendCommandToDevice. */
379
- public UnaryCallSettings .Builder <SendCommandToDeviceRequest , SendCommandToDeviceResponse >
380
- sendCommandToDeviceSettings () {
381
- return getStubSettingsBuilder ().sendCommandToDeviceSettings ();
382
- }
383
-
384
384
/** Returns the builder for the settings used for calls to bindDeviceToGateway. */
385
385
public UnaryCallSettings .Builder <BindDeviceToGatewayRequest , BindDeviceToGatewayResponse >
386
386
bindDeviceToGatewaySettings () {
0 commit comments