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