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