18
18
19
19
import static com .google .cloud .networksecurity .v1beta1 .NetworkSecurityClient .ListAuthorizationPoliciesPagedResponse ;
20
20
import static com .google .cloud .networksecurity .v1beta1 .NetworkSecurityClient .ListClientTlsPoliciesPagedResponse ;
21
+ import static com .google .cloud .networksecurity .v1beta1 .NetworkSecurityClient .ListLocationsPagedResponse ;
21
22
import static com .google .cloud .networksecurity .v1beta1 .NetworkSecurityClient .ListServerTlsPoliciesPagedResponse ;
22
23
23
24
import com .google .api .core .ApiFunction ;
24
25
import com .google .api .core .BetaApi ;
25
26
import com .google .api .gax .core .GoogleCredentialsProvider ;
26
27
import com .google .api .gax .core .InstantiatingExecutorProvider ;
27
28
import com .google .api .gax .grpc .InstantiatingGrpcChannelProvider ;
29
+ import com .google .api .gax .httpjson .InstantiatingHttpJsonChannelProvider ;
28
30
import com .google .api .gax .rpc .ApiClientHeaderProvider ;
29
31
import com .google .api .gax .rpc .ClientContext ;
30
32
import com .google .api .gax .rpc .ClientSettings ;
31
33
import com .google .api .gax .rpc .OperationCallSettings ;
32
34
import com .google .api .gax .rpc .PagedCallSettings ;
33
35
import com .google .api .gax .rpc .TransportChannelProvider ;
34
36
import com .google .api .gax .rpc .UnaryCallSettings ;
37
+ import com .google .cloud .location .GetLocationRequest ;
38
+ import com .google .cloud .location .ListLocationsRequest ;
39
+ import com .google .cloud .location .ListLocationsResponse ;
40
+ import com .google .cloud .location .Location ;
35
41
import com .google .cloud .networksecurity .v1beta1 .stub .NetworkSecurityStubSettings ;
42
+ import com .google .iam .v1 .GetIamPolicyRequest ;
43
+ import com .google .iam .v1 .Policy ;
44
+ import com .google .iam .v1 .SetIamPolicyRequest ;
45
+ import com .google .iam .v1 .TestIamPermissionsRequest ;
46
+ import com .google .iam .v1 .TestIamPermissionsResponse ;
36
47
import com .google .longrunning .Operation ;
37
48
import com .google .protobuf .Empty ;
38
49
import java .io .IOException ;
@@ -242,6 +253,33 @@ public class NetworkSecuritySettings extends ClientSettings<NetworkSecuritySetti
242
253
.deleteClientTlsPolicyOperationSettings ();
243
254
}
244
255
256
+ /** Returns the object with the settings used for calls to listLocations. */
257
+ public PagedCallSettings <ListLocationsRequest , ListLocationsResponse , ListLocationsPagedResponse >
258
+ listLocationsSettings () {
259
+ return ((NetworkSecurityStubSettings ) getStubSettings ()).listLocationsSettings ();
260
+ }
261
+
262
+ /** Returns the object with the settings used for calls to getLocation. */
263
+ public UnaryCallSettings <GetLocationRequest , Location > getLocationSettings () {
264
+ return ((NetworkSecurityStubSettings ) getStubSettings ()).getLocationSettings ();
265
+ }
266
+
267
+ /** Returns the object with the settings used for calls to setIamPolicy. */
268
+ public UnaryCallSettings <SetIamPolicyRequest , Policy > setIamPolicySettings () {
269
+ return ((NetworkSecurityStubSettings ) getStubSettings ()).setIamPolicySettings ();
270
+ }
271
+
272
+ /** Returns the object with the settings used for calls to getIamPolicy. */
273
+ public UnaryCallSettings <GetIamPolicyRequest , Policy > getIamPolicySettings () {
274
+ return ((NetworkSecurityStubSettings ) getStubSettings ()).getIamPolicySettings ();
275
+ }
276
+
277
+ /** Returns the object with the settings used for calls to testIamPermissions. */
278
+ public UnaryCallSettings <TestIamPermissionsRequest , TestIamPermissionsResponse >
279
+ testIamPermissionsSettings () {
280
+ return ((NetworkSecurityStubSettings ) getStubSettings ()).testIamPermissionsSettings ();
281
+ }
282
+
245
283
public static final NetworkSecuritySettings create (NetworkSecurityStubSettings stub )
246
284
throws IOException {
247
285
return new NetworkSecuritySettings .Builder (stub .toBuilder ()).build ();
@@ -267,11 +305,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
267
305
return NetworkSecurityStubSettings .defaultCredentialsProviderBuilder ();
268
306
}
269
307
270
- /** Returns a builder for the default ChannelProvider for this service. */
308
+ /** Returns a builder for the default gRPC ChannelProvider for this service. */
271
309
public static InstantiatingGrpcChannelProvider .Builder defaultGrpcTransportProviderBuilder () {
272
310
return NetworkSecurityStubSettings .defaultGrpcTransportProviderBuilder ();
273
311
}
274
312
313
+ /** Returns a builder for the default REST ChannelProvider for this service. */
314
+ @ BetaApi
315
+ public static InstantiatingHttpJsonChannelProvider .Builder
316
+ defaultHttpJsonTransportProviderBuilder () {
317
+ return NetworkSecurityStubSettings .defaultHttpJsonTransportProviderBuilder ();
318
+ }
319
+
275
320
public static TransportChannelProvider defaultTransportChannelProvider () {
276
321
return NetworkSecurityStubSettings .defaultTransportChannelProvider ();
277
322
}
@@ -281,11 +326,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
281
326
return NetworkSecurityStubSettings .defaultApiClientHeaderProviderBuilder ();
282
327
}
283
328
284
- /** Returns a new builder for this class. */
329
+ /** Returns a new gRPC builder for this class. */
285
330
public static Builder newBuilder () {
286
331
return Builder .createDefault ();
287
332
}
288
333
334
+ /** Returns a new REST builder for this class. */
335
+ @ BetaApi
336
+ public static Builder newHttpJsonBuilder () {
337
+ return Builder .createHttpJsonDefault ();
338
+ }
339
+
289
340
/** Returns a new builder for this class. */
290
341
public static Builder newBuilder (ClientContext clientContext ) {
291
342
return new Builder (clientContext );
@@ -323,6 +374,11 @@ private static Builder createDefault() {
323
374
return new Builder (NetworkSecurityStubSettings .newBuilder ());
324
375
}
325
376
377
+ @ BetaApi
378
+ private static Builder createHttpJsonDefault () {
379
+ return new Builder (NetworkSecurityStubSettings .newHttpJsonBuilder ());
380
+ }
381
+
326
382
public NetworkSecurityStubSettings .Builder getStubSettingsBuilder () {
327
383
return ((NetworkSecurityStubSettings .Builder ) getStubSettings ());
328
384
}
@@ -498,6 +554,34 @@ public Builder applyToAllUnaryMethods(
498
554
return getStubSettingsBuilder ().deleteClientTlsPolicyOperationSettings ();
499
555
}
500
556
557
+ /** Returns the builder for the settings used for calls to listLocations. */
558
+ public PagedCallSettings .Builder <
559
+ ListLocationsRequest , ListLocationsResponse , ListLocationsPagedResponse >
560
+ listLocationsSettings () {
561
+ return getStubSettingsBuilder ().listLocationsSettings ();
562
+ }
563
+
564
+ /** Returns the builder for the settings used for calls to getLocation. */
565
+ public UnaryCallSettings .Builder <GetLocationRequest , Location > getLocationSettings () {
566
+ return getStubSettingsBuilder ().getLocationSettings ();
567
+ }
568
+
569
+ /** Returns the builder for the settings used for calls to setIamPolicy. */
570
+ public UnaryCallSettings .Builder <SetIamPolicyRequest , Policy > setIamPolicySettings () {
571
+ return getStubSettingsBuilder ().setIamPolicySettings ();
572
+ }
573
+
574
+ /** Returns the builder for the settings used for calls to getIamPolicy. */
575
+ public UnaryCallSettings .Builder <GetIamPolicyRequest , Policy > getIamPolicySettings () {
576
+ return getStubSettingsBuilder ().getIamPolicySettings ();
577
+ }
578
+
579
+ /** Returns the builder for the settings used for calls to testIamPermissions. */
580
+ public UnaryCallSettings .Builder <TestIamPermissionsRequest , TestIamPermissionsResponse >
581
+ testIamPermissionsSettings () {
582
+ return getStubSettingsBuilder ().testIamPermissionsSettings ();
583
+ }
584
+
501
585
@ Override
502
586
public NetworkSecuritySettings build () throws IOException {
503
587
return new NetworkSecuritySettings (this );
0 commit comments