• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.cloud.container.v1;
18 
19 import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse;
20 
21 import com.google.api.core.ApiFunction;
22 import com.google.api.core.BetaApi;
23 import com.google.api.gax.core.GoogleCredentialsProvider;
24 import com.google.api.gax.core.InstantiatingExecutorProvider;
25 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
26 import com.google.api.gax.rpc.ApiClientHeaderProvider;
27 import com.google.api.gax.rpc.ClientContext;
28 import com.google.api.gax.rpc.ClientSettings;
29 import com.google.api.gax.rpc.PagedCallSettings;
30 import com.google.api.gax.rpc.TransportChannelProvider;
31 import com.google.api.gax.rpc.UnaryCallSettings;
32 import com.google.cloud.container.v1.stub.ClusterManagerStubSettings;
33 import com.google.container.v1.CancelOperationRequest;
34 import com.google.container.v1.Cluster;
35 import com.google.container.v1.CompleteIPRotationRequest;
36 import com.google.container.v1.CompleteNodePoolUpgradeRequest;
37 import com.google.container.v1.CreateClusterRequest;
38 import com.google.container.v1.CreateNodePoolRequest;
39 import com.google.container.v1.DeleteClusterRequest;
40 import com.google.container.v1.DeleteNodePoolRequest;
41 import com.google.container.v1.GetClusterRequest;
42 import com.google.container.v1.GetJSONWebKeysRequest;
43 import com.google.container.v1.GetJSONWebKeysResponse;
44 import com.google.container.v1.GetNodePoolRequest;
45 import com.google.container.v1.GetOperationRequest;
46 import com.google.container.v1.GetServerConfigRequest;
47 import com.google.container.v1.ListClustersRequest;
48 import com.google.container.v1.ListClustersResponse;
49 import com.google.container.v1.ListNodePoolsRequest;
50 import com.google.container.v1.ListNodePoolsResponse;
51 import com.google.container.v1.ListOperationsRequest;
52 import com.google.container.v1.ListOperationsResponse;
53 import com.google.container.v1.ListUsableSubnetworksRequest;
54 import com.google.container.v1.ListUsableSubnetworksResponse;
55 import com.google.container.v1.NodePool;
56 import com.google.container.v1.Operation;
57 import com.google.container.v1.RollbackNodePoolUpgradeRequest;
58 import com.google.container.v1.ServerConfig;
59 import com.google.container.v1.SetAddonsConfigRequest;
60 import com.google.container.v1.SetLabelsRequest;
61 import com.google.container.v1.SetLegacyAbacRequest;
62 import com.google.container.v1.SetLocationsRequest;
63 import com.google.container.v1.SetLoggingServiceRequest;
64 import com.google.container.v1.SetMaintenancePolicyRequest;
65 import com.google.container.v1.SetMasterAuthRequest;
66 import com.google.container.v1.SetMonitoringServiceRequest;
67 import com.google.container.v1.SetNetworkPolicyRequest;
68 import com.google.container.v1.SetNodePoolAutoscalingRequest;
69 import com.google.container.v1.SetNodePoolManagementRequest;
70 import com.google.container.v1.SetNodePoolSizeRequest;
71 import com.google.container.v1.StartIPRotationRequest;
72 import com.google.container.v1.UpdateClusterRequest;
73 import com.google.container.v1.UpdateMasterRequest;
74 import com.google.container.v1.UpdateNodePoolRequest;
75 import com.google.protobuf.Empty;
76 import java.io.IOException;
77 import java.util.List;
78 import javax.annotation.Generated;
79 
80 // AUTO-GENERATED DOCUMENTATION AND CLASS.
81 /**
82  * Settings class to configure an instance of {@link ClusterManagerClient}.
83  *
84  * <p>The default instance has everything set to sensible defaults:
85  *
86  * <ul>
87  *   <li>The default service address (container.googleapis.com) and default port (443) are used.
88  *   <li>Credentials are acquired automatically through Application Default Credentials.
89  *   <li>Retries are configured for idempotent methods but not for non-idempotent methods.
90  * </ul>
91  *
92  * <p>The builder of this class is recursive, so contained classes are themselves builders. When
93  * build() is called, the tree of builders is called to create the complete settings object.
94  *
95  * <p>For example, to set the total timeout of listClusters to 30 seconds:
96  *
97  * <pre>{@code
98  * // This snippet has been automatically generated and should be regarded as a code template only.
99  * // It will require modifications to work:
100  * // - It may require correct/in-range values for request initialization.
101  * // - It may require specifying regional endpoints when creating the service client as shown in
102  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
103  * ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
104  *     ClusterManagerSettings.newBuilder();
105  * clusterManagerSettingsBuilder
106  *     .listClustersSettings()
107  *     .setRetrySettings(
108  *         clusterManagerSettingsBuilder
109  *             .listClustersSettings()
110  *             .getRetrySettings()
111  *             .toBuilder()
112  *             .setTotalTimeout(Duration.ofSeconds(30))
113  *             .build());
114  * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
115  * }</pre>
116  */
117 @Generated("by gapic-generator-java")
118 public class ClusterManagerSettings extends ClientSettings<ClusterManagerSettings> {
119 
120   /** Returns the object with the settings used for calls to listClusters. */
listClustersSettings()121   public UnaryCallSettings<ListClustersRequest, ListClustersResponse> listClustersSettings() {
122     return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings();
123   }
124 
125   /** Returns the object with the settings used for calls to getCluster. */
getClusterSettings()126   public UnaryCallSettings<GetClusterRequest, Cluster> getClusterSettings() {
127     return ((ClusterManagerStubSettings) getStubSettings()).getClusterSettings();
128   }
129 
130   /** Returns the object with the settings used for calls to createCluster. */
createClusterSettings()131   public UnaryCallSettings<CreateClusterRequest, Operation> createClusterSettings() {
132     return ((ClusterManagerStubSettings) getStubSettings()).createClusterSettings();
133   }
134 
135   /** Returns the object with the settings used for calls to updateCluster. */
updateClusterSettings()136   public UnaryCallSettings<UpdateClusterRequest, Operation> updateClusterSettings() {
137     return ((ClusterManagerStubSettings) getStubSettings()).updateClusterSettings();
138   }
139 
140   /** Returns the object with the settings used for calls to updateNodePool. */
updateNodePoolSettings()141   public UnaryCallSettings<UpdateNodePoolRequest, Operation> updateNodePoolSettings() {
142     return ((ClusterManagerStubSettings) getStubSettings()).updateNodePoolSettings();
143   }
144 
145   /** Returns the object with the settings used for calls to setNodePoolAutoscaling. */
146   public UnaryCallSettings<SetNodePoolAutoscalingRequest, Operation>
setNodePoolAutoscalingSettings()147       setNodePoolAutoscalingSettings() {
148     return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolAutoscalingSettings();
149   }
150 
151   /** Returns the object with the settings used for calls to setLoggingService. */
setLoggingServiceSettings()152   public UnaryCallSettings<SetLoggingServiceRequest, Operation> setLoggingServiceSettings() {
153     return ((ClusterManagerStubSettings) getStubSettings()).setLoggingServiceSettings();
154   }
155 
156   /** Returns the object with the settings used for calls to setMonitoringService. */
setMonitoringServiceSettings()157   public UnaryCallSettings<SetMonitoringServiceRequest, Operation> setMonitoringServiceSettings() {
158     return ((ClusterManagerStubSettings) getStubSettings()).setMonitoringServiceSettings();
159   }
160 
161   /** Returns the object with the settings used for calls to setAddonsConfig. */
setAddonsConfigSettings()162   public UnaryCallSettings<SetAddonsConfigRequest, Operation> setAddonsConfigSettings() {
163     return ((ClusterManagerStubSettings) getStubSettings()).setAddonsConfigSettings();
164   }
165 
166   /**
167    * Returns the object with the settings used for calls to setLocations.
168    *
169    * @deprecated This method is deprecated and will be removed in the next major version update.
170    */
171   @Deprecated
setLocationsSettings()172   public UnaryCallSettings<SetLocationsRequest, Operation> setLocationsSettings() {
173     return ((ClusterManagerStubSettings) getStubSettings()).setLocationsSettings();
174   }
175 
176   /** Returns the object with the settings used for calls to updateMaster. */
updateMasterSettings()177   public UnaryCallSettings<UpdateMasterRequest, Operation> updateMasterSettings() {
178     return ((ClusterManagerStubSettings) getStubSettings()).updateMasterSettings();
179   }
180 
181   /** Returns the object with the settings used for calls to setMasterAuth. */
setMasterAuthSettings()182   public UnaryCallSettings<SetMasterAuthRequest, Operation> setMasterAuthSettings() {
183     return ((ClusterManagerStubSettings) getStubSettings()).setMasterAuthSettings();
184   }
185 
186   /** Returns the object with the settings used for calls to deleteCluster. */
deleteClusterSettings()187   public UnaryCallSettings<DeleteClusterRequest, Operation> deleteClusterSettings() {
188     return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings();
189   }
190 
191   /** Returns the object with the settings used for calls to listOperations. */
listOperationsSettings()192   public UnaryCallSettings<ListOperationsRequest, ListOperationsResponse> listOperationsSettings() {
193     return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings();
194   }
195 
196   /** Returns the object with the settings used for calls to get. */
getOperationSettings()197   public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() {
198     return ((ClusterManagerStubSettings) getStubSettings()).getOperationSettings();
199   }
200 
201   /** Returns the object with the settings used for calls to cancel. */
cancelOperationSettings()202   public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() {
203     return ((ClusterManagerStubSettings) getStubSettings()).cancelOperationSettings();
204   }
205 
206   /** Returns the object with the settings used for calls to getServerConfig. */
getServerConfigSettings()207   public UnaryCallSettings<GetServerConfigRequest, ServerConfig> getServerConfigSettings() {
208     return ((ClusterManagerStubSettings) getStubSettings()).getServerConfigSettings();
209   }
210 
211   /** Returns the object with the settings used for calls to getJSONWebKeys. */
getJSONWebKeysSettings()212   public UnaryCallSettings<GetJSONWebKeysRequest, GetJSONWebKeysResponse> getJSONWebKeysSettings() {
213     return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings();
214   }
215 
216   /** Returns the object with the settings used for calls to listNodePools. */
listNodePoolsSettings()217   public UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsSettings() {
218     return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings();
219   }
220 
221   /** Returns the object with the settings used for calls to getNodePool. */
getNodePoolSettings()222   public UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings() {
223     return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings();
224   }
225 
226   /** Returns the object with the settings used for calls to createNodePool. */
createNodePoolSettings()227   public UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSettings() {
228     return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings();
229   }
230 
231   /** Returns the object with the settings used for calls to deleteNodePool. */
deleteNodePoolSettings()232   public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
233     return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
234   }
235 
236   /** Returns the object with the settings used for calls to completeNodePoolUpgrade. */
237   public UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings()238       completeNodePoolUpgradeSettings() {
239     return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings();
240   }
241 
242   /** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
243   public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings()244       rollbackNodePoolUpgradeSettings() {
245     return ((ClusterManagerStubSettings) getStubSettings()).rollbackNodePoolUpgradeSettings();
246   }
247 
248   /** Returns the object with the settings used for calls to setNodePoolManagement. */
249   public UnaryCallSettings<SetNodePoolManagementRequest, Operation>
setNodePoolManagementSettings()250       setNodePoolManagementSettings() {
251     return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolManagementSettings();
252   }
253 
254   /** Returns the object with the settings used for calls to setLabels. */
setLabelsSettings()255   public UnaryCallSettings<SetLabelsRequest, Operation> setLabelsSettings() {
256     return ((ClusterManagerStubSettings) getStubSettings()).setLabelsSettings();
257   }
258 
259   /** Returns the object with the settings used for calls to setLegacyAbac. */
setLegacyAbacSettings()260   public UnaryCallSettings<SetLegacyAbacRequest, Operation> setLegacyAbacSettings() {
261     return ((ClusterManagerStubSettings) getStubSettings()).setLegacyAbacSettings();
262   }
263 
264   /** Returns the object with the settings used for calls to startIPRotation. */
startIPRotationSettings()265   public UnaryCallSettings<StartIPRotationRequest, Operation> startIPRotationSettings() {
266     return ((ClusterManagerStubSettings) getStubSettings()).startIPRotationSettings();
267   }
268 
269   /** Returns the object with the settings used for calls to completeIPRotation. */
completeIPRotationSettings()270   public UnaryCallSettings<CompleteIPRotationRequest, Operation> completeIPRotationSettings() {
271     return ((ClusterManagerStubSettings) getStubSettings()).completeIPRotationSettings();
272   }
273 
274   /** Returns the object with the settings used for calls to setNodePoolSize. */
setNodePoolSizeSettings()275   public UnaryCallSettings<SetNodePoolSizeRequest, Operation> setNodePoolSizeSettings() {
276     return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolSizeSettings();
277   }
278 
279   /** Returns the object with the settings used for calls to setNetworkPolicy. */
setNetworkPolicySettings()280   public UnaryCallSettings<SetNetworkPolicyRequest, Operation> setNetworkPolicySettings() {
281     return ((ClusterManagerStubSettings) getStubSettings()).setNetworkPolicySettings();
282   }
283 
284   /** Returns the object with the settings used for calls to setMaintenancePolicy. */
setMaintenancePolicySettings()285   public UnaryCallSettings<SetMaintenancePolicyRequest, Operation> setMaintenancePolicySettings() {
286     return ((ClusterManagerStubSettings) getStubSettings()).setMaintenancePolicySettings();
287   }
288 
289   /** Returns the object with the settings used for calls to listUsableSubnetworks. */
290   public PagedCallSettings<
291           ListUsableSubnetworksRequest,
292           ListUsableSubnetworksResponse,
293           ListUsableSubnetworksPagedResponse>
listUsableSubnetworksSettings()294       listUsableSubnetworksSettings() {
295     return ((ClusterManagerStubSettings) getStubSettings()).listUsableSubnetworksSettings();
296   }
297 
create(ClusterManagerStubSettings stub)298   public static final ClusterManagerSettings create(ClusterManagerStubSettings stub)
299       throws IOException {
300     return new ClusterManagerSettings.Builder(stub.toBuilder()).build();
301   }
302 
303   /** Returns a builder for the default ExecutorProvider for this service. */
defaultExecutorProviderBuilder()304   public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
305     return ClusterManagerStubSettings.defaultExecutorProviderBuilder();
306   }
307 
308   /** Returns the default service endpoint. */
getDefaultEndpoint()309   public static String getDefaultEndpoint() {
310     return ClusterManagerStubSettings.getDefaultEndpoint();
311   }
312 
313   /** Returns the default service scopes. */
getDefaultServiceScopes()314   public static List<String> getDefaultServiceScopes() {
315     return ClusterManagerStubSettings.getDefaultServiceScopes();
316   }
317 
318   /** Returns a builder for the default credentials for this service. */
defaultCredentialsProviderBuilder()319   public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
320     return ClusterManagerStubSettings.defaultCredentialsProviderBuilder();
321   }
322 
323   /** Returns a builder for the default ChannelProvider for this service. */
defaultGrpcTransportProviderBuilder()324   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
325     return ClusterManagerStubSettings.defaultGrpcTransportProviderBuilder();
326   }
327 
defaultTransportChannelProvider()328   public static TransportChannelProvider defaultTransportChannelProvider() {
329     return ClusterManagerStubSettings.defaultTransportChannelProvider();
330   }
331 
332   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
defaultApiClientHeaderProviderBuilder()333   public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
334     return ClusterManagerStubSettings.defaultApiClientHeaderProviderBuilder();
335   }
336 
337   /** Returns a new builder for this class. */
newBuilder()338   public static Builder newBuilder() {
339     return Builder.createDefault();
340   }
341 
342   /** Returns a new builder for this class. */
newBuilder(ClientContext clientContext)343   public static Builder newBuilder(ClientContext clientContext) {
344     return new Builder(clientContext);
345   }
346 
347   /** Returns a builder containing all the values of this settings class. */
toBuilder()348   public Builder toBuilder() {
349     return new Builder(this);
350   }
351 
ClusterManagerSettings(Builder settingsBuilder)352   protected ClusterManagerSettings(Builder settingsBuilder) throws IOException {
353     super(settingsBuilder);
354   }
355 
356   /** Builder for ClusterManagerSettings. */
357   public static class Builder extends ClientSettings.Builder<ClusterManagerSettings, Builder> {
358 
Builder()359     protected Builder() throws IOException {
360       this(((ClientContext) null));
361     }
362 
Builder(ClientContext clientContext)363     protected Builder(ClientContext clientContext) {
364       super(ClusterManagerStubSettings.newBuilder(clientContext));
365     }
366 
Builder(ClusterManagerSettings settings)367     protected Builder(ClusterManagerSettings settings) {
368       super(settings.getStubSettings().toBuilder());
369     }
370 
Builder(ClusterManagerStubSettings.Builder stubSettings)371     protected Builder(ClusterManagerStubSettings.Builder stubSettings) {
372       super(stubSettings);
373     }
374 
createDefault()375     private static Builder createDefault() {
376       return new Builder(ClusterManagerStubSettings.newBuilder());
377     }
378 
getStubSettingsBuilder()379     public ClusterManagerStubSettings.Builder getStubSettingsBuilder() {
380       return ((ClusterManagerStubSettings.Builder) getStubSettings());
381     }
382 
383     /**
384      * Applies the given settings updater function to all of the unary API methods in this service.
385      *
386      * <p>Note: This method does not support applying settings to streaming methods.
387      */
applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater)388     public Builder applyToAllUnaryMethods(
389         ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
390       super.applyToAllUnaryMethods(
391           getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
392       return this;
393     }
394 
395     /** Returns the builder for the settings used for calls to listClusters. */
396     public UnaryCallSettings.Builder<ListClustersRequest, ListClustersResponse>
listClustersSettings()397         listClustersSettings() {
398       return getStubSettingsBuilder().listClustersSettings();
399     }
400 
401     /** Returns the builder for the settings used for calls to getCluster. */
getClusterSettings()402     public UnaryCallSettings.Builder<GetClusterRequest, Cluster> getClusterSettings() {
403       return getStubSettingsBuilder().getClusterSettings();
404     }
405 
406     /** Returns the builder for the settings used for calls to createCluster. */
createClusterSettings()407     public UnaryCallSettings.Builder<CreateClusterRequest, Operation> createClusterSettings() {
408       return getStubSettingsBuilder().createClusterSettings();
409     }
410 
411     /** Returns the builder for the settings used for calls to updateCluster. */
updateClusterSettings()412     public UnaryCallSettings.Builder<UpdateClusterRequest, Operation> updateClusterSettings() {
413       return getStubSettingsBuilder().updateClusterSettings();
414     }
415 
416     /** Returns the builder for the settings used for calls to updateNodePool. */
updateNodePoolSettings()417     public UnaryCallSettings.Builder<UpdateNodePoolRequest, Operation> updateNodePoolSettings() {
418       return getStubSettingsBuilder().updateNodePoolSettings();
419     }
420 
421     /** Returns the builder for the settings used for calls to setNodePoolAutoscaling. */
422     public UnaryCallSettings.Builder<SetNodePoolAutoscalingRequest, Operation>
setNodePoolAutoscalingSettings()423         setNodePoolAutoscalingSettings() {
424       return getStubSettingsBuilder().setNodePoolAutoscalingSettings();
425     }
426 
427     /** Returns the builder for the settings used for calls to setLoggingService. */
428     public UnaryCallSettings.Builder<SetLoggingServiceRequest, Operation>
setLoggingServiceSettings()429         setLoggingServiceSettings() {
430       return getStubSettingsBuilder().setLoggingServiceSettings();
431     }
432 
433     /** Returns the builder for the settings used for calls to setMonitoringService. */
434     public UnaryCallSettings.Builder<SetMonitoringServiceRequest, Operation>
setMonitoringServiceSettings()435         setMonitoringServiceSettings() {
436       return getStubSettingsBuilder().setMonitoringServiceSettings();
437     }
438 
439     /** Returns the builder for the settings used for calls to setAddonsConfig. */
setAddonsConfigSettings()440     public UnaryCallSettings.Builder<SetAddonsConfigRequest, Operation> setAddonsConfigSettings() {
441       return getStubSettingsBuilder().setAddonsConfigSettings();
442     }
443 
444     /**
445      * Returns the builder for the settings used for calls to setLocations.
446      *
447      * @deprecated This method is deprecated and will be removed in the next major version update.
448      */
449     @Deprecated
setLocationsSettings()450     public UnaryCallSettings.Builder<SetLocationsRequest, Operation> setLocationsSettings() {
451       return getStubSettingsBuilder().setLocationsSettings();
452     }
453 
454     /** Returns the builder for the settings used for calls to updateMaster. */
updateMasterSettings()455     public UnaryCallSettings.Builder<UpdateMasterRequest, Operation> updateMasterSettings() {
456       return getStubSettingsBuilder().updateMasterSettings();
457     }
458 
459     /** Returns the builder for the settings used for calls to setMasterAuth. */
setMasterAuthSettings()460     public UnaryCallSettings.Builder<SetMasterAuthRequest, Operation> setMasterAuthSettings() {
461       return getStubSettingsBuilder().setMasterAuthSettings();
462     }
463 
464     /** Returns the builder for the settings used for calls to deleteCluster. */
deleteClusterSettings()465     public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterSettings() {
466       return getStubSettingsBuilder().deleteClusterSettings();
467     }
468 
469     /** Returns the builder for the settings used for calls to listOperations. */
470     public UnaryCallSettings.Builder<ListOperationsRequest, ListOperationsResponse>
listOperationsSettings()471         listOperationsSettings() {
472       return getStubSettingsBuilder().listOperationsSettings();
473     }
474 
475     /** Returns the builder for the settings used for calls to get. */
getOperationSettings()476     public UnaryCallSettings.Builder<GetOperationRequest, Operation> getOperationSettings() {
477       return getStubSettingsBuilder().getOperationSettings();
478     }
479 
480     /** Returns the builder for the settings used for calls to cancel. */
cancelOperationSettings()481     public UnaryCallSettings.Builder<CancelOperationRequest, Empty> cancelOperationSettings() {
482       return getStubSettingsBuilder().cancelOperationSettings();
483     }
484 
485     /** Returns the builder for the settings used for calls to getServerConfig. */
486     public UnaryCallSettings.Builder<GetServerConfigRequest, ServerConfig>
getServerConfigSettings()487         getServerConfigSettings() {
488       return getStubSettingsBuilder().getServerConfigSettings();
489     }
490 
491     /** Returns the builder for the settings used for calls to getJSONWebKeys. */
492     public UnaryCallSettings.Builder<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
getJSONWebKeysSettings()493         getJSONWebKeysSettings() {
494       return getStubSettingsBuilder().getJSONWebKeysSettings();
495     }
496 
497     /** Returns the builder for the settings used for calls to listNodePools. */
498     public UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
listNodePoolsSettings()499         listNodePoolsSettings() {
500       return getStubSettingsBuilder().listNodePoolsSettings();
501     }
502 
503     /** Returns the builder for the settings used for calls to getNodePool. */
getNodePoolSettings()504     public UnaryCallSettings.Builder<GetNodePoolRequest, NodePool> getNodePoolSettings() {
505       return getStubSettingsBuilder().getNodePoolSettings();
506     }
507 
508     /** Returns the builder for the settings used for calls to createNodePool. */
createNodePoolSettings()509     public UnaryCallSettings.Builder<CreateNodePoolRequest, Operation> createNodePoolSettings() {
510       return getStubSettingsBuilder().createNodePoolSettings();
511     }
512 
513     /** Returns the builder for the settings used for calls to deleteNodePool. */
deleteNodePoolSettings()514     public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
515       return getStubSettingsBuilder().deleteNodePoolSettings();
516     }
517 
518     /** Returns the builder for the settings used for calls to completeNodePoolUpgrade. */
519     public UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings()520         completeNodePoolUpgradeSettings() {
521       return getStubSettingsBuilder().completeNodePoolUpgradeSettings();
522     }
523 
524     /** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
525     public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings()526         rollbackNodePoolUpgradeSettings() {
527       return getStubSettingsBuilder().rollbackNodePoolUpgradeSettings();
528     }
529 
530     /** Returns the builder for the settings used for calls to setNodePoolManagement. */
531     public UnaryCallSettings.Builder<SetNodePoolManagementRequest, Operation>
setNodePoolManagementSettings()532         setNodePoolManagementSettings() {
533       return getStubSettingsBuilder().setNodePoolManagementSettings();
534     }
535 
536     /** Returns the builder for the settings used for calls to setLabels. */
setLabelsSettings()537     public UnaryCallSettings.Builder<SetLabelsRequest, Operation> setLabelsSettings() {
538       return getStubSettingsBuilder().setLabelsSettings();
539     }
540 
541     /** Returns the builder for the settings used for calls to setLegacyAbac. */
setLegacyAbacSettings()542     public UnaryCallSettings.Builder<SetLegacyAbacRequest, Operation> setLegacyAbacSettings() {
543       return getStubSettingsBuilder().setLegacyAbacSettings();
544     }
545 
546     /** Returns the builder for the settings used for calls to startIPRotation. */
startIPRotationSettings()547     public UnaryCallSettings.Builder<StartIPRotationRequest, Operation> startIPRotationSettings() {
548       return getStubSettingsBuilder().startIPRotationSettings();
549     }
550 
551     /** Returns the builder for the settings used for calls to completeIPRotation. */
552     public UnaryCallSettings.Builder<CompleteIPRotationRequest, Operation>
completeIPRotationSettings()553         completeIPRotationSettings() {
554       return getStubSettingsBuilder().completeIPRotationSettings();
555     }
556 
557     /** Returns the builder for the settings used for calls to setNodePoolSize. */
setNodePoolSizeSettings()558     public UnaryCallSettings.Builder<SetNodePoolSizeRequest, Operation> setNodePoolSizeSettings() {
559       return getStubSettingsBuilder().setNodePoolSizeSettings();
560     }
561 
562     /** Returns the builder for the settings used for calls to setNetworkPolicy. */
563     public UnaryCallSettings.Builder<SetNetworkPolicyRequest, Operation>
setNetworkPolicySettings()564         setNetworkPolicySettings() {
565       return getStubSettingsBuilder().setNetworkPolicySettings();
566     }
567 
568     /** Returns the builder for the settings used for calls to setMaintenancePolicy. */
569     public UnaryCallSettings.Builder<SetMaintenancePolicyRequest, Operation>
setMaintenancePolicySettings()570         setMaintenancePolicySettings() {
571       return getStubSettingsBuilder().setMaintenancePolicySettings();
572     }
573 
574     /** Returns the builder for the settings used for calls to listUsableSubnetworks. */
575     public PagedCallSettings.Builder<
576             ListUsableSubnetworksRequest,
577             ListUsableSubnetworksResponse,
578             ListUsableSubnetworksPagedResponse>
listUsableSubnetworksSettings()579         listUsableSubnetworksSettings() {
580       return getStubSettingsBuilder().listUsableSubnetworksSettings();
581     }
582 
583     @Override
build()584     public ClusterManagerSettings build() throws IOException {
585       return new ClusterManagerSettings(this);
586     }
587   }
588 }
589