• 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.automl.v1beta1;
18 
19 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListColumnSpecsPagedResponse;
20 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListDatasetsPagedResponse;
21 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelEvaluationsPagedResponse;
22 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelsPagedResponse;
23 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListTableSpecsPagedResponse;
24 
25 import com.google.api.core.ApiFunction;
26 import com.google.api.core.BetaApi;
27 import com.google.api.gax.core.GoogleCredentialsProvider;
28 import com.google.api.gax.core.InstantiatingExecutorProvider;
29 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
30 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
31 import com.google.api.gax.rpc.ApiClientHeaderProvider;
32 import com.google.api.gax.rpc.ClientContext;
33 import com.google.api.gax.rpc.ClientSettings;
34 import com.google.api.gax.rpc.OperationCallSettings;
35 import com.google.api.gax.rpc.PagedCallSettings;
36 import com.google.api.gax.rpc.TransportChannelProvider;
37 import com.google.api.gax.rpc.UnaryCallSettings;
38 import com.google.cloud.automl.v1beta1.stub.AutoMlStubSettings;
39 import com.google.longrunning.Operation;
40 import com.google.protobuf.Empty;
41 import java.io.IOException;
42 import java.util.List;
43 import javax.annotation.Generated;
44 
45 // AUTO-GENERATED DOCUMENTATION AND CLASS.
46 /**
47  * Settings class to configure an instance of {@link AutoMlClient}.
48  *
49  * <p>The default instance has everything set to sensible defaults:
50  *
51  * <ul>
52  *   <li>The default service address (automl.googleapis.com) and default port (443) are used.
53  *   <li>Credentials are acquired automatically through Application Default Credentials.
54  *   <li>Retries are configured for idempotent methods but not for non-idempotent methods.
55  * </ul>
56  *
57  * <p>The builder of this class is recursive, so contained classes are themselves builders. When
58  * build() is called, the tree of builders is called to create the complete settings object.
59  *
60  * <p>For example, to set the total timeout of createDataset to 30 seconds:
61  *
62  * <pre>{@code
63  * // This snippet has been automatically generated and should be regarded as a code template only.
64  * // It will require modifications to work:
65  * // - It may require correct/in-range values for request initialization.
66  * // - It may require specifying regional endpoints when creating the service client as shown in
67  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
68  * AutoMlSettings.Builder autoMlSettingsBuilder = AutoMlSettings.newBuilder();
69  * autoMlSettingsBuilder
70  *     .createDatasetSettings()
71  *     .setRetrySettings(
72  *         autoMlSettingsBuilder
73  *             .createDatasetSettings()
74  *             .getRetrySettings()
75  *             .toBuilder()
76  *             .setTotalTimeout(Duration.ofSeconds(30))
77  *             .build());
78  * AutoMlSettings autoMlSettings = autoMlSettingsBuilder.build();
79  * }</pre>
80  */
81 @BetaApi
82 @Generated("by gapic-generator-java")
83 public class AutoMlSettings extends ClientSettings<AutoMlSettings> {
84 
85   /** Returns the object with the settings used for calls to createDataset. */
createDatasetSettings()86   public UnaryCallSettings<CreateDatasetRequest, Dataset> createDatasetSettings() {
87     return ((AutoMlStubSettings) getStubSettings()).createDatasetSettings();
88   }
89 
90   /** Returns the object with the settings used for calls to getDataset. */
getDatasetSettings()91   public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
92     return ((AutoMlStubSettings) getStubSettings()).getDatasetSettings();
93   }
94 
95   /** Returns the object with the settings used for calls to listDatasets. */
96   public PagedCallSettings<ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
listDatasetsSettings()97       listDatasetsSettings() {
98     return ((AutoMlStubSettings) getStubSettings()).listDatasetsSettings();
99   }
100 
101   /** Returns the object with the settings used for calls to updateDataset. */
updateDatasetSettings()102   public UnaryCallSettings<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
103     return ((AutoMlStubSettings) getStubSettings()).updateDatasetSettings();
104   }
105 
106   /** Returns the object with the settings used for calls to deleteDataset. */
deleteDatasetSettings()107   public UnaryCallSettings<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
108     return ((AutoMlStubSettings) getStubSettings()).deleteDatasetSettings();
109   }
110 
111   /** Returns the object with the settings used for calls to deleteDataset. */
112   public OperationCallSettings<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings()113       deleteDatasetOperationSettings() {
114     return ((AutoMlStubSettings) getStubSettings()).deleteDatasetOperationSettings();
115   }
116 
117   /** Returns the object with the settings used for calls to importData. */
importDataSettings()118   public UnaryCallSettings<ImportDataRequest, Operation> importDataSettings() {
119     return ((AutoMlStubSettings) getStubSettings()).importDataSettings();
120   }
121 
122   /** Returns the object with the settings used for calls to importData. */
123   public OperationCallSettings<ImportDataRequest, Empty, OperationMetadata>
importDataOperationSettings()124       importDataOperationSettings() {
125     return ((AutoMlStubSettings) getStubSettings()).importDataOperationSettings();
126   }
127 
128   /** Returns the object with the settings used for calls to exportData. */
exportDataSettings()129   public UnaryCallSettings<ExportDataRequest, Operation> exportDataSettings() {
130     return ((AutoMlStubSettings) getStubSettings()).exportDataSettings();
131   }
132 
133   /** Returns the object with the settings used for calls to exportData. */
134   public OperationCallSettings<ExportDataRequest, Empty, OperationMetadata>
exportDataOperationSettings()135       exportDataOperationSettings() {
136     return ((AutoMlStubSettings) getStubSettings()).exportDataOperationSettings();
137   }
138 
139   /** Returns the object with the settings used for calls to getAnnotationSpec. */
getAnnotationSpecSettings()140   public UnaryCallSettings<GetAnnotationSpecRequest, AnnotationSpec> getAnnotationSpecSettings() {
141     return ((AutoMlStubSettings) getStubSettings()).getAnnotationSpecSettings();
142   }
143 
144   /** Returns the object with the settings used for calls to getTableSpec. */
getTableSpecSettings()145   public UnaryCallSettings<GetTableSpecRequest, TableSpec> getTableSpecSettings() {
146     return ((AutoMlStubSettings) getStubSettings()).getTableSpecSettings();
147   }
148 
149   /** Returns the object with the settings used for calls to listTableSpecs. */
150   public PagedCallSettings<
151           ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
listTableSpecsSettings()152       listTableSpecsSettings() {
153     return ((AutoMlStubSettings) getStubSettings()).listTableSpecsSettings();
154   }
155 
156   /** Returns the object with the settings used for calls to updateTableSpec. */
updateTableSpecSettings()157   public UnaryCallSettings<UpdateTableSpecRequest, TableSpec> updateTableSpecSettings() {
158     return ((AutoMlStubSettings) getStubSettings()).updateTableSpecSettings();
159   }
160 
161   /** Returns the object with the settings used for calls to getColumnSpec. */
getColumnSpecSettings()162   public UnaryCallSettings<GetColumnSpecRequest, ColumnSpec> getColumnSpecSettings() {
163     return ((AutoMlStubSettings) getStubSettings()).getColumnSpecSettings();
164   }
165 
166   /** Returns the object with the settings used for calls to listColumnSpecs. */
167   public PagedCallSettings<
168           ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
listColumnSpecsSettings()169       listColumnSpecsSettings() {
170     return ((AutoMlStubSettings) getStubSettings()).listColumnSpecsSettings();
171   }
172 
173   /** Returns the object with the settings used for calls to updateColumnSpec. */
updateColumnSpecSettings()174   public UnaryCallSettings<UpdateColumnSpecRequest, ColumnSpec> updateColumnSpecSettings() {
175     return ((AutoMlStubSettings) getStubSettings()).updateColumnSpecSettings();
176   }
177 
178   /** Returns the object with the settings used for calls to createModel. */
createModelSettings()179   public UnaryCallSettings<CreateModelRequest, Operation> createModelSettings() {
180     return ((AutoMlStubSettings) getStubSettings()).createModelSettings();
181   }
182 
183   /** Returns the object with the settings used for calls to createModel. */
184   public OperationCallSettings<CreateModelRequest, Model, OperationMetadata>
createModelOperationSettings()185       createModelOperationSettings() {
186     return ((AutoMlStubSettings) getStubSettings()).createModelOperationSettings();
187   }
188 
189   /** Returns the object with the settings used for calls to getModel. */
getModelSettings()190   public UnaryCallSettings<GetModelRequest, Model> getModelSettings() {
191     return ((AutoMlStubSettings) getStubSettings()).getModelSettings();
192   }
193 
194   /** Returns the object with the settings used for calls to listModels. */
195   public PagedCallSettings<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings()196       listModelsSettings() {
197     return ((AutoMlStubSettings) getStubSettings()).listModelsSettings();
198   }
199 
200   /** Returns the object with the settings used for calls to deleteModel. */
deleteModelSettings()201   public UnaryCallSettings<DeleteModelRequest, Operation> deleteModelSettings() {
202     return ((AutoMlStubSettings) getStubSettings()).deleteModelSettings();
203   }
204 
205   /** Returns the object with the settings used for calls to deleteModel. */
206   public OperationCallSettings<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings()207       deleteModelOperationSettings() {
208     return ((AutoMlStubSettings) getStubSettings()).deleteModelOperationSettings();
209   }
210 
211   /** Returns the object with the settings used for calls to deployModel. */
deployModelSettings()212   public UnaryCallSettings<DeployModelRequest, Operation> deployModelSettings() {
213     return ((AutoMlStubSettings) getStubSettings()).deployModelSettings();
214   }
215 
216   /** Returns the object with the settings used for calls to deployModel. */
217   public OperationCallSettings<DeployModelRequest, Empty, OperationMetadata>
deployModelOperationSettings()218       deployModelOperationSettings() {
219     return ((AutoMlStubSettings) getStubSettings()).deployModelOperationSettings();
220   }
221 
222   /** Returns the object with the settings used for calls to undeployModel. */
undeployModelSettings()223   public UnaryCallSettings<UndeployModelRequest, Operation> undeployModelSettings() {
224     return ((AutoMlStubSettings) getStubSettings()).undeployModelSettings();
225   }
226 
227   /** Returns the object with the settings used for calls to undeployModel. */
228   public OperationCallSettings<UndeployModelRequest, Empty, OperationMetadata>
undeployModelOperationSettings()229       undeployModelOperationSettings() {
230     return ((AutoMlStubSettings) getStubSettings()).undeployModelOperationSettings();
231   }
232 
233   /** Returns the object with the settings used for calls to exportModel. */
exportModelSettings()234   public UnaryCallSettings<ExportModelRequest, Operation> exportModelSettings() {
235     return ((AutoMlStubSettings) getStubSettings()).exportModelSettings();
236   }
237 
238   /** Returns the object with the settings used for calls to exportModel. */
239   public OperationCallSettings<ExportModelRequest, Empty, OperationMetadata>
exportModelOperationSettings()240       exportModelOperationSettings() {
241     return ((AutoMlStubSettings) getStubSettings()).exportModelOperationSettings();
242   }
243 
244   /** Returns the object with the settings used for calls to exportEvaluatedExamples. */
245   public UnaryCallSettings<ExportEvaluatedExamplesRequest, Operation>
exportEvaluatedExamplesSettings()246       exportEvaluatedExamplesSettings() {
247     return ((AutoMlStubSettings) getStubSettings()).exportEvaluatedExamplesSettings();
248   }
249 
250   /** Returns the object with the settings used for calls to exportEvaluatedExamples. */
251   public OperationCallSettings<ExportEvaluatedExamplesRequest, Empty, OperationMetadata>
exportEvaluatedExamplesOperationSettings()252       exportEvaluatedExamplesOperationSettings() {
253     return ((AutoMlStubSettings) getStubSettings()).exportEvaluatedExamplesOperationSettings();
254   }
255 
256   /** Returns the object with the settings used for calls to getModelEvaluation. */
257   public UnaryCallSettings<GetModelEvaluationRequest, ModelEvaluation>
getModelEvaluationSettings()258       getModelEvaluationSettings() {
259     return ((AutoMlStubSettings) getStubSettings()).getModelEvaluationSettings();
260   }
261 
262   /** Returns the object with the settings used for calls to listModelEvaluations. */
263   public PagedCallSettings<
264           ListModelEvaluationsRequest,
265           ListModelEvaluationsResponse,
266           ListModelEvaluationsPagedResponse>
listModelEvaluationsSettings()267       listModelEvaluationsSettings() {
268     return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings();
269   }
270 
create(AutoMlStubSettings stub)271   public static final AutoMlSettings create(AutoMlStubSettings stub) throws IOException {
272     return new AutoMlSettings.Builder(stub.toBuilder()).build();
273   }
274 
275   /** Returns a builder for the default ExecutorProvider for this service. */
defaultExecutorProviderBuilder()276   public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
277     return AutoMlStubSettings.defaultExecutorProviderBuilder();
278   }
279 
280   /** Returns the default service endpoint. */
getDefaultEndpoint()281   public static String getDefaultEndpoint() {
282     return AutoMlStubSettings.getDefaultEndpoint();
283   }
284 
285   /** Returns the default service scopes. */
getDefaultServiceScopes()286   public static List<String> getDefaultServiceScopes() {
287     return AutoMlStubSettings.getDefaultServiceScopes();
288   }
289 
290   /** Returns a builder for the default credentials for this service. */
defaultCredentialsProviderBuilder()291   public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
292     return AutoMlStubSettings.defaultCredentialsProviderBuilder();
293   }
294 
295   /** Returns a builder for the default gRPC ChannelProvider for this service. */
defaultGrpcTransportProviderBuilder()296   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
297     return AutoMlStubSettings.defaultGrpcTransportProviderBuilder();
298   }
299 
300   /** Returns a builder for the default REST ChannelProvider for this service. */
301   @BetaApi
302   public static InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()303       defaultHttpJsonTransportProviderBuilder() {
304     return AutoMlStubSettings.defaultHttpJsonTransportProviderBuilder();
305   }
306 
defaultTransportChannelProvider()307   public static TransportChannelProvider defaultTransportChannelProvider() {
308     return AutoMlStubSettings.defaultTransportChannelProvider();
309   }
310 
311   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
defaultApiClientHeaderProviderBuilder()312   public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
313     return AutoMlStubSettings.defaultApiClientHeaderProviderBuilder();
314   }
315 
316   /** Returns a new gRPC builder for this class. */
newBuilder()317   public static Builder newBuilder() {
318     return Builder.createDefault();
319   }
320 
321   /** Returns a new REST builder for this class. */
322   @BetaApi
newHttpJsonBuilder()323   public static Builder newHttpJsonBuilder() {
324     return Builder.createHttpJsonDefault();
325   }
326 
327   /** Returns a new builder for this class. */
newBuilder(ClientContext clientContext)328   public static Builder newBuilder(ClientContext clientContext) {
329     return new Builder(clientContext);
330   }
331 
332   /** Returns a builder containing all the values of this settings class. */
toBuilder()333   public Builder toBuilder() {
334     return new Builder(this);
335   }
336 
AutoMlSettings(Builder settingsBuilder)337   protected AutoMlSettings(Builder settingsBuilder) throws IOException {
338     super(settingsBuilder);
339   }
340 
341   /** Builder for AutoMlSettings. */
342   public static class Builder extends ClientSettings.Builder<AutoMlSettings, Builder> {
343 
Builder()344     protected Builder() throws IOException {
345       this(((ClientContext) null));
346     }
347 
Builder(ClientContext clientContext)348     protected Builder(ClientContext clientContext) {
349       super(AutoMlStubSettings.newBuilder(clientContext));
350     }
351 
Builder(AutoMlSettings settings)352     protected Builder(AutoMlSettings settings) {
353       super(settings.getStubSettings().toBuilder());
354     }
355 
Builder(AutoMlStubSettings.Builder stubSettings)356     protected Builder(AutoMlStubSettings.Builder stubSettings) {
357       super(stubSettings);
358     }
359 
createDefault()360     private static Builder createDefault() {
361       return new Builder(AutoMlStubSettings.newBuilder());
362     }
363 
364     @BetaApi
createHttpJsonDefault()365     private static Builder createHttpJsonDefault() {
366       return new Builder(AutoMlStubSettings.newHttpJsonBuilder());
367     }
368 
getStubSettingsBuilder()369     public AutoMlStubSettings.Builder getStubSettingsBuilder() {
370       return ((AutoMlStubSettings.Builder) getStubSettings());
371     }
372 
373     /**
374      * Applies the given settings updater function to all of the unary API methods in this service.
375      *
376      * <p>Note: This method does not support applying settings to streaming methods.
377      */
applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater)378     public Builder applyToAllUnaryMethods(
379         ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
380       super.applyToAllUnaryMethods(
381           getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
382       return this;
383     }
384 
385     /** Returns the builder for the settings used for calls to createDataset. */
createDatasetSettings()386     public UnaryCallSettings.Builder<CreateDatasetRequest, Dataset> createDatasetSettings() {
387       return getStubSettingsBuilder().createDatasetSettings();
388     }
389 
390     /** Returns the builder for the settings used for calls to getDataset. */
getDatasetSettings()391     public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings() {
392       return getStubSettingsBuilder().getDatasetSettings();
393     }
394 
395     /** Returns the builder for the settings used for calls to listDatasets. */
396     public PagedCallSettings.Builder<
397             ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
listDatasetsSettings()398         listDatasetsSettings() {
399       return getStubSettingsBuilder().listDatasetsSettings();
400     }
401 
402     /** Returns the builder for the settings used for calls to updateDataset. */
updateDatasetSettings()403     public UnaryCallSettings.Builder<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
404       return getStubSettingsBuilder().updateDatasetSettings();
405     }
406 
407     /** Returns the builder for the settings used for calls to deleteDataset. */
deleteDatasetSettings()408     public UnaryCallSettings.Builder<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
409       return getStubSettingsBuilder().deleteDatasetSettings();
410     }
411 
412     /** Returns the builder for the settings used for calls to deleteDataset. */
413     public OperationCallSettings.Builder<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings()414         deleteDatasetOperationSettings() {
415       return getStubSettingsBuilder().deleteDatasetOperationSettings();
416     }
417 
418     /** Returns the builder for the settings used for calls to importData. */
importDataSettings()419     public UnaryCallSettings.Builder<ImportDataRequest, Operation> importDataSettings() {
420       return getStubSettingsBuilder().importDataSettings();
421     }
422 
423     /** Returns the builder for the settings used for calls to importData. */
424     public OperationCallSettings.Builder<ImportDataRequest, Empty, OperationMetadata>
importDataOperationSettings()425         importDataOperationSettings() {
426       return getStubSettingsBuilder().importDataOperationSettings();
427     }
428 
429     /** Returns the builder for the settings used for calls to exportData. */
exportDataSettings()430     public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSettings() {
431       return getStubSettingsBuilder().exportDataSettings();
432     }
433 
434     /** Returns the builder for the settings used for calls to exportData. */
435     public OperationCallSettings.Builder<ExportDataRequest, Empty, OperationMetadata>
exportDataOperationSettings()436         exportDataOperationSettings() {
437       return getStubSettingsBuilder().exportDataOperationSettings();
438     }
439 
440     /** Returns the builder for the settings used for calls to getAnnotationSpec. */
441     public UnaryCallSettings.Builder<GetAnnotationSpecRequest, AnnotationSpec>
getAnnotationSpecSettings()442         getAnnotationSpecSettings() {
443       return getStubSettingsBuilder().getAnnotationSpecSettings();
444     }
445 
446     /** Returns the builder for the settings used for calls to getTableSpec. */
getTableSpecSettings()447     public UnaryCallSettings.Builder<GetTableSpecRequest, TableSpec> getTableSpecSettings() {
448       return getStubSettingsBuilder().getTableSpecSettings();
449     }
450 
451     /** Returns the builder for the settings used for calls to listTableSpecs. */
452     public PagedCallSettings.Builder<
453             ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
listTableSpecsSettings()454         listTableSpecsSettings() {
455       return getStubSettingsBuilder().listTableSpecsSettings();
456     }
457 
458     /** Returns the builder for the settings used for calls to updateTableSpec. */
updateTableSpecSettings()459     public UnaryCallSettings.Builder<UpdateTableSpecRequest, TableSpec> updateTableSpecSettings() {
460       return getStubSettingsBuilder().updateTableSpecSettings();
461     }
462 
463     /** Returns the builder for the settings used for calls to getColumnSpec. */
getColumnSpecSettings()464     public UnaryCallSettings.Builder<GetColumnSpecRequest, ColumnSpec> getColumnSpecSettings() {
465       return getStubSettingsBuilder().getColumnSpecSettings();
466     }
467 
468     /** Returns the builder for the settings used for calls to listColumnSpecs. */
469     public PagedCallSettings.Builder<
470             ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
listColumnSpecsSettings()471         listColumnSpecsSettings() {
472       return getStubSettingsBuilder().listColumnSpecsSettings();
473     }
474 
475     /** Returns the builder for the settings used for calls to updateColumnSpec. */
476     public UnaryCallSettings.Builder<UpdateColumnSpecRequest, ColumnSpec>
updateColumnSpecSettings()477         updateColumnSpecSettings() {
478       return getStubSettingsBuilder().updateColumnSpecSettings();
479     }
480 
481     /** Returns the builder for the settings used for calls to createModel. */
createModelSettings()482     public UnaryCallSettings.Builder<CreateModelRequest, Operation> createModelSettings() {
483       return getStubSettingsBuilder().createModelSettings();
484     }
485 
486     /** Returns the builder for the settings used for calls to createModel. */
487     public OperationCallSettings.Builder<CreateModelRequest, Model, OperationMetadata>
createModelOperationSettings()488         createModelOperationSettings() {
489       return getStubSettingsBuilder().createModelOperationSettings();
490     }
491 
492     /** Returns the builder for the settings used for calls to getModel. */
getModelSettings()493     public UnaryCallSettings.Builder<GetModelRequest, Model> getModelSettings() {
494       return getStubSettingsBuilder().getModelSettings();
495     }
496 
497     /** Returns the builder for the settings used for calls to listModels. */
498     public PagedCallSettings.Builder<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings()499         listModelsSettings() {
500       return getStubSettingsBuilder().listModelsSettings();
501     }
502 
503     /** Returns the builder for the settings used for calls to deleteModel. */
deleteModelSettings()504     public UnaryCallSettings.Builder<DeleteModelRequest, Operation> deleteModelSettings() {
505       return getStubSettingsBuilder().deleteModelSettings();
506     }
507 
508     /** Returns the builder for the settings used for calls to deleteModel. */
509     public OperationCallSettings.Builder<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings()510         deleteModelOperationSettings() {
511       return getStubSettingsBuilder().deleteModelOperationSettings();
512     }
513 
514     /** Returns the builder for the settings used for calls to deployModel. */
deployModelSettings()515     public UnaryCallSettings.Builder<DeployModelRequest, Operation> deployModelSettings() {
516       return getStubSettingsBuilder().deployModelSettings();
517     }
518 
519     /** Returns the builder for the settings used for calls to deployModel. */
520     public OperationCallSettings.Builder<DeployModelRequest, Empty, OperationMetadata>
deployModelOperationSettings()521         deployModelOperationSettings() {
522       return getStubSettingsBuilder().deployModelOperationSettings();
523     }
524 
525     /** Returns the builder for the settings used for calls to undeployModel. */
undeployModelSettings()526     public UnaryCallSettings.Builder<UndeployModelRequest, Operation> undeployModelSettings() {
527       return getStubSettingsBuilder().undeployModelSettings();
528     }
529 
530     /** Returns the builder for the settings used for calls to undeployModel. */
531     public OperationCallSettings.Builder<UndeployModelRequest, Empty, OperationMetadata>
undeployModelOperationSettings()532         undeployModelOperationSettings() {
533       return getStubSettingsBuilder().undeployModelOperationSettings();
534     }
535 
536     /** Returns the builder for the settings used for calls to exportModel. */
exportModelSettings()537     public UnaryCallSettings.Builder<ExportModelRequest, Operation> exportModelSettings() {
538       return getStubSettingsBuilder().exportModelSettings();
539     }
540 
541     /** Returns the builder for the settings used for calls to exportModel. */
542     public OperationCallSettings.Builder<ExportModelRequest, Empty, OperationMetadata>
exportModelOperationSettings()543         exportModelOperationSettings() {
544       return getStubSettingsBuilder().exportModelOperationSettings();
545     }
546 
547     /** Returns the builder for the settings used for calls to exportEvaluatedExamples. */
548     public UnaryCallSettings.Builder<ExportEvaluatedExamplesRequest, Operation>
exportEvaluatedExamplesSettings()549         exportEvaluatedExamplesSettings() {
550       return getStubSettingsBuilder().exportEvaluatedExamplesSettings();
551     }
552 
553     /** Returns the builder for the settings used for calls to exportEvaluatedExamples. */
554     public OperationCallSettings.Builder<ExportEvaluatedExamplesRequest, Empty, OperationMetadata>
exportEvaluatedExamplesOperationSettings()555         exportEvaluatedExamplesOperationSettings() {
556       return getStubSettingsBuilder().exportEvaluatedExamplesOperationSettings();
557     }
558 
559     /** Returns the builder for the settings used for calls to getModelEvaluation. */
560     public UnaryCallSettings.Builder<GetModelEvaluationRequest, ModelEvaluation>
getModelEvaluationSettings()561         getModelEvaluationSettings() {
562       return getStubSettingsBuilder().getModelEvaluationSettings();
563     }
564 
565     /** Returns the builder for the settings used for calls to listModelEvaluations. */
566     public PagedCallSettings.Builder<
567             ListModelEvaluationsRequest,
568             ListModelEvaluationsResponse,
569             ListModelEvaluationsPagedResponse>
listModelEvaluationsSettings()570         listModelEvaluationsSettings() {
571       return getStubSettingsBuilder().listModelEvaluationsSettings();
572     }
573 
574     @Override
build()575     public AutoMlSettings build() throws IOException {
576       return new AutoMlSettings(this);
577     }
578   }
579 }
580