62
62
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
63
63
* build() is called, the tree of builders is called to create the complete settings object.
64
64
*
65
- * <p>For example, to set the total timeout of getIamPolicy to 30 seconds:
65
+ * <p>For example, to set the total timeout of createSource to 30 seconds:
66
66
*
67
67
* <pre>
68
68
* <code>
69
69
* SecurityCenterSettings.Builder securityCenterSettingsBuilder =
70
70
* SecurityCenterSettings.newBuilder();
71
71
* securityCenterSettingsBuilder
72
- * .getIamPolicySettings ()
72
+ * .createSourceSettings ()
73
73
* .setRetrySettings(
74
- * securityCenterSettingsBuilder.getIamPolicySettings ().getRetrySettings().toBuilder()
74
+ * securityCenterSettingsBuilder.createSourceSettings ().getRetrySettings().toBuilder()
75
75
* .setTotalTimeout(Duration.ofSeconds(30))
76
76
* .build());
77
77
* SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
81
81
@ Generated ("by gapic-generator" )
82
82
@ BetaApi
83
83
public class SecurityCenterSettings extends ClientSettings <SecurityCenterSettings > {
84
- /** Returns the object with the settings used for calls to getIamPolicy. */
85
- public UnaryCallSettings <GetIamPolicyRequest , Policy > getIamPolicySettings () {
86
- return ((SecurityCenterStubSettings ) getStubSettings ()).getIamPolicySettings ();
87
- }
88
-
89
- /** Returns the object with the settings used for calls to groupAssets. */
90
- public PagedCallSettings <GroupAssetsRequest , GroupAssetsResponse , GroupAssetsPagedResponse >
91
- groupAssetsSettings () {
92
- return ((SecurityCenterStubSettings ) getStubSettings ()).groupAssetsSettings ();
93
- }
94
-
95
- /** Returns the object with the settings used for calls to groupFindings. */
96
- public PagedCallSettings <GroupFindingsRequest , GroupFindingsResponse , GroupFindingsPagedResponse >
97
- groupFindingsSettings () {
98
- return ((SecurityCenterStubSettings ) getStubSettings ()).groupFindingsSettings ();
99
- }
100
-
101
- /** Returns the object with the settings used for calls to testIamPermissions. */
102
- public UnaryCallSettings <TestIamPermissionsRequest , TestIamPermissionsResponse >
103
- testIamPermissionsSettings () {
104
- return ((SecurityCenterStubSettings ) getStubSettings ()).testIamPermissionsSettings ();
105
- }
106
-
107
84
/** Returns the object with the settings used for calls to createSource. */
108
85
public UnaryCallSettings <CreateSourceRequest , Source > createSourceSettings () {
109
86
return ((SecurityCenterStubSettings ) getStubSettings ()).createSourceSettings ();
@@ -126,6 +103,11 @@ public UnaryCallSettings<CreateFindingRequest, Finding> createFindingSettings()
126
103
return ((SecurityCenterStubSettings ) getStubSettings ()).deleteNotificationConfigSettings ();
127
104
}
128
105
106
+ /** Returns the object with the settings used for calls to getIamPolicy. */
107
+ public UnaryCallSettings <GetIamPolicyRequest , Policy > getIamPolicySettings () {
108
+ return ((SecurityCenterStubSettings ) getStubSettings ()).getIamPolicySettings ();
109
+ }
110
+
129
111
/** Returns the object with the settings used for calls to getNotificationConfig. */
130
112
public UnaryCallSettings <GetNotificationConfigRequest , NotificationConfig >
131
113
getNotificationConfigSettings () {
@@ -143,6 +125,18 @@ public UnaryCallSettings<GetSourceRequest, Source> getSourceSettings() {
143
125
return ((SecurityCenterStubSettings ) getStubSettings ()).getSourceSettings ();
144
126
}
145
127
128
+ /** Returns the object with the settings used for calls to groupAssets. */
129
+ public PagedCallSettings <GroupAssetsRequest , GroupAssetsResponse , GroupAssetsPagedResponse >
130
+ groupAssetsSettings () {
131
+ return ((SecurityCenterStubSettings ) getStubSettings ()).groupAssetsSettings ();
132
+ }
133
+
134
+ /** Returns the object with the settings used for calls to groupFindings. */
135
+ public PagedCallSettings <GroupFindingsRequest , GroupFindingsResponse , GroupFindingsPagedResponse >
136
+ groupFindingsSettings () {
137
+ return ((SecurityCenterStubSettings ) getStubSettings ()).groupFindingsSettings ();
138
+ }
139
+
146
140
/** Returns the object with the settings used for calls to listAssets. */
147
141
public PagedCallSettings <ListAssetsRequest , ListAssetsResponse , ListAssetsPagedResponse >
148
142
listAssetsSettings () {
@@ -193,6 +187,12 @@ public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
193
187
return ((SecurityCenterStubSettings ) getStubSettings ()).setIamPolicySettings ();
194
188
}
195
189
190
+ /** Returns the object with the settings used for calls to testIamPermissions. */
191
+ public UnaryCallSettings <TestIamPermissionsRequest , TestIamPermissionsResponse >
192
+ testIamPermissionsSettings () {
193
+ return ((SecurityCenterStubSettings ) getStubSettings ()).testIamPermissionsSettings ();
194
+ }
195
+
196
196
/** Returns the object with the settings used for calls to updateFinding. */
197
197
public UnaryCallSettings <UpdateFindingRequest , Finding > updateFindingSettings () {
198
198
return ((SecurityCenterStubSettings ) getStubSettings ()).updateFindingSettings ();
@@ -318,31 +318,6 @@ public Builder applyToAllUnaryMethods(
318
318
return this ;
319
319
}
320
320
321
- /** Returns the builder for the settings used for calls to getIamPolicy. */
322
- public UnaryCallSettings .Builder <GetIamPolicyRequest , Policy > getIamPolicySettings () {
323
- return getStubSettingsBuilder ().getIamPolicySettings ();
324
- }
325
-
326
- /** Returns the builder for the settings used for calls to groupAssets. */
327
- public PagedCallSettings .Builder <
328
- GroupAssetsRequest , GroupAssetsResponse , GroupAssetsPagedResponse >
329
- groupAssetsSettings () {
330
- return getStubSettingsBuilder ().groupAssetsSettings ();
331
- }
332
-
333
- /** Returns the builder for the settings used for calls to groupFindings. */
334
- public PagedCallSettings .Builder <
335
- GroupFindingsRequest , GroupFindingsResponse , GroupFindingsPagedResponse >
336
- groupFindingsSettings () {
337
- return getStubSettingsBuilder ().groupFindingsSettings ();
338
- }
339
-
340
- /** Returns the builder for the settings used for calls to testIamPermissions. */
341
- public UnaryCallSettings .Builder <TestIamPermissionsRequest , TestIamPermissionsResponse >
342
- testIamPermissionsSettings () {
343
- return getStubSettingsBuilder ().testIamPermissionsSettings ();
344
- }
345
-
346
321
/** Returns the builder for the settings used for calls to createSource. */
347
322
public UnaryCallSettings .Builder <CreateSourceRequest , Source > createSourceSettings () {
348
323
return getStubSettingsBuilder ().createSourceSettings ();
@@ -365,6 +340,11 @@ public UnaryCallSettings.Builder<CreateFindingRequest, Finding> createFindingSet
365
340
return getStubSettingsBuilder ().deleteNotificationConfigSettings ();
366
341
}
367
342
343
+ /** Returns the builder for the settings used for calls to getIamPolicy. */
344
+ public UnaryCallSettings .Builder <GetIamPolicyRequest , Policy > getIamPolicySettings () {
345
+ return getStubSettingsBuilder ().getIamPolicySettings ();
346
+ }
347
+
368
348
/** Returns the builder for the settings used for calls to getNotificationConfig. */
369
349
public UnaryCallSettings .Builder <GetNotificationConfigRequest , NotificationConfig >
370
350
getNotificationConfigSettings () {
@@ -382,6 +362,20 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
382
362
return getStubSettingsBuilder ().getSourceSettings ();
383
363
}
384
364
365
+ /** Returns the builder for the settings used for calls to groupAssets. */
366
+ public PagedCallSettings .Builder <
367
+ GroupAssetsRequest , GroupAssetsResponse , GroupAssetsPagedResponse >
368
+ groupAssetsSettings () {
369
+ return getStubSettingsBuilder ().groupAssetsSettings ();
370
+ }
371
+
372
+ /** Returns the builder for the settings used for calls to groupFindings. */
373
+ public PagedCallSettings .Builder <
374
+ GroupFindingsRequest , GroupFindingsResponse , GroupFindingsPagedResponse >
375
+ groupFindingsSettings () {
376
+ return getStubSettingsBuilder ().groupFindingsSettings ();
377
+ }
378
+
385
379
/** Returns the builder for the settings used for calls to listAssets. */
386
380
public PagedCallSettings .Builder <ListAssetsRequest , ListAssetsResponse , ListAssetsPagedResponse >
387
381
listAssetsSettings () {
@@ -435,6 +429,12 @@ public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettin
435
429
return getStubSettingsBuilder ().setIamPolicySettings ();
436
430
}
437
431
432
+ /** Returns the builder for the settings used for calls to testIamPermissions. */
433
+ public UnaryCallSettings .Builder <TestIamPermissionsRequest , TestIamPermissionsResponse >
434
+ testIamPermissionsSettings () {
435
+ return getStubSettingsBuilder ().testIamPermissionsSettings ();
436
+ }
437
+
438
438
/** Returns the builder for the settings used for calls to updateFinding. */
439
439
public UnaryCallSettings .Builder <UpdateFindingRequest , Finding > updateFindingSettings () {
440
440
return getStubSettingsBuilder ().updateFindingSettings ();
0 commit comments