• 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.v1.stub;
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.gax.core.BackgroundResource;
26 import com.google.api.gax.rpc.OperationCallable;
27 import com.google.api.gax.rpc.UnaryCallable;
28 import com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest;
29 import com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse;
30 import com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest;
31 import com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse;
32 import com.google.cloud.aiplatform.v1.CopyModelOperationMetadata;
33 import com.google.cloud.aiplatform.v1.CopyModelRequest;
34 import com.google.cloud.aiplatform.v1.CopyModelResponse;
35 import com.google.cloud.aiplatform.v1.DeleteModelRequest;
36 import com.google.cloud.aiplatform.v1.DeleteModelVersionRequest;
37 import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
38 import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata;
39 import com.google.cloud.aiplatform.v1.ExportModelRequest;
40 import com.google.cloud.aiplatform.v1.ExportModelResponse;
41 import com.google.cloud.aiplatform.v1.GetModelEvaluationRequest;
42 import com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest;
43 import com.google.cloud.aiplatform.v1.GetModelRequest;
44 import com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest;
45 import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest;
46 import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse;
47 import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest;
48 import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse;
49 import com.google.cloud.aiplatform.v1.ListModelVersionsRequest;
50 import com.google.cloud.aiplatform.v1.ListModelVersionsResponse;
51 import com.google.cloud.aiplatform.v1.ListModelsRequest;
52 import com.google.cloud.aiplatform.v1.ListModelsResponse;
53 import com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest;
54 import com.google.cloud.aiplatform.v1.Model;
55 import com.google.cloud.aiplatform.v1.ModelEvaluation;
56 import com.google.cloud.aiplatform.v1.ModelEvaluationSlice;
57 import com.google.cloud.aiplatform.v1.UpdateModelRequest;
58 import com.google.cloud.aiplatform.v1.UploadModelOperationMetadata;
59 import com.google.cloud.aiplatform.v1.UploadModelRequest;
60 import com.google.cloud.aiplatform.v1.UploadModelResponse;
61 import com.google.cloud.location.GetLocationRequest;
62 import com.google.cloud.location.ListLocationsRequest;
63 import com.google.cloud.location.ListLocationsResponse;
64 import com.google.cloud.location.Location;
65 import com.google.iam.v1.GetIamPolicyRequest;
66 import com.google.iam.v1.Policy;
67 import com.google.iam.v1.SetIamPolicyRequest;
68 import com.google.iam.v1.TestIamPermissionsRequest;
69 import com.google.iam.v1.TestIamPermissionsResponse;
70 import com.google.longrunning.Operation;
71 import com.google.longrunning.stub.OperationsStub;
72 import com.google.protobuf.Empty;
73 import javax.annotation.Generated;
74 
75 // AUTO-GENERATED DOCUMENTATION AND CLASS.
76 /**
77  * Base stub class for the ModelService service API.
78  *
79  * <p>This class is for advanced usage and reflects the underlying API directly.
80  */
81 @Generated("by gapic-generator-java")
82 public abstract class ModelServiceStub implements BackgroundResource {
83 
getOperationsStub()84   public OperationsStub getOperationsStub() {
85     throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
86   }
87 
88   public OperationCallable<UploadModelRequest, UploadModelResponse, UploadModelOperationMetadata>
uploadModelOperationCallable()89       uploadModelOperationCallable() {
90     throw new UnsupportedOperationException("Not implemented: uploadModelOperationCallable()");
91   }
92 
uploadModelCallable()93   public UnaryCallable<UploadModelRequest, Operation> uploadModelCallable() {
94     throw new UnsupportedOperationException("Not implemented: uploadModelCallable()");
95   }
96 
getModelCallable()97   public UnaryCallable<GetModelRequest, Model> getModelCallable() {
98     throw new UnsupportedOperationException("Not implemented: getModelCallable()");
99   }
100 
listModelsPagedCallable()101   public UnaryCallable<ListModelsRequest, ListModelsPagedResponse> listModelsPagedCallable() {
102     throw new UnsupportedOperationException("Not implemented: listModelsPagedCallable()");
103   }
104 
listModelsCallable()105   public UnaryCallable<ListModelsRequest, ListModelsResponse> listModelsCallable() {
106     throw new UnsupportedOperationException("Not implemented: listModelsCallable()");
107   }
108 
109   public UnaryCallable<ListModelVersionsRequest, ListModelVersionsPagedResponse>
listModelVersionsPagedCallable()110       listModelVersionsPagedCallable() {
111     throw new UnsupportedOperationException("Not implemented: listModelVersionsPagedCallable()");
112   }
113 
114   public UnaryCallable<ListModelVersionsRequest, ListModelVersionsResponse>
listModelVersionsCallable()115       listModelVersionsCallable() {
116     throw new UnsupportedOperationException("Not implemented: listModelVersionsCallable()");
117   }
118 
updateModelCallable()119   public UnaryCallable<UpdateModelRequest, Model> updateModelCallable() {
120     throw new UnsupportedOperationException("Not implemented: updateModelCallable()");
121   }
122 
123   public OperationCallable<DeleteModelRequest, Empty, DeleteOperationMetadata>
deleteModelOperationCallable()124       deleteModelOperationCallable() {
125     throw new UnsupportedOperationException("Not implemented: deleteModelOperationCallable()");
126   }
127 
deleteModelCallable()128   public UnaryCallable<DeleteModelRequest, Operation> deleteModelCallable() {
129     throw new UnsupportedOperationException("Not implemented: deleteModelCallable()");
130   }
131 
132   public OperationCallable<DeleteModelVersionRequest, Empty, DeleteOperationMetadata>
deleteModelVersionOperationCallable()133       deleteModelVersionOperationCallable() {
134     throw new UnsupportedOperationException(
135         "Not implemented: deleteModelVersionOperationCallable()");
136   }
137 
deleteModelVersionCallable()138   public UnaryCallable<DeleteModelVersionRequest, Operation> deleteModelVersionCallable() {
139     throw new UnsupportedOperationException("Not implemented: deleteModelVersionCallable()");
140   }
141 
mergeVersionAliasesCallable()142   public UnaryCallable<MergeVersionAliasesRequest, Model> mergeVersionAliasesCallable() {
143     throw new UnsupportedOperationException("Not implemented: mergeVersionAliasesCallable()");
144   }
145 
146   public OperationCallable<ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
exportModelOperationCallable()147       exportModelOperationCallable() {
148     throw new UnsupportedOperationException("Not implemented: exportModelOperationCallable()");
149   }
150 
exportModelCallable()151   public UnaryCallable<ExportModelRequest, Operation> exportModelCallable() {
152     throw new UnsupportedOperationException("Not implemented: exportModelCallable()");
153   }
154 
155   public OperationCallable<CopyModelRequest, CopyModelResponse, CopyModelOperationMetadata>
copyModelOperationCallable()156       copyModelOperationCallable() {
157     throw new UnsupportedOperationException("Not implemented: copyModelOperationCallable()");
158   }
159 
copyModelCallable()160   public UnaryCallable<CopyModelRequest, Operation> copyModelCallable() {
161     throw new UnsupportedOperationException("Not implemented: copyModelCallable()");
162   }
163 
164   public UnaryCallable<ImportModelEvaluationRequest, ModelEvaluation>
importModelEvaluationCallable()165       importModelEvaluationCallable() {
166     throw new UnsupportedOperationException("Not implemented: importModelEvaluationCallable()");
167   }
168 
169   public UnaryCallable<
170           BatchImportModelEvaluationSlicesRequest, BatchImportModelEvaluationSlicesResponse>
batchImportModelEvaluationSlicesCallable()171       batchImportModelEvaluationSlicesCallable() {
172     throw new UnsupportedOperationException(
173         "Not implemented: batchImportModelEvaluationSlicesCallable()");
174   }
175 
176   public UnaryCallable<
177           BatchImportEvaluatedAnnotationsRequest, BatchImportEvaluatedAnnotationsResponse>
batchImportEvaluatedAnnotationsCallable()178       batchImportEvaluatedAnnotationsCallable() {
179     throw new UnsupportedOperationException(
180         "Not implemented: batchImportEvaluatedAnnotationsCallable()");
181   }
182 
getModelEvaluationCallable()183   public UnaryCallable<GetModelEvaluationRequest, ModelEvaluation> getModelEvaluationCallable() {
184     throw new UnsupportedOperationException("Not implemented: getModelEvaluationCallable()");
185   }
186 
187   public UnaryCallable<ListModelEvaluationsRequest, ListModelEvaluationsPagedResponse>
listModelEvaluationsPagedCallable()188       listModelEvaluationsPagedCallable() {
189     throw new UnsupportedOperationException("Not implemented: listModelEvaluationsPagedCallable()");
190   }
191 
192   public UnaryCallable<ListModelEvaluationsRequest, ListModelEvaluationsResponse>
listModelEvaluationsCallable()193       listModelEvaluationsCallable() {
194     throw new UnsupportedOperationException("Not implemented: listModelEvaluationsCallable()");
195   }
196 
197   public UnaryCallable<GetModelEvaluationSliceRequest, ModelEvaluationSlice>
getModelEvaluationSliceCallable()198       getModelEvaluationSliceCallable() {
199     throw new UnsupportedOperationException("Not implemented: getModelEvaluationSliceCallable()");
200   }
201 
202   public UnaryCallable<ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesPagedResponse>
listModelEvaluationSlicesPagedCallable()203       listModelEvaluationSlicesPagedCallable() {
204     throw new UnsupportedOperationException(
205         "Not implemented: listModelEvaluationSlicesPagedCallable()");
206   }
207 
208   public UnaryCallable<ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse>
listModelEvaluationSlicesCallable()209       listModelEvaluationSlicesCallable() {
210     throw new UnsupportedOperationException("Not implemented: listModelEvaluationSlicesCallable()");
211   }
212 
213   public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable()214       listLocationsPagedCallable() {
215     throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
216   }
217 
listLocationsCallable()218   public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
219     throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
220   }
221 
getLocationCallable()222   public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
223     throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
224   }
225 
setIamPolicyCallable()226   public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
227     throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
228   }
229 
getIamPolicyCallable()230   public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
231     throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
232   }
233 
234   public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable()235       testIamPermissionsCallable() {
236     throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
237   }
238 
239   @Override
close()240   public abstract void close();
241 }
242