• 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.aiplatform.v1beta1;
18 
19 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse;
20 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
21 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse;
22 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse;
23 import static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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 @BetaApi
90 @Generated("by gapic-generator-java")
91 public class ModelServiceSettings extends ClientSettings<ModelServiceSettings> {
92 
93   /** Returns the object with the settings used for calls to uploadModel. */
uploadModelSettings()94   public UnaryCallSettings<UploadModelRequest, Operation> uploadModelSettings() {
95     return ((ModelServiceStubSettings) getStubSettings()).uploadModelSettings();
96   }
97 
98   /** Returns the object with the settings used for calls to uploadModel. */
99   public OperationCallSettings<
100           UploadModelRequest, UploadModelResponse, UploadModelOperationMetadata>
uploadModelOperationSettings()101       uploadModelOperationSettings() {
102     return ((ModelServiceStubSettings) getStubSettings()).uploadModelOperationSettings();
103   }
104 
105   /** Returns the object with the settings used for calls to getModel. */
getModelSettings()106   public UnaryCallSettings<GetModelRequest, Model> getModelSettings() {
107     return ((ModelServiceStubSettings) getStubSettings()).getModelSettings();
108   }
109 
110   /** Returns the object with the settings used for calls to listModels. */
111   public PagedCallSettings<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings()112       listModelsSettings() {
113     return ((ModelServiceStubSettings) getStubSettings()).listModelsSettings();
114   }
115 
116   /** Returns the object with the settings used for calls to listModelVersions. */
117   public PagedCallSettings<
118           ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
listModelVersionsSettings()119       listModelVersionsSettings() {
120     return ((ModelServiceStubSettings) getStubSettings()).listModelVersionsSettings();
121   }
122 
123   /** Returns the object with the settings used for calls to updateModel. */
updateModelSettings()124   public UnaryCallSettings<UpdateModelRequest, Model> updateModelSettings() {
125     return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings();
126   }
127 
128   /** Returns the object with the settings used for calls to updateExplanationDataset. */
129   public UnaryCallSettings<UpdateExplanationDatasetRequest, Operation>
updateExplanationDatasetSettings()130       updateExplanationDatasetSettings() {
131     return ((ModelServiceStubSettings) getStubSettings()).updateExplanationDatasetSettings();
132   }
133 
134   /** Returns the object with the settings used for calls to updateExplanationDataset. */
135   public OperationCallSettings<
136           UpdateExplanationDatasetRequest,
137           UpdateExplanationDatasetResponse,
138           UpdateExplanationDatasetOperationMetadata>
updateExplanationDatasetOperationSettings()139       updateExplanationDatasetOperationSettings() {
140     return ((ModelServiceStubSettings) getStubSettings())
141         .updateExplanationDatasetOperationSettings();
142   }
143 
144   /** Returns the object with the settings used for calls to deleteModel. */
deleteModelSettings()145   public UnaryCallSettings<DeleteModelRequest, Operation> deleteModelSettings() {
146     return ((ModelServiceStubSettings) getStubSettings()).deleteModelSettings();
147   }
148 
149   /** Returns the object with the settings used for calls to deleteModel. */
150   public OperationCallSettings<DeleteModelRequest, Empty, DeleteOperationMetadata>
deleteModelOperationSettings()151       deleteModelOperationSettings() {
152     return ((ModelServiceStubSettings) getStubSettings()).deleteModelOperationSettings();
153   }
154 
155   /** Returns the object with the settings used for calls to deleteModelVersion. */
deleteModelVersionSettings()156   public UnaryCallSettings<DeleteModelVersionRequest, Operation> deleteModelVersionSettings() {
157     return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionSettings();
158   }
159 
160   /** Returns the object with the settings used for calls to deleteModelVersion. */
161   public OperationCallSettings<DeleteModelVersionRequest, Empty, DeleteOperationMetadata>
deleteModelVersionOperationSettings()162       deleteModelVersionOperationSettings() {
163     return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionOperationSettings();
164   }
165 
166   /** Returns the object with the settings used for calls to mergeVersionAliases. */
mergeVersionAliasesSettings()167   public UnaryCallSettings<MergeVersionAliasesRequest, Model> mergeVersionAliasesSettings() {
168     return ((ModelServiceStubSettings) getStubSettings()).mergeVersionAliasesSettings();
169   }
170 
171   /** Returns the object with the settings used for calls to exportModel. */
exportModelSettings()172   public UnaryCallSettings<ExportModelRequest, Operation> exportModelSettings() {
173     return ((ModelServiceStubSettings) getStubSettings()).exportModelSettings();
174   }
175 
176   /** Returns the object with the settings used for calls to exportModel. */
177   public OperationCallSettings<
178           ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
exportModelOperationSettings()179       exportModelOperationSettings() {
180     return ((ModelServiceStubSettings) getStubSettings()).exportModelOperationSettings();
181   }
182 
183   /** Returns the object with the settings used for calls to copyModel. */
copyModelSettings()184   public UnaryCallSettings<CopyModelRequest, Operation> copyModelSettings() {
185     return ((ModelServiceStubSettings) getStubSettings()).copyModelSettings();
186   }
187 
188   /** Returns the object with the settings used for calls to copyModel. */
189   public OperationCallSettings<CopyModelRequest, CopyModelResponse, CopyModelOperationMetadata>
copyModelOperationSettings()190       copyModelOperationSettings() {
191     return ((ModelServiceStubSettings) getStubSettings()).copyModelOperationSettings();
192   }
193 
194   /** Returns the object with the settings used for calls to importModelEvaluation. */
195   public UnaryCallSettings<ImportModelEvaluationRequest, ModelEvaluation>
importModelEvaluationSettings()196       importModelEvaluationSettings() {
197     return ((ModelServiceStubSettings) getStubSettings()).importModelEvaluationSettings();
198   }
199 
200   /** Returns the object with the settings used for calls to batchImportModelEvaluationSlices. */
201   public UnaryCallSettings<
202           BatchImportModelEvaluationSlicesRequest, BatchImportModelEvaluationSlicesResponse>
batchImportModelEvaluationSlicesSettings()203       batchImportModelEvaluationSlicesSettings() {
204     return ((ModelServiceStubSettings) getStubSettings())
205         .batchImportModelEvaluationSlicesSettings();
206   }
207 
208   /** Returns the object with the settings used for calls to batchImportEvaluatedAnnotations. */
209   public UnaryCallSettings<
210           BatchImportEvaluatedAnnotationsRequest, BatchImportEvaluatedAnnotationsResponse>
batchImportEvaluatedAnnotationsSettings()211       batchImportEvaluatedAnnotationsSettings() {
212     return ((ModelServiceStubSettings) getStubSettings()).batchImportEvaluatedAnnotationsSettings();
213   }
214 
215   /** Returns the object with the settings used for calls to getModelEvaluation. */
216   public UnaryCallSettings<GetModelEvaluationRequest, ModelEvaluation>
getModelEvaluationSettings()217       getModelEvaluationSettings() {
218     return ((ModelServiceStubSettings) getStubSettings()).getModelEvaluationSettings();
219   }
220 
221   /** Returns the object with the settings used for calls to listModelEvaluations. */
222   public PagedCallSettings<
223           ListModelEvaluationsRequest,
224           ListModelEvaluationsResponse,
225           ListModelEvaluationsPagedResponse>
listModelEvaluationsSettings()226       listModelEvaluationsSettings() {
227     return ((ModelServiceStubSettings) getStubSettings()).listModelEvaluationsSettings();
228   }
229 
230   /** Returns the object with the settings used for calls to getModelEvaluationSlice. */
231   public UnaryCallSettings<GetModelEvaluationSliceRequest, ModelEvaluationSlice>
getModelEvaluationSliceSettings()232       getModelEvaluationSliceSettings() {
233     return ((ModelServiceStubSettings) getStubSettings()).getModelEvaluationSliceSettings();
234   }
235 
236   /** Returns the object with the settings used for calls to listModelEvaluationSlices. */
237   public PagedCallSettings<
238           ListModelEvaluationSlicesRequest,
239           ListModelEvaluationSlicesResponse,
240           ListModelEvaluationSlicesPagedResponse>
listModelEvaluationSlicesSettings()241       listModelEvaluationSlicesSettings() {
242     return ((ModelServiceStubSettings) getStubSettings()).listModelEvaluationSlicesSettings();
243   }
244 
245   /** Returns the object with the settings used for calls to listLocations. */
246   public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings()247       listLocationsSettings() {
248     return ((ModelServiceStubSettings) getStubSettings()).listLocationsSettings();
249   }
250 
251   /** Returns the object with the settings used for calls to getLocation. */
getLocationSettings()252   public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
253     return ((ModelServiceStubSettings) getStubSettings()).getLocationSettings();
254   }
255 
256   /** Returns the object with the settings used for calls to setIamPolicy. */
setIamPolicySettings()257   public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
258     return ((ModelServiceStubSettings) getStubSettings()).setIamPolicySettings();
259   }
260 
261   /** Returns the object with the settings used for calls to getIamPolicy. */
getIamPolicySettings()262   public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
263     return ((ModelServiceStubSettings) getStubSettings()).getIamPolicySettings();
264   }
265 
266   /** Returns the object with the settings used for calls to testIamPermissions. */
267   public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings()268       testIamPermissionsSettings() {
269     return ((ModelServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
270   }
271 
create(ModelServiceStubSettings stub)272   public static final ModelServiceSettings create(ModelServiceStubSettings stub)
273       throws IOException {
274     return new ModelServiceSettings.Builder(stub.toBuilder()).build();
275   }
276 
277   /** Returns a builder for the default ExecutorProvider for this service. */
defaultExecutorProviderBuilder()278   public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
279     return ModelServiceStubSettings.defaultExecutorProviderBuilder();
280   }
281 
282   /** Returns the default service endpoint. */
getDefaultEndpoint()283   public static String getDefaultEndpoint() {
284     return ModelServiceStubSettings.getDefaultEndpoint();
285   }
286 
287   /** Returns the default service scopes. */
getDefaultServiceScopes()288   public static List<String> getDefaultServiceScopes() {
289     return ModelServiceStubSettings.getDefaultServiceScopes();
290   }
291 
292   /** Returns a builder for the default credentials for this service. */
defaultCredentialsProviderBuilder()293   public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
294     return ModelServiceStubSettings.defaultCredentialsProviderBuilder();
295   }
296 
297   /** Returns a builder for the default ChannelProvider for this service. */
defaultGrpcTransportProviderBuilder()298   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
299     return ModelServiceStubSettings.defaultGrpcTransportProviderBuilder();
300   }
301 
defaultTransportChannelProvider()302   public static TransportChannelProvider defaultTransportChannelProvider() {
303     return ModelServiceStubSettings.defaultTransportChannelProvider();
304   }
305 
306   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
defaultApiClientHeaderProviderBuilder()307   public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
308     return ModelServiceStubSettings.defaultApiClientHeaderProviderBuilder();
309   }
310 
311   /** Returns a new builder for this class. */
newBuilder()312   public static Builder newBuilder() {
313     return Builder.createDefault();
314   }
315 
316   /** Returns a new builder for this class. */
newBuilder(ClientContext clientContext)317   public static Builder newBuilder(ClientContext clientContext) {
318     return new Builder(clientContext);
319   }
320 
321   /** Returns a builder containing all the values of this settings class. */
toBuilder()322   public Builder toBuilder() {
323     return new Builder(this);
324   }
325 
ModelServiceSettings(Builder settingsBuilder)326   protected ModelServiceSettings(Builder settingsBuilder) throws IOException {
327     super(settingsBuilder);
328   }
329 
330   /** Builder for ModelServiceSettings. */
331   public static class Builder extends ClientSettings.Builder<ModelServiceSettings, Builder> {
332 
Builder()333     protected Builder() throws IOException {
334       this(((ClientContext) null));
335     }
336 
Builder(ClientContext clientContext)337     protected Builder(ClientContext clientContext) {
338       super(ModelServiceStubSettings.newBuilder(clientContext));
339     }
340 
Builder(ModelServiceSettings settings)341     protected Builder(ModelServiceSettings settings) {
342       super(settings.getStubSettings().toBuilder());
343     }
344 
Builder(ModelServiceStubSettings.Builder stubSettings)345     protected Builder(ModelServiceStubSettings.Builder stubSettings) {
346       super(stubSettings);
347     }
348 
createDefault()349     private static Builder createDefault() {
350       return new Builder(ModelServiceStubSettings.newBuilder());
351     }
352 
getStubSettingsBuilder()353     public ModelServiceStubSettings.Builder getStubSettingsBuilder() {
354       return ((ModelServiceStubSettings.Builder) getStubSettings());
355     }
356 
357     /**
358      * Applies the given settings updater function to all of the unary API methods in this service.
359      *
360      * <p>Note: This method does not support applying settings to streaming methods.
361      */
applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater)362     public Builder applyToAllUnaryMethods(
363         ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
364       super.applyToAllUnaryMethods(
365           getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
366       return this;
367     }
368 
369     /** Returns the builder for the settings used for calls to uploadModel. */
uploadModelSettings()370     public UnaryCallSettings.Builder<UploadModelRequest, Operation> uploadModelSettings() {
371       return getStubSettingsBuilder().uploadModelSettings();
372     }
373 
374     /** Returns the builder for the settings used for calls to uploadModel. */
375     public OperationCallSettings.Builder<
376             UploadModelRequest, UploadModelResponse, UploadModelOperationMetadata>
uploadModelOperationSettings()377         uploadModelOperationSettings() {
378       return getStubSettingsBuilder().uploadModelOperationSettings();
379     }
380 
381     /** Returns the builder for the settings used for calls to getModel. */
getModelSettings()382     public UnaryCallSettings.Builder<GetModelRequest, Model> getModelSettings() {
383       return getStubSettingsBuilder().getModelSettings();
384     }
385 
386     /** Returns the builder for the settings used for calls to listModels. */
387     public PagedCallSettings.Builder<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings()388         listModelsSettings() {
389       return getStubSettingsBuilder().listModelsSettings();
390     }
391 
392     /** Returns the builder for the settings used for calls to listModelVersions. */
393     public PagedCallSettings.Builder<
394             ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
listModelVersionsSettings()395         listModelVersionsSettings() {
396       return getStubSettingsBuilder().listModelVersionsSettings();
397     }
398 
399     /** Returns the builder for the settings used for calls to updateModel. */
updateModelSettings()400     public UnaryCallSettings.Builder<UpdateModelRequest, Model> updateModelSettings() {
401       return getStubSettingsBuilder().updateModelSettings();
402     }
403 
404     /** Returns the builder for the settings used for calls to updateExplanationDataset. */
405     public UnaryCallSettings.Builder<UpdateExplanationDatasetRequest, Operation>
updateExplanationDatasetSettings()406         updateExplanationDatasetSettings() {
407       return getStubSettingsBuilder().updateExplanationDatasetSettings();
408     }
409 
410     /** Returns the builder for the settings used for calls to updateExplanationDataset. */
411     public OperationCallSettings.Builder<
412             UpdateExplanationDatasetRequest,
413             UpdateExplanationDatasetResponse,
414             UpdateExplanationDatasetOperationMetadata>
updateExplanationDatasetOperationSettings()415         updateExplanationDatasetOperationSettings() {
416       return getStubSettingsBuilder().updateExplanationDatasetOperationSettings();
417     }
418 
419     /** Returns the builder for the settings used for calls to deleteModel. */
deleteModelSettings()420     public UnaryCallSettings.Builder<DeleteModelRequest, Operation> deleteModelSettings() {
421       return getStubSettingsBuilder().deleteModelSettings();
422     }
423 
424     /** Returns the builder for the settings used for calls to deleteModel. */
425     public OperationCallSettings.Builder<DeleteModelRequest, Empty, DeleteOperationMetadata>
deleteModelOperationSettings()426         deleteModelOperationSettings() {
427       return getStubSettingsBuilder().deleteModelOperationSettings();
428     }
429 
430     /** Returns the builder for the settings used for calls to deleteModelVersion. */
431     public UnaryCallSettings.Builder<DeleteModelVersionRequest, Operation>
deleteModelVersionSettings()432         deleteModelVersionSettings() {
433       return getStubSettingsBuilder().deleteModelVersionSettings();
434     }
435 
436     /** Returns the builder for the settings used for calls to deleteModelVersion. */
437     public OperationCallSettings.Builder<DeleteModelVersionRequest, Empty, DeleteOperationMetadata>
deleteModelVersionOperationSettings()438         deleteModelVersionOperationSettings() {
439       return getStubSettingsBuilder().deleteModelVersionOperationSettings();
440     }
441 
442     /** Returns the builder for the settings used for calls to mergeVersionAliases. */
443     public UnaryCallSettings.Builder<MergeVersionAliasesRequest, Model>
mergeVersionAliasesSettings()444         mergeVersionAliasesSettings() {
445       return getStubSettingsBuilder().mergeVersionAliasesSettings();
446     }
447 
448     /** Returns the builder for the settings used for calls to exportModel. */
exportModelSettings()449     public UnaryCallSettings.Builder<ExportModelRequest, Operation> exportModelSettings() {
450       return getStubSettingsBuilder().exportModelSettings();
451     }
452 
453     /** Returns the builder for the settings used for calls to exportModel. */
454     public OperationCallSettings.Builder<
455             ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
exportModelOperationSettings()456         exportModelOperationSettings() {
457       return getStubSettingsBuilder().exportModelOperationSettings();
458     }
459 
460     /** Returns the builder for the settings used for calls to copyModel. */
copyModelSettings()461     public UnaryCallSettings.Builder<CopyModelRequest, Operation> copyModelSettings() {
462       return getStubSettingsBuilder().copyModelSettings();
463     }
464 
465     /** Returns the builder for the settings used for calls to copyModel. */
466     public OperationCallSettings.Builder<
467             CopyModelRequest, CopyModelResponse, CopyModelOperationMetadata>
copyModelOperationSettings()468         copyModelOperationSettings() {
469       return getStubSettingsBuilder().copyModelOperationSettings();
470     }
471 
472     /** Returns the builder for the settings used for calls to importModelEvaluation. */
473     public UnaryCallSettings.Builder<ImportModelEvaluationRequest, ModelEvaluation>
importModelEvaluationSettings()474         importModelEvaluationSettings() {
475       return getStubSettingsBuilder().importModelEvaluationSettings();
476     }
477 
478     /** Returns the builder for the settings used for calls to batchImportModelEvaluationSlices. */
479     public UnaryCallSettings.Builder<
480             BatchImportModelEvaluationSlicesRequest, BatchImportModelEvaluationSlicesResponse>
batchImportModelEvaluationSlicesSettings()481         batchImportModelEvaluationSlicesSettings() {
482       return getStubSettingsBuilder().batchImportModelEvaluationSlicesSettings();
483     }
484 
485     /** Returns the builder for the settings used for calls to batchImportEvaluatedAnnotations. */
486     public UnaryCallSettings.Builder<
487             BatchImportEvaluatedAnnotationsRequest, BatchImportEvaluatedAnnotationsResponse>
batchImportEvaluatedAnnotationsSettings()488         batchImportEvaluatedAnnotationsSettings() {
489       return getStubSettingsBuilder().batchImportEvaluatedAnnotationsSettings();
490     }
491 
492     /** Returns the builder for the settings used for calls to getModelEvaluation. */
493     public UnaryCallSettings.Builder<GetModelEvaluationRequest, ModelEvaluation>
getModelEvaluationSettings()494         getModelEvaluationSettings() {
495       return getStubSettingsBuilder().getModelEvaluationSettings();
496     }
497 
498     /** Returns the builder for the settings used for calls to listModelEvaluations. */
499     public PagedCallSettings.Builder<
500             ListModelEvaluationsRequest,
501             ListModelEvaluationsResponse,
502             ListModelEvaluationsPagedResponse>
listModelEvaluationsSettings()503         listModelEvaluationsSettings() {
504       return getStubSettingsBuilder().listModelEvaluationsSettings();
505     }
506 
507     /** Returns the builder for the settings used for calls to getModelEvaluationSlice. */
508     public UnaryCallSettings.Builder<GetModelEvaluationSliceRequest, ModelEvaluationSlice>
getModelEvaluationSliceSettings()509         getModelEvaluationSliceSettings() {
510       return getStubSettingsBuilder().getModelEvaluationSliceSettings();
511     }
512 
513     /** Returns the builder for the settings used for calls to listModelEvaluationSlices. */
514     public PagedCallSettings.Builder<
515             ListModelEvaluationSlicesRequest,
516             ListModelEvaluationSlicesResponse,
517             ListModelEvaluationSlicesPagedResponse>
listModelEvaluationSlicesSettings()518         listModelEvaluationSlicesSettings() {
519       return getStubSettingsBuilder().listModelEvaluationSlicesSettings();
520     }
521 
522     /** Returns the builder for the settings used for calls to listLocations. */
523     public PagedCallSettings.Builder<
524             ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings()525         listLocationsSettings() {
526       return getStubSettingsBuilder().listLocationsSettings();
527     }
528 
529     /** Returns the builder for the settings used for calls to getLocation. */
getLocationSettings()530     public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
531       return getStubSettingsBuilder().getLocationSettings();
532     }
533 
534     /** Returns the builder for the settings used for calls to setIamPolicy. */
setIamPolicySettings()535     public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
536       return getStubSettingsBuilder().setIamPolicySettings();
537     }
538 
539     /** Returns the builder for the settings used for calls to getIamPolicy. */
getIamPolicySettings()540     public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
541       return getStubSettingsBuilder().getIamPolicySettings();
542     }
543 
544     /** Returns the builder for the settings used for calls to testIamPermissions. */
545     public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings()546         testIamPermissionsSettings() {
547       return getStubSettingsBuilder().testIamPermissionsSettings();
548     }
549 
550     @Override
build()551     public ModelServiceSettings build() throws IOException {
552       return new ModelServiceSettings(this);
553     }
554   }
555 }
556