1 /* 2 * Copyright 2020 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 package com.google.cloud.aiplatform.v1; 17 18 import static io.grpc.MethodDescriptor.generateFullMethodName; 19 20 /** 21 * 22 * 23 * <pre> 24 * A service for managing Vertex AI's machine learning Models. 25 * </pre> 26 */ 27 @javax.annotation.Generated( 28 value = "by gRPC proto compiler", 29 comments = "Source: google/cloud/aiplatform/v1/model_service.proto") 30 @io.grpc.stub.annotations.GrpcGenerated 31 public final class ModelServiceGrpc { 32 ModelServiceGrpc()33 private ModelServiceGrpc() {} 34 35 public static final String SERVICE_NAME = "google.cloud.aiplatform.v1.ModelService"; 36 37 // Static method descriptors that strictly reflect the proto. 38 private static volatile io.grpc.MethodDescriptor< 39 com.google.cloud.aiplatform.v1.UploadModelRequest, com.google.longrunning.Operation> 40 getUploadModelMethod; 41 42 @io.grpc.stub.annotations.RpcMethod( 43 fullMethodName = SERVICE_NAME + '/' + "UploadModel", 44 requestType = com.google.cloud.aiplatform.v1.UploadModelRequest.class, 45 responseType = com.google.longrunning.Operation.class, 46 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 47 public static io.grpc.MethodDescriptor< 48 com.google.cloud.aiplatform.v1.UploadModelRequest, com.google.longrunning.Operation> getUploadModelMethod()49 getUploadModelMethod() { 50 io.grpc.MethodDescriptor< 51 com.google.cloud.aiplatform.v1.UploadModelRequest, com.google.longrunning.Operation> 52 getUploadModelMethod; 53 if ((getUploadModelMethod = ModelServiceGrpc.getUploadModelMethod) == null) { 54 synchronized (ModelServiceGrpc.class) { 55 if ((getUploadModelMethod = ModelServiceGrpc.getUploadModelMethod) == null) { 56 ModelServiceGrpc.getUploadModelMethod = 57 getUploadModelMethod = 58 io.grpc.MethodDescriptor 59 .<com.google.cloud.aiplatform.v1.UploadModelRequest, 60 com.google.longrunning.Operation> 61 newBuilder() 62 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 63 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadModel")) 64 .setSampledToLocalTracing(true) 65 .setRequestMarshaller( 66 io.grpc.protobuf.ProtoUtils.marshaller( 67 com.google.cloud.aiplatform.v1.UploadModelRequest 68 .getDefaultInstance())) 69 .setResponseMarshaller( 70 io.grpc.protobuf.ProtoUtils.marshaller( 71 com.google.longrunning.Operation.getDefaultInstance())) 72 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("UploadModel")) 73 .build(); 74 } 75 } 76 } 77 return getUploadModelMethod; 78 } 79 80 private static volatile io.grpc.MethodDescriptor< 81 com.google.cloud.aiplatform.v1.GetModelRequest, com.google.cloud.aiplatform.v1.Model> 82 getGetModelMethod; 83 84 @io.grpc.stub.annotations.RpcMethod( 85 fullMethodName = SERVICE_NAME + '/' + "GetModel", 86 requestType = com.google.cloud.aiplatform.v1.GetModelRequest.class, 87 responseType = com.google.cloud.aiplatform.v1.Model.class, 88 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 89 public static io.grpc.MethodDescriptor< 90 com.google.cloud.aiplatform.v1.GetModelRequest, com.google.cloud.aiplatform.v1.Model> getGetModelMethod()91 getGetModelMethod() { 92 io.grpc.MethodDescriptor< 93 com.google.cloud.aiplatform.v1.GetModelRequest, com.google.cloud.aiplatform.v1.Model> 94 getGetModelMethod; 95 if ((getGetModelMethod = ModelServiceGrpc.getGetModelMethod) == null) { 96 synchronized (ModelServiceGrpc.class) { 97 if ((getGetModelMethod = ModelServiceGrpc.getGetModelMethod) == null) { 98 ModelServiceGrpc.getGetModelMethod = 99 getGetModelMethod = 100 io.grpc.MethodDescriptor 101 .<com.google.cloud.aiplatform.v1.GetModelRequest, 102 com.google.cloud.aiplatform.v1.Model> 103 newBuilder() 104 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 105 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) 106 .setSampledToLocalTracing(true) 107 .setRequestMarshaller( 108 io.grpc.protobuf.ProtoUtils.marshaller( 109 com.google.cloud.aiplatform.v1.GetModelRequest.getDefaultInstance())) 110 .setResponseMarshaller( 111 io.grpc.protobuf.ProtoUtils.marshaller( 112 com.google.cloud.aiplatform.v1.Model.getDefaultInstance())) 113 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("GetModel")) 114 .build(); 115 } 116 } 117 } 118 return getGetModelMethod; 119 } 120 121 private static volatile io.grpc.MethodDescriptor< 122 com.google.cloud.aiplatform.v1.ListModelsRequest, 123 com.google.cloud.aiplatform.v1.ListModelsResponse> 124 getListModelsMethod; 125 126 @io.grpc.stub.annotations.RpcMethod( 127 fullMethodName = SERVICE_NAME + '/' + "ListModels", 128 requestType = com.google.cloud.aiplatform.v1.ListModelsRequest.class, 129 responseType = com.google.cloud.aiplatform.v1.ListModelsResponse.class, 130 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 131 public static io.grpc.MethodDescriptor< 132 com.google.cloud.aiplatform.v1.ListModelsRequest, 133 com.google.cloud.aiplatform.v1.ListModelsResponse> getListModelsMethod()134 getListModelsMethod() { 135 io.grpc.MethodDescriptor< 136 com.google.cloud.aiplatform.v1.ListModelsRequest, 137 com.google.cloud.aiplatform.v1.ListModelsResponse> 138 getListModelsMethod; 139 if ((getListModelsMethod = ModelServiceGrpc.getListModelsMethod) == null) { 140 synchronized (ModelServiceGrpc.class) { 141 if ((getListModelsMethod = ModelServiceGrpc.getListModelsMethod) == null) { 142 ModelServiceGrpc.getListModelsMethod = 143 getListModelsMethod = 144 io.grpc.MethodDescriptor 145 .<com.google.cloud.aiplatform.v1.ListModelsRequest, 146 com.google.cloud.aiplatform.v1.ListModelsResponse> 147 newBuilder() 148 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 149 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) 150 .setSampledToLocalTracing(true) 151 .setRequestMarshaller( 152 io.grpc.protobuf.ProtoUtils.marshaller( 153 com.google.cloud.aiplatform.v1.ListModelsRequest 154 .getDefaultInstance())) 155 .setResponseMarshaller( 156 io.grpc.protobuf.ProtoUtils.marshaller( 157 com.google.cloud.aiplatform.v1.ListModelsResponse 158 .getDefaultInstance())) 159 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("ListModels")) 160 .build(); 161 } 162 } 163 } 164 return getListModelsMethod; 165 } 166 167 private static volatile io.grpc.MethodDescriptor< 168 com.google.cloud.aiplatform.v1.ListModelVersionsRequest, 169 com.google.cloud.aiplatform.v1.ListModelVersionsResponse> 170 getListModelVersionsMethod; 171 172 @io.grpc.stub.annotations.RpcMethod( 173 fullMethodName = SERVICE_NAME + '/' + "ListModelVersions", 174 requestType = com.google.cloud.aiplatform.v1.ListModelVersionsRequest.class, 175 responseType = com.google.cloud.aiplatform.v1.ListModelVersionsResponse.class, 176 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 177 public static io.grpc.MethodDescriptor< 178 com.google.cloud.aiplatform.v1.ListModelVersionsRequest, 179 com.google.cloud.aiplatform.v1.ListModelVersionsResponse> getListModelVersionsMethod()180 getListModelVersionsMethod() { 181 io.grpc.MethodDescriptor< 182 com.google.cloud.aiplatform.v1.ListModelVersionsRequest, 183 com.google.cloud.aiplatform.v1.ListModelVersionsResponse> 184 getListModelVersionsMethod; 185 if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) { 186 synchronized (ModelServiceGrpc.class) { 187 if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) { 188 ModelServiceGrpc.getListModelVersionsMethod = 189 getListModelVersionsMethod = 190 io.grpc.MethodDescriptor 191 .<com.google.cloud.aiplatform.v1.ListModelVersionsRequest, 192 com.google.cloud.aiplatform.v1.ListModelVersionsResponse> 193 newBuilder() 194 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 195 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelVersions")) 196 .setSampledToLocalTracing(true) 197 .setRequestMarshaller( 198 io.grpc.protobuf.ProtoUtils.marshaller( 199 com.google.cloud.aiplatform.v1.ListModelVersionsRequest 200 .getDefaultInstance())) 201 .setResponseMarshaller( 202 io.grpc.protobuf.ProtoUtils.marshaller( 203 com.google.cloud.aiplatform.v1.ListModelVersionsResponse 204 .getDefaultInstance())) 205 .setSchemaDescriptor( 206 new ModelServiceMethodDescriptorSupplier("ListModelVersions")) 207 .build(); 208 } 209 } 210 } 211 return getListModelVersionsMethod; 212 } 213 214 private static volatile io.grpc.MethodDescriptor< 215 com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model> 216 getUpdateModelMethod; 217 218 @io.grpc.stub.annotations.RpcMethod( 219 fullMethodName = SERVICE_NAME + '/' + "UpdateModel", 220 requestType = com.google.cloud.aiplatform.v1.UpdateModelRequest.class, 221 responseType = com.google.cloud.aiplatform.v1.Model.class, 222 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 223 public static io.grpc.MethodDescriptor< 224 com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model> getUpdateModelMethod()225 getUpdateModelMethod() { 226 io.grpc.MethodDescriptor< 227 com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model> 228 getUpdateModelMethod; 229 if ((getUpdateModelMethod = ModelServiceGrpc.getUpdateModelMethod) == null) { 230 synchronized (ModelServiceGrpc.class) { 231 if ((getUpdateModelMethod = ModelServiceGrpc.getUpdateModelMethod) == null) { 232 ModelServiceGrpc.getUpdateModelMethod = 233 getUpdateModelMethod = 234 io.grpc.MethodDescriptor 235 .<com.google.cloud.aiplatform.v1.UpdateModelRequest, 236 com.google.cloud.aiplatform.v1.Model> 237 newBuilder() 238 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 239 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) 240 .setSampledToLocalTracing(true) 241 .setRequestMarshaller( 242 io.grpc.protobuf.ProtoUtils.marshaller( 243 com.google.cloud.aiplatform.v1.UpdateModelRequest 244 .getDefaultInstance())) 245 .setResponseMarshaller( 246 io.grpc.protobuf.ProtoUtils.marshaller( 247 com.google.cloud.aiplatform.v1.Model.getDefaultInstance())) 248 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("UpdateModel")) 249 .build(); 250 } 251 } 252 } 253 return getUpdateModelMethod; 254 } 255 256 private static volatile io.grpc.MethodDescriptor< 257 com.google.cloud.aiplatform.v1.DeleteModelRequest, com.google.longrunning.Operation> 258 getDeleteModelMethod; 259 260 @io.grpc.stub.annotations.RpcMethod( 261 fullMethodName = SERVICE_NAME + '/' + "DeleteModel", 262 requestType = com.google.cloud.aiplatform.v1.DeleteModelRequest.class, 263 responseType = com.google.longrunning.Operation.class, 264 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 265 public static io.grpc.MethodDescriptor< 266 com.google.cloud.aiplatform.v1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod()267 getDeleteModelMethod() { 268 io.grpc.MethodDescriptor< 269 com.google.cloud.aiplatform.v1.DeleteModelRequest, com.google.longrunning.Operation> 270 getDeleteModelMethod; 271 if ((getDeleteModelMethod = ModelServiceGrpc.getDeleteModelMethod) == null) { 272 synchronized (ModelServiceGrpc.class) { 273 if ((getDeleteModelMethod = ModelServiceGrpc.getDeleteModelMethod) == null) { 274 ModelServiceGrpc.getDeleteModelMethod = 275 getDeleteModelMethod = 276 io.grpc.MethodDescriptor 277 .<com.google.cloud.aiplatform.v1.DeleteModelRequest, 278 com.google.longrunning.Operation> 279 newBuilder() 280 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 281 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) 282 .setSampledToLocalTracing(true) 283 .setRequestMarshaller( 284 io.grpc.protobuf.ProtoUtils.marshaller( 285 com.google.cloud.aiplatform.v1.DeleteModelRequest 286 .getDefaultInstance())) 287 .setResponseMarshaller( 288 io.grpc.protobuf.ProtoUtils.marshaller( 289 com.google.longrunning.Operation.getDefaultInstance())) 290 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("DeleteModel")) 291 .build(); 292 } 293 } 294 } 295 return getDeleteModelMethod; 296 } 297 298 private static volatile io.grpc.MethodDescriptor< 299 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, 300 com.google.longrunning.Operation> 301 getDeleteModelVersionMethod; 302 303 @io.grpc.stub.annotations.RpcMethod( 304 fullMethodName = SERVICE_NAME + '/' + "DeleteModelVersion", 305 requestType = com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.class, 306 responseType = com.google.longrunning.Operation.class, 307 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 308 public static io.grpc.MethodDescriptor< 309 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, 310 com.google.longrunning.Operation> getDeleteModelVersionMethod()311 getDeleteModelVersionMethod() { 312 io.grpc.MethodDescriptor< 313 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, 314 com.google.longrunning.Operation> 315 getDeleteModelVersionMethod; 316 if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) { 317 synchronized (ModelServiceGrpc.class) { 318 if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) { 319 ModelServiceGrpc.getDeleteModelVersionMethod = 320 getDeleteModelVersionMethod = 321 io.grpc.MethodDescriptor 322 .<com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, 323 com.google.longrunning.Operation> 324 newBuilder() 325 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 326 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModelVersion")) 327 .setSampledToLocalTracing(true) 328 .setRequestMarshaller( 329 io.grpc.protobuf.ProtoUtils.marshaller( 330 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest 331 .getDefaultInstance())) 332 .setResponseMarshaller( 333 io.grpc.protobuf.ProtoUtils.marshaller( 334 com.google.longrunning.Operation.getDefaultInstance())) 335 .setSchemaDescriptor( 336 new ModelServiceMethodDescriptorSupplier("DeleteModelVersion")) 337 .build(); 338 } 339 } 340 } 341 return getDeleteModelVersionMethod; 342 } 343 344 private static volatile io.grpc.MethodDescriptor< 345 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, 346 com.google.cloud.aiplatform.v1.Model> 347 getMergeVersionAliasesMethod; 348 349 @io.grpc.stub.annotations.RpcMethod( 350 fullMethodName = SERVICE_NAME + '/' + "MergeVersionAliases", 351 requestType = com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.class, 352 responseType = com.google.cloud.aiplatform.v1.Model.class, 353 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 354 public static io.grpc.MethodDescriptor< 355 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, 356 com.google.cloud.aiplatform.v1.Model> getMergeVersionAliasesMethod()357 getMergeVersionAliasesMethod() { 358 io.grpc.MethodDescriptor< 359 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, 360 com.google.cloud.aiplatform.v1.Model> 361 getMergeVersionAliasesMethod; 362 if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod) == null) { 363 synchronized (ModelServiceGrpc.class) { 364 if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod) 365 == null) { 366 ModelServiceGrpc.getMergeVersionAliasesMethod = 367 getMergeVersionAliasesMethod = 368 io.grpc.MethodDescriptor 369 .<com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, 370 com.google.cloud.aiplatform.v1.Model> 371 newBuilder() 372 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 373 .setFullMethodName( 374 generateFullMethodName(SERVICE_NAME, "MergeVersionAliases")) 375 .setSampledToLocalTracing(true) 376 .setRequestMarshaller( 377 io.grpc.protobuf.ProtoUtils.marshaller( 378 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest 379 .getDefaultInstance())) 380 .setResponseMarshaller( 381 io.grpc.protobuf.ProtoUtils.marshaller( 382 com.google.cloud.aiplatform.v1.Model.getDefaultInstance())) 383 .setSchemaDescriptor( 384 new ModelServiceMethodDescriptorSupplier("MergeVersionAliases")) 385 .build(); 386 } 387 } 388 } 389 return getMergeVersionAliasesMethod; 390 } 391 392 private static volatile io.grpc.MethodDescriptor< 393 com.google.cloud.aiplatform.v1.ExportModelRequest, com.google.longrunning.Operation> 394 getExportModelMethod; 395 396 @io.grpc.stub.annotations.RpcMethod( 397 fullMethodName = SERVICE_NAME + '/' + "ExportModel", 398 requestType = com.google.cloud.aiplatform.v1.ExportModelRequest.class, 399 responseType = com.google.longrunning.Operation.class, 400 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 401 public static io.grpc.MethodDescriptor< 402 com.google.cloud.aiplatform.v1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod()403 getExportModelMethod() { 404 io.grpc.MethodDescriptor< 405 com.google.cloud.aiplatform.v1.ExportModelRequest, com.google.longrunning.Operation> 406 getExportModelMethod; 407 if ((getExportModelMethod = ModelServiceGrpc.getExportModelMethod) == null) { 408 synchronized (ModelServiceGrpc.class) { 409 if ((getExportModelMethod = ModelServiceGrpc.getExportModelMethod) == null) { 410 ModelServiceGrpc.getExportModelMethod = 411 getExportModelMethod = 412 io.grpc.MethodDescriptor 413 .<com.google.cloud.aiplatform.v1.ExportModelRequest, 414 com.google.longrunning.Operation> 415 newBuilder() 416 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 417 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) 418 .setSampledToLocalTracing(true) 419 .setRequestMarshaller( 420 io.grpc.protobuf.ProtoUtils.marshaller( 421 com.google.cloud.aiplatform.v1.ExportModelRequest 422 .getDefaultInstance())) 423 .setResponseMarshaller( 424 io.grpc.protobuf.ProtoUtils.marshaller( 425 com.google.longrunning.Operation.getDefaultInstance())) 426 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("ExportModel")) 427 .build(); 428 } 429 } 430 } 431 return getExportModelMethod; 432 } 433 434 private static volatile io.grpc.MethodDescriptor< 435 com.google.cloud.aiplatform.v1.CopyModelRequest, com.google.longrunning.Operation> 436 getCopyModelMethod; 437 438 @io.grpc.stub.annotations.RpcMethod( 439 fullMethodName = SERVICE_NAME + '/' + "CopyModel", 440 requestType = com.google.cloud.aiplatform.v1.CopyModelRequest.class, 441 responseType = com.google.longrunning.Operation.class, 442 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 443 public static io.grpc.MethodDescriptor< 444 com.google.cloud.aiplatform.v1.CopyModelRequest, com.google.longrunning.Operation> getCopyModelMethod()445 getCopyModelMethod() { 446 io.grpc.MethodDescriptor< 447 com.google.cloud.aiplatform.v1.CopyModelRequest, com.google.longrunning.Operation> 448 getCopyModelMethod; 449 if ((getCopyModelMethod = ModelServiceGrpc.getCopyModelMethod) == null) { 450 synchronized (ModelServiceGrpc.class) { 451 if ((getCopyModelMethod = ModelServiceGrpc.getCopyModelMethod) == null) { 452 ModelServiceGrpc.getCopyModelMethod = 453 getCopyModelMethod = 454 io.grpc.MethodDescriptor 455 .<com.google.cloud.aiplatform.v1.CopyModelRequest, 456 com.google.longrunning.Operation> 457 newBuilder() 458 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 459 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyModel")) 460 .setSampledToLocalTracing(true) 461 .setRequestMarshaller( 462 io.grpc.protobuf.ProtoUtils.marshaller( 463 com.google.cloud.aiplatform.v1.CopyModelRequest.getDefaultInstance())) 464 .setResponseMarshaller( 465 io.grpc.protobuf.ProtoUtils.marshaller( 466 com.google.longrunning.Operation.getDefaultInstance())) 467 .setSchemaDescriptor(new ModelServiceMethodDescriptorSupplier("CopyModel")) 468 .build(); 469 } 470 } 471 } 472 return getCopyModelMethod; 473 } 474 475 private static volatile io.grpc.MethodDescriptor< 476 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, 477 com.google.cloud.aiplatform.v1.ModelEvaluation> 478 getImportModelEvaluationMethod; 479 480 @io.grpc.stub.annotations.RpcMethod( 481 fullMethodName = SERVICE_NAME + '/' + "ImportModelEvaluation", 482 requestType = com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest.class, 483 responseType = com.google.cloud.aiplatform.v1.ModelEvaluation.class, 484 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 485 public static io.grpc.MethodDescriptor< 486 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, 487 com.google.cloud.aiplatform.v1.ModelEvaluation> getImportModelEvaluationMethod()488 getImportModelEvaluationMethod() { 489 io.grpc.MethodDescriptor< 490 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, 491 com.google.cloud.aiplatform.v1.ModelEvaluation> 492 getImportModelEvaluationMethod; 493 if ((getImportModelEvaluationMethod = ModelServiceGrpc.getImportModelEvaluationMethod) 494 == null) { 495 synchronized (ModelServiceGrpc.class) { 496 if ((getImportModelEvaluationMethod = ModelServiceGrpc.getImportModelEvaluationMethod) 497 == null) { 498 ModelServiceGrpc.getImportModelEvaluationMethod = 499 getImportModelEvaluationMethod = 500 io.grpc.MethodDescriptor 501 .<com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, 502 com.google.cloud.aiplatform.v1.ModelEvaluation> 503 newBuilder() 504 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 505 .setFullMethodName( 506 generateFullMethodName(SERVICE_NAME, "ImportModelEvaluation")) 507 .setSampledToLocalTracing(true) 508 .setRequestMarshaller( 509 io.grpc.protobuf.ProtoUtils.marshaller( 510 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest 511 .getDefaultInstance())) 512 .setResponseMarshaller( 513 io.grpc.protobuf.ProtoUtils.marshaller( 514 com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance())) 515 .setSchemaDescriptor( 516 new ModelServiceMethodDescriptorSupplier("ImportModelEvaluation")) 517 .build(); 518 } 519 } 520 } 521 return getImportModelEvaluationMethod; 522 } 523 524 private static volatile io.grpc.MethodDescriptor< 525 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, 526 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> 527 getBatchImportModelEvaluationSlicesMethod; 528 529 @io.grpc.stub.annotations.RpcMethod( 530 fullMethodName = SERVICE_NAME + '/' + "BatchImportModelEvaluationSlices", 531 requestType = com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.class, 532 responseType = com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.class, 533 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 534 public static io.grpc.MethodDescriptor< 535 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, 536 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> getBatchImportModelEvaluationSlicesMethod()537 getBatchImportModelEvaluationSlicesMethod() { 538 io.grpc.MethodDescriptor< 539 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, 540 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> 541 getBatchImportModelEvaluationSlicesMethod; 542 if ((getBatchImportModelEvaluationSlicesMethod = 543 ModelServiceGrpc.getBatchImportModelEvaluationSlicesMethod) 544 == null) { 545 synchronized (ModelServiceGrpc.class) { 546 if ((getBatchImportModelEvaluationSlicesMethod = 547 ModelServiceGrpc.getBatchImportModelEvaluationSlicesMethod) 548 == null) { 549 ModelServiceGrpc.getBatchImportModelEvaluationSlicesMethod = 550 getBatchImportModelEvaluationSlicesMethod = 551 io.grpc.MethodDescriptor 552 .<com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, 553 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> 554 newBuilder() 555 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 556 .setFullMethodName( 557 generateFullMethodName(SERVICE_NAME, "BatchImportModelEvaluationSlices")) 558 .setSampledToLocalTracing(true) 559 .setRequestMarshaller( 560 io.grpc.protobuf.ProtoUtils.marshaller( 561 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest 562 .getDefaultInstance())) 563 .setResponseMarshaller( 564 io.grpc.protobuf.ProtoUtils.marshaller( 565 com.google.cloud.aiplatform.v1 566 .BatchImportModelEvaluationSlicesResponse.getDefaultInstance())) 567 .setSchemaDescriptor( 568 new ModelServiceMethodDescriptorSupplier( 569 "BatchImportModelEvaluationSlices")) 570 .build(); 571 } 572 } 573 } 574 return getBatchImportModelEvaluationSlicesMethod; 575 } 576 577 private static volatile io.grpc.MethodDescriptor< 578 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, 579 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> 580 getBatchImportEvaluatedAnnotationsMethod; 581 582 @io.grpc.stub.annotations.RpcMethod( 583 fullMethodName = SERVICE_NAME + '/' + "BatchImportEvaluatedAnnotations", 584 requestType = com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest.class, 585 responseType = com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse.class, 586 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 587 public static io.grpc.MethodDescriptor< 588 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, 589 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> getBatchImportEvaluatedAnnotationsMethod()590 getBatchImportEvaluatedAnnotationsMethod() { 591 io.grpc.MethodDescriptor< 592 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, 593 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> 594 getBatchImportEvaluatedAnnotationsMethod; 595 if ((getBatchImportEvaluatedAnnotationsMethod = 596 ModelServiceGrpc.getBatchImportEvaluatedAnnotationsMethod) 597 == null) { 598 synchronized (ModelServiceGrpc.class) { 599 if ((getBatchImportEvaluatedAnnotationsMethod = 600 ModelServiceGrpc.getBatchImportEvaluatedAnnotationsMethod) 601 == null) { 602 ModelServiceGrpc.getBatchImportEvaluatedAnnotationsMethod = 603 getBatchImportEvaluatedAnnotationsMethod = 604 io.grpc.MethodDescriptor 605 .<com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, 606 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> 607 newBuilder() 608 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 609 .setFullMethodName( 610 generateFullMethodName(SERVICE_NAME, "BatchImportEvaluatedAnnotations")) 611 .setSampledToLocalTracing(true) 612 .setRequestMarshaller( 613 io.grpc.protobuf.ProtoUtils.marshaller( 614 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest 615 .getDefaultInstance())) 616 .setResponseMarshaller( 617 io.grpc.protobuf.ProtoUtils.marshaller( 618 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse 619 .getDefaultInstance())) 620 .setSchemaDescriptor( 621 new ModelServiceMethodDescriptorSupplier( 622 "BatchImportEvaluatedAnnotations")) 623 .build(); 624 } 625 } 626 } 627 return getBatchImportEvaluatedAnnotationsMethod; 628 } 629 630 private static volatile io.grpc.MethodDescriptor< 631 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, 632 com.google.cloud.aiplatform.v1.ModelEvaluation> 633 getGetModelEvaluationMethod; 634 635 @io.grpc.stub.annotations.RpcMethod( 636 fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", 637 requestType = com.google.cloud.aiplatform.v1.GetModelEvaluationRequest.class, 638 responseType = com.google.cloud.aiplatform.v1.ModelEvaluation.class, 639 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 640 public static io.grpc.MethodDescriptor< 641 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, 642 com.google.cloud.aiplatform.v1.ModelEvaluation> getGetModelEvaluationMethod()643 getGetModelEvaluationMethod() { 644 io.grpc.MethodDescriptor< 645 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, 646 com.google.cloud.aiplatform.v1.ModelEvaluation> 647 getGetModelEvaluationMethod; 648 if ((getGetModelEvaluationMethod = ModelServiceGrpc.getGetModelEvaluationMethod) == null) { 649 synchronized (ModelServiceGrpc.class) { 650 if ((getGetModelEvaluationMethod = ModelServiceGrpc.getGetModelEvaluationMethod) == null) { 651 ModelServiceGrpc.getGetModelEvaluationMethod = 652 getGetModelEvaluationMethod = 653 io.grpc.MethodDescriptor 654 .<com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, 655 com.google.cloud.aiplatform.v1.ModelEvaluation> 656 newBuilder() 657 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 658 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) 659 .setSampledToLocalTracing(true) 660 .setRequestMarshaller( 661 io.grpc.protobuf.ProtoUtils.marshaller( 662 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest 663 .getDefaultInstance())) 664 .setResponseMarshaller( 665 io.grpc.protobuf.ProtoUtils.marshaller( 666 com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance())) 667 .setSchemaDescriptor( 668 new ModelServiceMethodDescriptorSupplier("GetModelEvaluation")) 669 .build(); 670 } 671 } 672 } 673 return getGetModelEvaluationMethod; 674 } 675 676 private static volatile io.grpc.MethodDescriptor< 677 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, 678 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> 679 getListModelEvaluationsMethod; 680 681 @io.grpc.stub.annotations.RpcMethod( 682 fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", 683 requestType = com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest.class, 684 responseType = com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse.class, 685 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 686 public static io.grpc.MethodDescriptor< 687 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, 688 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> getListModelEvaluationsMethod()689 getListModelEvaluationsMethod() { 690 io.grpc.MethodDescriptor< 691 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, 692 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> 693 getListModelEvaluationsMethod; 694 if ((getListModelEvaluationsMethod = ModelServiceGrpc.getListModelEvaluationsMethod) == null) { 695 synchronized (ModelServiceGrpc.class) { 696 if ((getListModelEvaluationsMethod = ModelServiceGrpc.getListModelEvaluationsMethod) 697 == null) { 698 ModelServiceGrpc.getListModelEvaluationsMethod = 699 getListModelEvaluationsMethod = 700 io.grpc.MethodDescriptor 701 .<com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, 702 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> 703 newBuilder() 704 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 705 .setFullMethodName( 706 generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) 707 .setSampledToLocalTracing(true) 708 .setRequestMarshaller( 709 io.grpc.protobuf.ProtoUtils.marshaller( 710 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest 711 .getDefaultInstance())) 712 .setResponseMarshaller( 713 io.grpc.protobuf.ProtoUtils.marshaller( 714 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse 715 .getDefaultInstance())) 716 .setSchemaDescriptor( 717 new ModelServiceMethodDescriptorSupplier("ListModelEvaluations")) 718 .build(); 719 } 720 } 721 } 722 return getListModelEvaluationsMethod; 723 } 724 725 private static volatile io.grpc.MethodDescriptor< 726 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, 727 com.google.cloud.aiplatform.v1.ModelEvaluationSlice> 728 getGetModelEvaluationSliceMethod; 729 730 @io.grpc.stub.annotations.RpcMethod( 731 fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluationSlice", 732 requestType = com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.class, 733 responseType = com.google.cloud.aiplatform.v1.ModelEvaluationSlice.class, 734 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 735 public static io.grpc.MethodDescriptor< 736 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, 737 com.google.cloud.aiplatform.v1.ModelEvaluationSlice> getGetModelEvaluationSliceMethod()738 getGetModelEvaluationSliceMethod() { 739 io.grpc.MethodDescriptor< 740 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, 741 com.google.cloud.aiplatform.v1.ModelEvaluationSlice> 742 getGetModelEvaluationSliceMethod; 743 if ((getGetModelEvaluationSliceMethod = ModelServiceGrpc.getGetModelEvaluationSliceMethod) 744 == null) { 745 synchronized (ModelServiceGrpc.class) { 746 if ((getGetModelEvaluationSliceMethod = ModelServiceGrpc.getGetModelEvaluationSliceMethod) 747 == null) { 748 ModelServiceGrpc.getGetModelEvaluationSliceMethod = 749 getGetModelEvaluationSliceMethod = 750 io.grpc.MethodDescriptor 751 .<com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, 752 com.google.cloud.aiplatform.v1.ModelEvaluationSlice> 753 newBuilder() 754 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 755 .setFullMethodName( 756 generateFullMethodName(SERVICE_NAME, "GetModelEvaluationSlice")) 757 .setSampledToLocalTracing(true) 758 .setRequestMarshaller( 759 io.grpc.protobuf.ProtoUtils.marshaller( 760 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest 761 .getDefaultInstance())) 762 .setResponseMarshaller( 763 io.grpc.protobuf.ProtoUtils.marshaller( 764 com.google.cloud.aiplatform.v1.ModelEvaluationSlice 765 .getDefaultInstance())) 766 .setSchemaDescriptor( 767 new ModelServiceMethodDescriptorSupplier("GetModelEvaluationSlice")) 768 .build(); 769 } 770 } 771 } 772 return getGetModelEvaluationSliceMethod; 773 } 774 775 private static volatile io.grpc.MethodDescriptor< 776 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, 777 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> 778 getListModelEvaluationSlicesMethod; 779 780 @io.grpc.stub.annotations.RpcMethod( 781 fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluationSlices", 782 requestType = com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.class, 783 responseType = com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.class, 784 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 785 public static io.grpc.MethodDescriptor< 786 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, 787 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> getListModelEvaluationSlicesMethod()788 getListModelEvaluationSlicesMethod() { 789 io.grpc.MethodDescriptor< 790 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, 791 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> 792 getListModelEvaluationSlicesMethod; 793 if ((getListModelEvaluationSlicesMethod = ModelServiceGrpc.getListModelEvaluationSlicesMethod) 794 == null) { 795 synchronized (ModelServiceGrpc.class) { 796 if ((getListModelEvaluationSlicesMethod = 797 ModelServiceGrpc.getListModelEvaluationSlicesMethod) 798 == null) { 799 ModelServiceGrpc.getListModelEvaluationSlicesMethod = 800 getListModelEvaluationSlicesMethod = 801 io.grpc.MethodDescriptor 802 .<com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, 803 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> 804 newBuilder() 805 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 806 .setFullMethodName( 807 generateFullMethodName(SERVICE_NAME, "ListModelEvaluationSlices")) 808 .setSampledToLocalTracing(true) 809 .setRequestMarshaller( 810 io.grpc.protobuf.ProtoUtils.marshaller( 811 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest 812 .getDefaultInstance())) 813 .setResponseMarshaller( 814 io.grpc.protobuf.ProtoUtils.marshaller( 815 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse 816 .getDefaultInstance())) 817 .setSchemaDescriptor( 818 new ModelServiceMethodDescriptorSupplier("ListModelEvaluationSlices")) 819 .build(); 820 } 821 } 822 } 823 return getListModelEvaluationSlicesMethod; 824 } 825 826 /** Creates a new async stub that supports all call types for the service */ newStub(io.grpc.Channel channel)827 public static ModelServiceStub newStub(io.grpc.Channel channel) { 828 io.grpc.stub.AbstractStub.StubFactory<ModelServiceStub> factory = 829 new io.grpc.stub.AbstractStub.StubFactory<ModelServiceStub>() { 830 @java.lang.Override 831 public ModelServiceStub newStub( 832 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 833 return new ModelServiceStub(channel, callOptions); 834 } 835 }; 836 return ModelServiceStub.newStub(factory, channel); 837 } 838 839 /** 840 * Creates a new blocking-style stub that supports unary and streaming output calls on the service 841 */ newBlockingStub(io.grpc.Channel channel)842 public static ModelServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { 843 io.grpc.stub.AbstractStub.StubFactory<ModelServiceBlockingStub> factory = 844 new io.grpc.stub.AbstractStub.StubFactory<ModelServiceBlockingStub>() { 845 @java.lang.Override 846 public ModelServiceBlockingStub newStub( 847 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 848 return new ModelServiceBlockingStub(channel, callOptions); 849 } 850 }; 851 return ModelServiceBlockingStub.newStub(factory, channel); 852 } 853 854 /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ newFutureStub(io.grpc.Channel channel)855 public static ModelServiceFutureStub newFutureStub(io.grpc.Channel channel) { 856 io.grpc.stub.AbstractStub.StubFactory<ModelServiceFutureStub> factory = 857 new io.grpc.stub.AbstractStub.StubFactory<ModelServiceFutureStub>() { 858 @java.lang.Override 859 public ModelServiceFutureStub newStub( 860 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 861 return new ModelServiceFutureStub(channel, callOptions); 862 } 863 }; 864 return ModelServiceFutureStub.newStub(factory, channel); 865 } 866 867 /** 868 * 869 * 870 * <pre> 871 * A service for managing Vertex AI's machine learning Models. 872 * </pre> 873 */ 874 public interface AsyncService { 875 876 /** 877 * 878 * 879 * <pre> 880 * Uploads a Model artifact into Vertex AI. 881 * </pre> 882 */ uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)883 default void uploadModel( 884 com.google.cloud.aiplatform.v1.UploadModelRequest request, 885 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 886 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 887 getUploadModelMethod(), responseObserver); 888 } 889 890 /** 891 * 892 * 893 * <pre> 894 * Gets a Model. 895 * </pre> 896 */ getModel( com.google.cloud.aiplatform.v1.GetModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)897 default void getModel( 898 com.google.cloud.aiplatform.v1.GetModelRequest request, 899 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 900 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); 901 } 902 903 /** 904 * 905 * 906 * <pre> 907 * Lists Models in a Location. 908 * </pre> 909 */ listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelsResponse> responseObserver)910 default void listModels( 911 com.google.cloud.aiplatform.v1.ListModelsRequest request, 912 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelsResponse> 913 responseObserver) { 914 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); 915 } 916 917 /** 918 * 919 * 920 * <pre> 921 * Lists versions of the specified model. 922 * </pre> 923 */ listModelVersions( com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelVersionsResponse> responseObserver)924 default void listModelVersions( 925 com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, 926 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelVersionsResponse> 927 responseObserver) { 928 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 929 getListModelVersionsMethod(), responseObserver); 930 } 931 932 /** 933 * 934 * 935 * <pre> 936 * Updates a Model. 937 * </pre> 938 */ updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)939 default void updateModel( 940 com.google.cloud.aiplatform.v1.UpdateModelRequest request, 941 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 942 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 943 getUpdateModelMethod(), responseObserver); 944 } 945 946 /** 947 * 948 * 949 * <pre> 950 * Deletes a Model. 951 * A model cannot be deleted if any 952 * [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a 953 * [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the 954 * model in its 955 * [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] 956 * field. 957 * </pre> 958 */ deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)959 default void deleteModel( 960 com.google.cloud.aiplatform.v1.DeleteModelRequest request, 961 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 962 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 963 getDeleteModelMethod(), responseObserver); 964 } 965 966 /** 967 * 968 * 969 * <pre> 970 * Deletes a Model version. 971 * Model version can only be deleted if there are no 972 * [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. 973 * Deleting the only version in the Model is not allowed. Use 974 * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for 975 * deleting the Model instead. 976 * </pre> 977 */ deleteModelVersion( com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)978 default void deleteModelVersion( 979 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, 980 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 981 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 982 getDeleteModelVersionMethod(), responseObserver); 983 } 984 985 /** 986 * 987 * 988 * <pre> 989 * Merges a set of aliases for a Model version. 990 * </pre> 991 */ mergeVersionAliases( com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)992 default void mergeVersionAliases( 993 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, 994 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 995 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 996 getMergeVersionAliasesMethod(), responseObserver); 997 } 998 999 /** 1000 * 1001 * 1002 * <pre> 1003 * Exports a trained, exportable Model to a location specified by the 1004 * user. A Model is considered to be exportable if it has at least one 1005 * [supported export 1006 * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. 1007 * </pre> 1008 */ exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1009 default void exportModel( 1010 com.google.cloud.aiplatform.v1.ExportModelRequest request, 1011 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1012 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1013 getExportModelMethod(), responseObserver); 1014 } 1015 1016 /** 1017 * 1018 * 1019 * <pre> 1020 * Copies an already existing Vertex AI Model into the specified Location. 1021 * The source Model must exist in the same Project. 1022 * When copying custom Models, the users themselves are responsible for 1023 * [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be 1024 * region-agnostic, as well as making sure that any resources (e.g. files) it 1025 * depends on remain accessible. 1026 * </pre> 1027 */ copyModel( com.google.cloud.aiplatform.v1.CopyModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1028 default void copyModel( 1029 com.google.cloud.aiplatform.v1.CopyModelRequest request, 1030 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1031 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyModelMethod(), responseObserver); 1032 } 1033 1034 /** 1035 * 1036 * 1037 * <pre> 1038 * Imports an externally generated ModelEvaluation. 1039 * </pre> 1040 */ importModelEvaluation( com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> responseObserver)1041 default void importModelEvaluation( 1042 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request, 1043 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> 1044 responseObserver) { 1045 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1046 getImportModelEvaluationMethod(), responseObserver); 1047 } 1048 1049 /** 1050 * 1051 * 1052 * <pre> 1053 * Imports a list of externally generated ModelEvaluationSlice. 1054 * </pre> 1055 */ batchImportModelEvaluationSlices( com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> responseObserver)1056 default void batchImportModelEvaluationSlices( 1057 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request, 1058 io.grpc.stub.StreamObserver< 1059 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> 1060 responseObserver) { 1061 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1062 getBatchImportModelEvaluationSlicesMethod(), responseObserver); 1063 } 1064 1065 /** 1066 * 1067 * 1068 * <pre> 1069 * Imports a list of externally generated EvaluatedAnnotations. 1070 * </pre> 1071 */ batchImportEvaluatedAnnotations( com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> responseObserver)1072 default void batchImportEvaluatedAnnotations( 1073 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request, 1074 io.grpc.stub.StreamObserver< 1075 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> 1076 responseObserver) { 1077 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1078 getBatchImportEvaluatedAnnotationsMethod(), responseObserver); 1079 } 1080 1081 /** 1082 * 1083 * 1084 * <pre> 1085 * Gets a ModelEvaluation. 1086 * </pre> 1087 */ getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> responseObserver)1088 default void getModelEvaluation( 1089 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, 1090 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> 1091 responseObserver) { 1092 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1093 getGetModelEvaluationMethod(), responseObserver); 1094 } 1095 1096 /** 1097 * 1098 * 1099 * <pre> 1100 * Lists ModelEvaluations in a Model. 1101 * </pre> 1102 */ listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> responseObserver)1103 default void listModelEvaluations( 1104 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, 1105 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> 1106 responseObserver) { 1107 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1108 getListModelEvaluationsMethod(), responseObserver); 1109 } 1110 1111 /** 1112 * 1113 * 1114 * <pre> 1115 * Gets a ModelEvaluationSlice. 1116 * </pre> 1117 */ getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluationSlice> responseObserver)1118 default void getModelEvaluationSlice( 1119 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, 1120 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluationSlice> 1121 responseObserver) { 1122 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1123 getGetModelEvaluationSliceMethod(), responseObserver); 1124 } 1125 1126 /** 1127 * 1128 * 1129 * <pre> 1130 * Lists ModelEvaluationSlices in a ModelEvaluation. 1131 * </pre> 1132 */ listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> responseObserver)1133 default void listModelEvaluationSlices( 1134 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request, 1135 io.grpc.stub.StreamObserver< 1136 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> 1137 responseObserver) { 1138 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1139 getListModelEvaluationSlicesMethod(), responseObserver); 1140 } 1141 } 1142 1143 /** 1144 * Base class for the server implementation of the service ModelService. 1145 * 1146 * <pre> 1147 * A service for managing Vertex AI's machine learning Models. 1148 * </pre> 1149 */ 1150 public abstract static class ModelServiceImplBase 1151 implements io.grpc.BindableService, AsyncService { 1152 1153 @java.lang.Override bindService()1154 public final io.grpc.ServerServiceDefinition bindService() { 1155 return ModelServiceGrpc.bindService(this); 1156 } 1157 } 1158 1159 /** 1160 * A stub to allow clients to do asynchronous rpc calls to service ModelService. 1161 * 1162 * <pre> 1163 * A service for managing Vertex AI's machine learning Models. 1164 * </pre> 1165 */ 1166 public static final class ModelServiceStub 1167 extends io.grpc.stub.AbstractAsyncStub<ModelServiceStub> { ModelServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1168 private ModelServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1169 super(channel, callOptions); 1170 } 1171 1172 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1173 protected ModelServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1174 return new ModelServiceStub(channel, callOptions); 1175 } 1176 1177 /** 1178 * 1179 * 1180 * <pre> 1181 * Uploads a Model artifact into Vertex AI. 1182 * </pre> 1183 */ uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1184 public void uploadModel( 1185 com.google.cloud.aiplatform.v1.UploadModelRequest request, 1186 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1187 io.grpc.stub.ClientCalls.asyncUnaryCall( 1188 getChannel().newCall(getUploadModelMethod(), getCallOptions()), 1189 request, 1190 responseObserver); 1191 } 1192 1193 /** 1194 * 1195 * 1196 * <pre> 1197 * Gets a Model. 1198 * </pre> 1199 */ getModel( com.google.cloud.aiplatform.v1.GetModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)1200 public void getModel( 1201 com.google.cloud.aiplatform.v1.GetModelRequest request, 1202 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 1203 io.grpc.stub.ClientCalls.asyncUnaryCall( 1204 getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); 1205 } 1206 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * Lists Models in a Location. 1212 * </pre> 1213 */ listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelsResponse> responseObserver)1214 public void listModels( 1215 com.google.cloud.aiplatform.v1.ListModelsRequest request, 1216 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelsResponse> 1217 responseObserver) { 1218 io.grpc.stub.ClientCalls.asyncUnaryCall( 1219 getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); 1220 } 1221 1222 /** 1223 * 1224 * 1225 * <pre> 1226 * Lists versions of the specified model. 1227 * </pre> 1228 */ listModelVersions( com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelVersionsResponse> responseObserver)1229 public void listModelVersions( 1230 com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, 1231 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelVersionsResponse> 1232 responseObserver) { 1233 io.grpc.stub.ClientCalls.asyncUnaryCall( 1234 getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), 1235 request, 1236 responseObserver); 1237 } 1238 1239 /** 1240 * 1241 * 1242 * <pre> 1243 * Updates a Model. 1244 * </pre> 1245 */ updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)1246 public void updateModel( 1247 com.google.cloud.aiplatform.v1.UpdateModelRequest request, 1248 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 1249 io.grpc.stub.ClientCalls.asyncUnaryCall( 1250 getChannel().newCall(getUpdateModelMethod(), getCallOptions()), 1251 request, 1252 responseObserver); 1253 } 1254 1255 /** 1256 * 1257 * 1258 * <pre> 1259 * Deletes a Model. 1260 * A model cannot be deleted if any 1261 * [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a 1262 * [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the 1263 * model in its 1264 * [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] 1265 * field. 1266 * </pre> 1267 */ deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1268 public void deleteModel( 1269 com.google.cloud.aiplatform.v1.DeleteModelRequest request, 1270 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1271 io.grpc.stub.ClientCalls.asyncUnaryCall( 1272 getChannel().newCall(getDeleteModelMethod(), getCallOptions()), 1273 request, 1274 responseObserver); 1275 } 1276 1277 /** 1278 * 1279 * 1280 * <pre> 1281 * Deletes a Model version. 1282 * Model version can only be deleted if there are no 1283 * [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. 1284 * Deleting the only version in the Model is not allowed. Use 1285 * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for 1286 * deleting the Model instead. 1287 * </pre> 1288 */ deleteModelVersion( com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1289 public void deleteModelVersion( 1290 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, 1291 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1292 io.grpc.stub.ClientCalls.asyncUnaryCall( 1293 getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), 1294 request, 1295 responseObserver); 1296 } 1297 1298 /** 1299 * 1300 * 1301 * <pre> 1302 * Merges a set of aliases for a Model version. 1303 * </pre> 1304 */ mergeVersionAliases( com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver)1305 public void mergeVersionAliases( 1306 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, 1307 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model> responseObserver) { 1308 io.grpc.stub.ClientCalls.asyncUnaryCall( 1309 getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), 1310 request, 1311 responseObserver); 1312 } 1313 1314 /** 1315 * 1316 * 1317 * <pre> 1318 * Exports a trained, exportable Model to a location specified by the 1319 * user. A Model is considered to be exportable if it has at least one 1320 * [supported export 1321 * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. 1322 * </pre> 1323 */ exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1324 public void exportModel( 1325 com.google.cloud.aiplatform.v1.ExportModelRequest request, 1326 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1327 io.grpc.stub.ClientCalls.asyncUnaryCall( 1328 getChannel().newCall(getExportModelMethod(), getCallOptions()), 1329 request, 1330 responseObserver); 1331 } 1332 1333 /** 1334 * 1335 * 1336 * <pre> 1337 * Copies an already existing Vertex AI Model into the specified Location. 1338 * The source Model must exist in the same Project. 1339 * When copying custom Models, the users themselves are responsible for 1340 * [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be 1341 * region-agnostic, as well as making sure that any resources (e.g. files) it 1342 * depends on remain accessible. 1343 * </pre> 1344 */ copyModel( com.google.cloud.aiplatform.v1.CopyModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1345 public void copyModel( 1346 com.google.cloud.aiplatform.v1.CopyModelRequest request, 1347 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1348 io.grpc.stub.ClientCalls.asyncUnaryCall( 1349 getChannel().newCall(getCopyModelMethod(), getCallOptions()), request, responseObserver); 1350 } 1351 1352 /** 1353 * 1354 * 1355 * <pre> 1356 * Imports an externally generated ModelEvaluation. 1357 * </pre> 1358 */ importModelEvaluation( com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> responseObserver)1359 public void importModelEvaluation( 1360 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request, 1361 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> 1362 responseObserver) { 1363 io.grpc.stub.ClientCalls.asyncUnaryCall( 1364 getChannel().newCall(getImportModelEvaluationMethod(), getCallOptions()), 1365 request, 1366 responseObserver); 1367 } 1368 1369 /** 1370 * 1371 * 1372 * <pre> 1373 * Imports a list of externally generated ModelEvaluationSlice. 1374 * </pre> 1375 */ batchImportModelEvaluationSlices( com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> responseObserver)1376 public void batchImportModelEvaluationSlices( 1377 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request, 1378 io.grpc.stub.StreamObserver< 1379 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> 1380 responseObserver) { 1381 io.grpc.stub.ClientCalls.asyncUnaryCall( 1382 getChannel().newCall(getBatchImportModelEvaluationSlicesMethod(), getCallOptions()), 1383 request, 1384 responseObserver); 1385 } 1386 1387 /** 1388 * 1389 * 1390 * <pre> 1391 * Imports a list of externally generated EvaluatedAnnotations. 1392 * </pre> 1393 */ batchImportEvaluatedAnnotations( com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> responseObserver)1394 public void batchImportEvaluatedAnnotations( 1395 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request, 1396 io.grpc.stub.StreamObserver< 1397 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> 1398 responseObserver) { 1399 io.grpc.stub.ClientCalls.asyncUnaryCall( 1400 getChannel().newCall(getBatchImportEvaluatedAnnotationsMethod(), getCallOptions()), 1401 request, 1402 responseObserver); 1403 } 1404 1405 /** 1406 * 1407 * 1408 * <pre> 1409 * Gets a ModelEvaluation. 1410 * </pre> 1411 */ getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> responseObserver)1412 public void getModelEvaluation( 1413 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request, 1414 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation> 1415 responseObserver) { 1416 io.grpc.stub.ClientCalls.asyncUnaryCall( 1417 getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), 1418 request, 1419 responseObserver); 1420 } 1421 1422 /** 1423 * 1424 * 1425 * <pre> 1426 * Lists ModelEvaluations in a Model. 1427 * </pre> 1428 */ listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> responseObserver)1429 public void listModelEvaluations( 1430 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request, 1431 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> 1432 responseObserver) { 1433 io.grpc.stub.ClientCalls.asyncUnaryCall( 1434 getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), 1435 request, 1436 responseObserver); 1437 } 1438 1439 /** 1440 * 1441 * 1442 * <pre> 1443 * Gets a ModelEvaluationSlice. 1444 * </pre> 1445 */ getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluationSlice> responseObserver)1446 public void getModelEvaluationSlice( 1447 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request, 1448 io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluationSlice> 1449 responseObserver) { 1450 io.grpc.stub.ClientCalls.asyncUnaryCall( 1451 getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), 1452 request, 1453 responseObserver); 1454 } 1455 1456 /** 1457 * 1458 * 1459 * <pre> 1460 * Lists ModelEvaluationSlices in a ModelEvaluation. 1461 * </pre> 1462 */ listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request, io.grpc.stub.StreamObserver< com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> responseObserver)1463 public void listModelEvaluationSlices( 1464 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request, 1465 io.grpc.stub.StreamObserver< 1466 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> 1467 responseObserver) { 1468 io.grpc.stub.ClientCalls.asyncUnaryCall( 1469 getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), 1470 request, 1471 responseObserver); 1472 } 1473 } 1474 1475 /** 1476 * A stub to allow clients to do synchronous rpc calls to service ModelService. 1477 * 1478 * <pre> 1479 * A service for managing Vertex AI's machine learning Models. 1480 * </pre> 1481 */ 1482 public static final class ModelServiceBlockingStub 1483 extends io.grpc.stub.AbstractBlockingStub<ModelServiceBlockingStub> { ModelServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1484 private ModelServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1485 super(channel, callOptions); 1486 } 1487 1488 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1489 protected ModelServiceBlockingStub build( 1490 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1491 return new ModelServiceBlockingStub(channel, callOptions); 1492 } 1493 1494 /** 1495 * 1496 * 1497 * <pre> 1498 * Uploads a Model artifact into Vertex AI. 1499 * </pre> 1500 */ uploadModel( com.google.cloud.aiplatform.v1.UploadModelRequest request)1501 public com.google.longrunning.Operation uploadModel( 1502 com.google.cloud.aiplatform.v1.UploadModelRequest request) { 1503 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1504 getChannel(), getUploadModelMethod(), getCallOptions(), request); 1505 } 1506 1507 /** 1508 * 1509 * 1510 * <pre> 1511 * Gets a Model. 1512 * </pre> 1513 */ getModel( com.google.cloud.aiplatform.v1.GetModelRequest request)1514 public com.google.cloud.aiplatform.v1.Model getModel( 1515 com.google.cloud.aiplatform.v1.GetModelRequest request) { 1516 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1517 getChannel(), getGetModelMethod(), getCallOptions(), request); 1518 } 1519 1520 /** 1521 * 1522 * 1523 * <pre> 1524 * Lists Models in a Location. 1525 * </pre> 1526 */ listModels( com.google.cloud.aiplatform.v1.ListModelsRequest request)1527 public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( 1528 com.google.cloud.aiplatform.v1.ListModelsRequest request) { 1529 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1530 getChannel(), getListModelsMethod(), getCallOptions(), request); 1531 } 1532 1533 /** 1534 * 1535 * 1536 * <pre> 1537 * Lists versions of the specified model. 1538 * </pre> 1539 */ listModelVersions( com.google.cloud.aiplatform.v1.ListModelVersionsRequest request)1540 public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersions( 1541 com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) { 1542 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1543 getChannel(), getListModelVersionsMethod(), getCallOptions(), request); 1544 } 1545 1546 /** 1547 * 1548 * 1549 * <pre> 1550 * Updates a Model. 1551 * </pre> 1552 */ updateModel( com.google.cloud.aiplatform.v1.UpdateModelRequest request)1553 public com.google.cloud.aiplatform.v1.Model updateModel( 1554 com.google.cloud.aiplatform.v1.UpdateModelRequest request) { 1555 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1556 getChannel(), getUpdateModelMethod(), getCallOptions(), request); 1557 } 1558 1559 /** 1560 * 1561 * 1562 * <pre> 1563 * Deletes a Model. 1564 * A model cannot be deleted if any 1565 * [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a 1566 * [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the 1567 * model in its 1568 * [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] 1569 * field. 1570 * </pre> 1571 */ deleteModel( com.google.cloud.aiplatform.v1.DeleteModelRequest request)1572 public com.google.longrunning.Operation deleteModel( 1573 com.google.cloud.aiplatform.v1.DeleteModelRequest request) { 1574 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1575 getChannel(), getDeleteModelMethod(), getCallOptions(), request); 1576 } 1577 1578 /** 1579 * 1580 * 1581 * <pre> 1582 * Deletes a Model version. 1583 * Model version can only be deleted if there are no 1584 * [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. 1585 * Deleting the only version in the Model is not allowed. Use 1586 * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for 1587 * deleting the Model instead. 1588 * </pre> 1589 */ deleteModelVersion( com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request)1590 public com.google.longrunning.Operation deleteModelVersion( 1591 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) { 1592 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1593 getChannel(), getDeleteModelVersionMethod(), getCallOptions(), request); 1594 } 1595 1596 /** 1597 * 1598 * 1599 * <pre> 1600 * Merges a set of aliases for a Model version. 1601 * </pre> 1602 */ mergeVersionAliases( com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request)1603 public com.google.cloud.aiplatform.v1.Model mergeVersionAliases( 1604 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) { 1605 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1606 getChannel(), getMergeVersionAliasesMethod(), getCallOptions(), request); 1607 } 1608 1609 /** 1610 * 1611 * 1612 * <pre> 1613 * Exports a trained, exportable Model to a location specified by the 1614 * user. A Model is considered to be exportable if it has at least one 1615 * [supported export 1616 * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. 1617 * </pre> 1618 */ exportModel( com.google.cloud.aiplatform.v1.ExportModelRequest request)1619 public com.google.longrunning.Operation exportModel( 1620 com.google.cloud.aiplatform.v1.ExportModelRequest request) { 1621 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1622 getChannel(), getExportModelMethod(), getCallOptions(), request); 1623 } 1624 1625 /** 1626 * 1627 * 1628 * <pre> 1629 * Copies an already existing Vertex AI Model into the specified Location. 1630 * The source Model must exist in the same Project. 1631 * When copying custom Models, the users themselves are responsible for 1632 * [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be 1633 * region-agnostic, as well as making sure that any resources (e.g. files) it 1634 * depends on remain accessible. 1635 * </pre> 1636 */ copyModel( com.google.cloud.aiplatform.v1.CopyModelRequest request)1637 public com.google.longrunning.Operation copyModel( 1638 com.google.cloud.aiplatform.v1.CopyModelRequest request) { 1639 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1640 getChannel(), getCopyModelMethod(), getCallOptions(), request); 1641 } 1642 1643 /** 1644 * 1645 * 1646 * <pre> 1647 * Imports an externally generated ModelEvaluation. 1648 * </pre> 1649 */ importModelEvaluation( com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request)1650 public com.google.cloud.aiplatform.v1.ModelEvaluation importModelEvaluation( 1651 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request) { 1652 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1653 getChannel(), getImportModelEvaluationMethod(), getCallOptions(), request); 1654 } 1655 1656 /** 1657 * 1658 * 1659 * <pre> 1660 * Imports a list of externally generated ModelEvaluationSlice. 1661 * </pre> 1662 */ 1663 public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices( com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request)1664 batchImportModelEvaluationSlices( 1665 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request) { 1666 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1667 getChannel(), getBatchImportModelEvaluationSlicesMethod(), getCallOptions(), request); 1668 } 1669 1670 /** 1671 * 1672 * 1673 * <pre> 1674 * Imports a list of externally generated EvaluatedAnnotations. 1675 * </pre> 1676 */ 1677 public com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations( com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request)1678 batchImportEvaluatedAnnotations( 1679 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request) { 1680 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1681 getChannel(), getBatchImportEvaluatedAnnotationsMethod(), getCallOptions(), request); 1682 } 1683 1684 /** 1685 * 1686 * 1687 * <pre> 1688 * Gets a ModelEvaluation. 1689 * </pre> 1690 */ getModelEvaluation( com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request)1691 public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation( 1692 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) { 1693 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1694 getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); 1695 } 1696 1697 /** 1698 * 1699 * 1700 * <pre> 1701 * Lists ModelEvaluations in a Model. 1702 * </pre> 1703 */ listModelEvaluations( com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request)1704 public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse listModelEvaluations( 1705 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) { 1706 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1707 getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); 1708 } 1709 1710 /** 1711 * 1712 * 1713 * <pre> 1714 * Gets a ModelEvaluationSlice. 1715 * </pre> 1716 */ getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request)1717 public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSlice( 1718 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) { 1719 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1720 getChannel(), getGetModelEvaluationSliceMethod(), getCallOptions(), request); 1721 } 1722 1723 /** 1724 * 1725 * 1726 * <pre> 1727 * Lists ModelEvaluationSlices in a ModelEvaluation. 1728 * </pre> 1729 */ 1730 public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request)1731 listModelEvaluationSlices( 1732 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) { 1733 return io.grpc.stub.ClientCalls.blockingUnaryCall( 1734 getChannel(), getListModelEvaluationSlicesMethod(), getCallOptions(), request); 1735 } 1736 } 1737 1738 /** 1739 * A stub to allow clients to do ListenableFuture-style rpc calls to service ModelService. 1740 * 1741 * <pre> 1742 * A service for managing Vertex AI's machine learning Models. 1743 * </pre> 1744 */ 1745 public static final class ModelServiceFutureStub 1746 extends io.grpc.stub.AbstractFutureStub<ModelServiceFutureStub> { ModelServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1747 private ModelServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1748 super(channel, callOptions); 1749 } 1750 1751 @java.lang.Override build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1752 protected ModelServiceFutureStub build( 1753 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1754 return new ModelServiceFutureStub(channel, callOptions); 1755 } 1756 1757 /** 1758 * 1759 * 1760 * <pre> 1761 * Uploads a Model artifact into Vertex AI. 1762 * </pre> 1763 */ 1764 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> uploadModel(com.google.cloud.aiplatform.v1.UploadModelRequest request)1765 uploadModel(com.google.cloud.aiplatform.v1.UploadModelRequest request) { 1766 return io.grpc.stub.ClientCalls.futureUnaryCall( 1767 getChannel().newCall(getUploadModelMethod(), getCallOptions()), request); 1768 } 1769 1770 /** 1771 * 1772 * 1773 * <pre> 1774 * Gets a Model. 1775 * </pre> 1776 */ 1777 public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.aiplatform.v1.Model> getModel(com.google.cloud.aiplatform.v1.GetModelRequest request)1778 getModel(com.google.cloud.aiplatform.v1.GetModelRequest request) { 1779 return io.grpc.stub.ClientCalls.futureUnaryCall( 1780 getChannel().newCall(getGetModelMethod(), getCallOptions()), request); 1781 } 1782 1783 /** 1784 * 1785 * 1786 * <pre> 1787 * Lists Models in a Location. 1788 * </pre> 1789 */ 1790 public com.google.common.util.concurrent.ListenableFuture< 1791 com.google.cloud.aiplatform.v1.ListModelsResponse> listModels(com.google.cloud.aiplatform.v1.ListModelsRequest request)1792 listModels(com.google.cloud.aiplatform.v1.ListModelsRequest request) { 1793 return io.grpc.stub.ClientCalls.futureUnaryCall( 1794 getChannel().newCall(getListModelsMethod(), getCallOptions()), request); 1795 } 1796 1797 /** 1798 * 1799 * 1800 * <pre> 1801 * Lists versions of the specified model. 1802 * </pre> 1803 */ 1804 public com.google.common.util.concurrent.ListenableFuture< 1805 com.google.cloud.aiplatform.v1.ListModelVersionsResponse> listModelVersions(com.google.cloud.aiplatform.v1.ListModelVersionsRequest request)1806 listModelVersions(com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) { 1807 return io.grpc.stub.ClientCalls.futureUnaryCall( 1808 getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), request); 1809 } 1810 1811 /** 1812 * 1813 * 1814 * <pre> 1815 * Updates a Model. 1816 * </pre> 1817 */ 1818 public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.aiplatform.v1.Model> updateModel(com.google.cloud.aiplatform.v1.UpdateModelRequest request)1819 updateModel(com.google.cloud.aiplatform.v1.UpdateModelRequest request) { 1820 return io.grpc.stub.ClientCalls.futureUnaryCall( 1821 getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); 1822 } 1823 1824 /** 1825 * 1826 * 1827 * <pre> 1828 * Deletes a Model. 1829 * A model cannot be deleted if any 1830 * [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a 1831 * [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the 1832 * model in its 1833 * [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] 1834 * field. 1835 * </pre> 1836 */ 1837 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteModel(com.google.cloud.aiplatform.v1.DeleteModelRequest request)1838 deleteModel(com.google.cloud.aiplatform.v1.DeleteModelRequest request) { 1839 return io.grpc.stub.ClientCalls.futureUnaryCall( 1840 getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); 1841 } 1842 1843 /** 1844 * 1845 * 1846 * <pre> 1847 * Deletes a Model version. 1848 * Model version can only be deleted if there are no 1849 * [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. 1850 * Deleting the only version in the Model is not allowed. Use 1851 * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for 1852 * deleting the Model instead. 1853 * </pre> 1854 */ 1855 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteModelVersion(com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request)1856 deleteModelVersion(com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) { 1857 return io.grpc.stub.ClientCalls.futureUnaryCall( 1858 getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), request); 1859 } 1860 1861 /** 1862 * 1863 * 1864 * <pre> 1865 * Merges a set of aliases for a Model version. 1866 * </pre> 1867 */ 1868 public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.aiplatform.v1.Model> mergeVersionAliases(com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request)1869 mergeVersionAliases(com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) { 1870 return io.grpc.stub.ClientCalls.futureUnaryCall( 1871 getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), request); 1872 } 1873 1874 /** 1875 * 1876 * 1877 * <pre> 1878 * Exports a trained, exportable Model to a location specified by the 1879 * user. A Model is considered to be exportable if it has at least one 1880 * [supported export 1881 * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. 1882 * </pre> 1883 */ 1884 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportModel(com.google.cloud.aiplatform.v1.ExportModelRequest request)1885 exportModel(com.google.cloud.aiplatform.v1.ExportModelRequest request) { 1886 return io.grpc.stub.ClientCalls.futureUnaryCall( 1887 getChannel().newCall(getExportModelMethod(), getCallOptions()), request); 1888 } 1889 1890 /** 1891 * 1892 * 1893 * <pre> 1894 * Copies an already existing Vertex AI Model into the specified Location. 1895 * The source Model must exist in the same Project. 1896 * When copying custom Models, the users themselves are responsible for 1897 * [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be 1898 * region-agnostic, as well as making sure that any resources (e.g. files) it 1899 * depends on remain accessible. 1900 * </pre> 1901 */ 1902 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> copyModel(com.google.cloud.aiplatform.v1.CopyModelRequest request)1903 copyModel(com.google.cloud.aiplatform.v1.CopyModelRequest request) { 1904 return io.grpc.stub.ClientCalls.futureUnaryCall( 1905 getChannel().newCall(getCopyModelMethod(), getCallOptions()), request); 1906 } 1907 1908 /** 1909 * 1910 * 1911 * <pre> 1912 * Imports an externally generated ModelEvaluation. 1913 * </pre> 1914 */ 1915 public com.google.common.util.concurrent.ListenableFuture< 1916 com.google.cloud.aiplatform.v1.ModelEvaluation> importModelEvaluation(com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request)1917 importModelEvaluation(com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request) { 1918 return io.grpc.stub.ClientCalls.futureUnaryCall( 1919 getChannel().newCall(getImportModelEvaluationMethod(), getCallOptions()), request); 1920 } 1921 1922 /** 1923 * 1924 * 1925 * <pre> 1926 * Imports a list of externally generated ModelEvaluationSlice. 1927 * </pre> 1928 */ 1929 public com.google.common.util.concurrent.ListenableFuture< 1930 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse> batchImportModelEvaluationSlices( com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request)1931 batchImportModelEvaluationSlices( 1932 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request) { 1933 return io.grpc.stub.ClientCalls.futureUnaryCall( 1934 getChannel().newCall(getBatchImportModelEvaluationSlicesMethod(), getCallOptions()), 1935 request); 1936 } 1937 1938 /** 1939 * 1940 * 1941 * <pre> 1942 * Imports a list of externally generated EvaluatedAnnotations. 1943 * </pre> 1944 */ 1945 public com.google.common.util.concurrent.ListenableFuture< 1946 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse> batchImportEvaluatedAnnotations( com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request)1947 batchImportEvaluatedAnnotations( 1948 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request) { 1949 return io.grpc.stub.ClientCalls.futureUnaryCall( 1950 getChannel().newCall(getBatchImportEvaluatedAnnotationsMethod(), getCallOptions()), 1951 request); 1952 } 1953 1954 /** 1955 * 1956 * 1957 * <pre> 1958 * Gets a ModelEvaluation. 1959 * </pre> 1960 */ 1961 public com.google.common.util.concurrent.ListenableFuture< 1962 com.google.cloud.aiplatform.v1.ModelEvaluation> getModelEvaluation(com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request)1963 getModelEvaluation(com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) { 1964 return io.grpc.stub.ClientCalls.futureUnaryCall( 1965 getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); 1966 } 1967 1968 /** 1969 * 1970 * 1971 * <pre> 1972 * Lists ModelEvaluations in a Model. 1973 * </pre> 1974 */ 1975 public com.google.common.util.concurrent.ListenableFuture< 1976 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request)1977 listModelEvaluations(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) { 1978 return io.grpc.stub.ClientCalls.futureUnaryCall( 1979 getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); 1980 } 1981 1982 /** 1983 * 1984 * 1985 * <pre> 1986 * Gets a ModelEvaluationSlice. 1987 * </pre> 1988 */ 1989 public com.google.common.util.concurrent.ListenableFuture< 1990 com.google.cloud.aiplatform.v1.ModelEvaluationSlice> getModelEvaluationSlice( com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request)1991 getModelEvaluationSlice( 1992 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) { 1993 return io.grpc.stub.ClientCalls.futureUnaryCall( 1994 getChannel().newCall(getGetModelEvaluationSliceMethod(), getCallOptions()), request); 1995 } 1996 1997 /** 1998 * 1999 * 2000 * <pre> 2001 * Lists ModelEvaluationSlices in a ModelEvaluation. 2002 * </pre> 2003 */ 2004 public com.google.common.util.concurrent.ListenableFuture< 2005 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse> listModelEvaluationSlices( com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request)2006 listModelEvaluationSlices( 2007 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) { 2008 return io.grpc.stub.ClientCalls.futureUnaryCall( 2009 getChannel().newCall(getListModelEvaluationSlicesMethod(), getCallOptions()), request); 2010 } 2011 } 2012 2013 private static final int METHODID_UPLOAD_MODEL = 0; 2014 private static final int METHODID_GET_MODEL = 1; 2015 private static final int METHODID_LIST_MODELS = 2; 2016 private static final int METHODID_LIST_MODEL_VERSIONS = 3; 2017 private static final int METHODID_UPDATE_MODEL = 4; 2018 private static final int METHODID_DELETE_MODEL = 5; 2019 private static final int METHODID_DELETE_MODEL_VERSION = 6; 2020 private static final int METHODID_MERGE_VERSION_ALIASES = 7; 2021 private static final int METHODID_EXPORT_MODEL = 8; 2022 private static final int METHODID_COPY_MODEL = 9; 2023 private static final int METHODID_IMPORT_MODEL_EVALUATION = 10; 2024 private static final int METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES = 11; 2025 private static final int METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS = 12; 2026 private static final int METHODID_GET_MODEL_EVALUATION = 13; 2027 private static final int METHODID_LIST_MODEL_EVALUATIONS = 14; 2028 private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 15; 2029 private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 16; 2030 2031 private static final class MethodHandlers<Req, Resp> 2032 implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, 2033 io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, 2034 io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, 2035 io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { 2036 private final AsyncService serviceImpl; 2037 private final int methodId; 2038 MethodHandlers(AsyncService serviceImpl, int methodId)2039 MethodHandlers(AsyncService serviceImpl, int methodId) { 2040 this.serviceImpl = serviceImpl; 2041 this.methodId = methodId; 2042 } 2043 2044 @java.lang.Override 2045 @java.lang.SuppressWarnings("unchecked") invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)2046 public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { 2047 switch (methodId) { 2048 case METHODID_UPLOAD_MODEL: 2049 serviceImpl.uploadModel( 2050 (com.google.cloud.aiplatform.v1.UploadModelRequest) request, 2051 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2052 break; 2053 case METHODID_GET_MODEL: 2054 serviceImpl.getModel( 2055 (com.google.cloud.aiplatform.v1.GetModelRequest) request, 2056 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model>) responseObserver); 2057 break; 2058 case METHODID_LIST_MODELS: 2059 serviceImpl.listModels( 2060 (com.google.cloud.aiplatform.v1.ListModelsRequest) request, 2061 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListModelsResponse>) 2062 responseObserver); 2063 break; 2064 case METHODID_LIST_MODEL_VERSIONS: 2065 serviceImpl.listModelVersions( 2066 (com.google.cloud.aiplatform.v1.ListModelVersionsRequest) request, 2067 (io.grpc.stub.StreamObserver< 2068 com.google.cloud.aiplatform.v1.ListModelVersionsResponse>) 2069 responseObserver); 2070 break; 2071 case METHODID_UPDATE_MODEL: 2072 serviceImpl.updateModel( 2073 (com.google.cloud.aiplatform.v1.UpdateModelRequest) request, 2074 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model>) responseObserver); 2075 break; 2076 case METHODID_DELETE_MODEL: 2077 serviceImpl.deleteModel( 2078 (com.google.cloud.aiplatform.v1.DeleteModelRequest) request, 2079 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2080 break; 2081 case METHODID_DELETE_MODEL_VERSION: 2082 serviceImpl.deleteModelVersion( 2083 (com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) request, 2084 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2085 break; 2086 case METHODID_MERGE_VERSION_ALIASES: 2087 serviceImpl.mergeVersionAliases( 2088 (com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) request, 2089 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Model>) responseObserver); 2090 break; 2091 case METHODID_EXPORT_MODEL: 2092 serviceImpl.exportModel( 2093 (com.google.cloud.aiplatform.v1.ExportModelRequest) request, 2094 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2095 break; 2096 case METHODID_COPY_MODEL: 2097 serviceImpl.copyModel( 2098 (com.google.cloud.aiplatform.v1.CopyModelRequest) request, 2099 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2100 break; 2101 case METHODID_IMPORT_MODEL_EVALUATION: 2102 serviceImpl.importModelEvaluation( 2103 (com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest) request, 2104 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation>) 2105 responseObserver); 2106 break; 2107 case METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES: 2108 serviceImpl.batchImportModelEvaluationSlices( 2109 (com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) request, 2110 (io.grpc.stub.StreamObserver< 2111 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse>) 2112 responseObserver); 2113 break; 2114 case METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS: 2115 serviceImpl.batchImportEvaluatedAnnotations( 2116 (com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest) request, 2117 (io.grpc.stub.StreamObserver< 2118 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse>) 2119 responseObserver); 2120 break; 2121 case METHODID_GET_MODEL_EVALUATION: 2122 serviceImpl.getModelEvaluation( 2123 (com.google.cloud.aiplatform.v1.GetModelEvaluationRequest) request, 2124 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluation>) 2125 responseObserver); 2126 break; 2127 case METHODID_LIST_MODEL_EVALUATIONS: 2128 serviceImpl.listModelEvaluations( 2129 (com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) request, 2130 (io.grpc.stub.StreamObserver< 2131 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse>) 2132 responseObserver); 2133 break; 2134 case METHODID_GET_MODEL_EVALUATION_SLICE: 2135 serviceImpl.getModelEvaluationSlice( 2136 (com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) request, 2137 (io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ModelEvaluationSlice>) 2138 responseObserver); 2139 break; 2140 case METHODID_LIST_MODEL_EVALUATION_SLICES: 2141 serviceImpl.listModelEvaluationSlices( 2142 (com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) request, 2143 (io.grpc.stub.StreamObserver< 2144 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse>) 2145 responseObserver); 2146 break; 2147 default: 2148 throw new AssertionError(); 2149 } 2150 } 2151 2152 @java.lang.Override 2153 @java.lang.SuppressWarnings("unchecked") invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)2154 public io.grpc.stub.StreamObserver<Req> invoke( 2155 io.grpc.stub.StreamObserver<Resp> responseObserver) { 2156 switch (methodId) { 2157 default: 2158 throw new AssertionError(); 2159 } 2160 } 2161 } 2162 bindService(AsyncService service)2163 public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 2164 return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) 2165 .addMethod( 2166 getUploadModelMethod(), 2167 io.grpc.stub.ServerCalls.asyncUnaryCall( 2168 new MethodHandlers< 2169 com.google.cloud.aiplatform.v1.UploadModelRequest, 2170 com.google.longrunning.Operation>(service, METHODID_UPLOAD_MODEL))) 2171 .addMethod( 2172 getGetModelMethod(), 2173 io.grpc.stub.ServerCalls.asyncUnaryCall( 2174 new MethodHandlers< 2175 com.google.cloud.aiplatform.v1.GetModelRequest, 2176 com.google.cloud.aiplatform.v1.Model>(service, METHODID_GET_MODEL))) 2177 .addMethod( 2178 getListModelsMethod(), 2179 io.grpc.stub.ServerCalls.asyncUnaryCall( 2180 new MethodHandlers< 2181 com.google.cloud.aiplatform.v1.ListModelsRequest, 2182 com.google.cloud.aiplatform.v1.ListModelsResponse>( 2183 service, METHODID_LIST_MODELS))) 2184 .addMethod( 2185 getListModelVersionsMethod(), 2186 io.grpc.stub.ServerCalls.asyncUnaryCall( 2187 new MethodHandlers< 2188 com.google.cloud.aiplatform.v1.ListModelVersionsRequest, 2189 com.google.cloud.aiplatform.v1.ListModelVersionsResponse>( 2190 service, METHODID_LIST_MODEL_VERSIONS))) 2191 .addMethod( 2192 getUpdateModelMethod(), 2193 io.grpc.stub.ServerCalls.asyncUnaryCall( 2194 new MethodHandlers< 2195 com.google.cloud.aiplatform.v1.UpdateModelRequest, 2196 com.google.cloud.aiplatform.v1.Model>(service, METHODID_UPDATE_MODEL))) 2197 .addMethod( 2198 getDeleteModelMethod(), 2199 io.grpc.stub.ServerCalls.asyncUnaryCall( 2200 new MethodHandlers< 2201 com.google.cloud.aiplatform.v1.DeleteModelRequest, 2202 com.google.longrunning.Operation>(service, METHODID_DELETE_MODEL))) 2203 .addMethod( 2204 getDeleteModelVersionMethod(), 2205 io.grpc.stub.ServerCalls.asyncUnaryCall( 2206 new MethodHandlers< 2207 com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, 2208 com.google.longrunning.Operation>(service, METHODID_DELETE_MODEL_VERSION))) 2209 .addMethod( 2210 getMergeVersionAliasesMethod(), 2211 io.grpc.stub.ServerCalls.asyncUnaryCall( 2212 new MethodHandlers< 2213 com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, 2214 com.google.cloud.aiplatform.v1.Model>(service, METHODID_MERGE_VERSION_ALIASES))) 2215 .addMethod( 2216 getExportModelMethod(), 2217 io.grpc.stub.ServerCalls.asyncUnaryCall( 2218 new MethodHandlers< 2219 com.google.cloud.aiplatform.v1.ExportModelRequest, 2220 com.google.longrunning.Operation>(service, METHODID_EXPORT_MODEL))) 2221 .addMethod( 2222 getCopyModelMethod(), 2223 io.grpc.stub.ServerCalls.asyncUnaryCall( 2224 new MethodHandlers< 2225 com.google.cloud.aiplatform.v1.CopyModelRequest, 2226 com.google.longrunning.Operation>(service, METHODID_COPY_MODEL))) 2227 .addMethod( 2228 getImportModelEvaluationMethod(), 2229 io.grpc.stub.ServerCalls.asyncUnaryCall( 2230 new MethodHandlers< 2231 com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, 2232 com.google.cloud.aiplatform.v1.ModelEvaluation>( 2233 service, METHODID_IMPORT_MODEL_EVALUATION))) 2234 .addMethod( 2235 getBatchImportModelEvaluationSlicesMethod(), 2236 io.grpc.stub.ServerCalls.asyncUnaryCall( 2237 new MethodHandlers< 2238 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, 2239 com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse>( 2240 service, METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES))) 2241 .addMethod( 2242 getBatchImportEvaluatedAnnotationsMethod(), 2243 io.grpc.stub.ServerCalls.asyncUnaryCall( 2244 new MethodHandlers< 2245 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest, 2246 com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse>( 2247 service, METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS))) 2248 .addMethod( 2249 getGetModelEvaluationMethod(), 2250 io.grpc.stub.ServerCalls.asyncUnaryCall( 2251 new MethodHandlers< 2252 com.google.cloud.aiplatform.v1.GetModelEvaluationRequest, 2253 com.google.cloud.aiplatform.v1.ModelEvaluation>( 2254 service, METHODID_GET_MODEL_EVALUATION))) 2255 .addMethod( 2256 getListModelEvaluationsMethod(), 2257 io.grpc.stub.ServerCalls.asyncUnaryCall( 2258 new MethodHandlers< 2259 com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, 2260 com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse>( 2261 service, METHODID_LIST_MODEL_EVALUATIONS))) 2262 .addMethod( 2263 getGetModelEvaluationSliceMethod(), 2264 io.grpc.stub.ServerCalls.asyncUnaryCall( 2265 new MethodHandlers< 2266 com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, 2267 com.google.cloud.aiplatform.v1.ModelEvaluationSlice>( 2268 service, METHODID_GET_MODEL_EVALUATION_SLICE))) 2269 .addMethod( 2270 getListModelEvaluationSlicesMethod(), 2271 io.grpc.stub.ServerCalls.asyncUnaryCall( 2272 new MethodHandlers< 2273 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, 2274 com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse>( 2275 service, METHODID_LIST_MODEL_EVALUATION_SLICES))) 2276 .build(); 2277 } 2278 2279 private abstract static class ModelServiceBaseDescriptorSupplier 2280 implements io.grpc.protobuf.ProtoFileDescriptorSupplier, 2281 io.grpc.protobuf.ProtoServiceDescriptorSupplier { ModelServiceBaseDescriptorSupplier()2282 ModelServiceBaseDescriptorSupplier() {} 2283 2284 @java.lang.Override getFileDescriptor()2285 public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { 2286 return com.google.cloud.aiplatform.v1.ModelServiceProto.getDescriptor(); 2287 } 2288 2289 @java.lang.Override getServiceDescriptor()2290 public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { 2291 return getFileDescriptor().findServiceByName("ModelService"); 2292 } 2293 } 2294 2295 private static final class ModelServiceFileDescriptorSupplier 2296 extends ModelServiceBaseDescriptorSupplier { ModelServiceFileDescriptorSupplier()2297 ModelServiceFileDescriptorSupplier() {} 2298 } 2299 2300 private static final class ModelServiceMethodDescriptorSupplier 2301 extends ModelServiceBaseDescriptorSupplier 2302 implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { 2303 private final String methodName; 2304 ModelServiceMethodDescriptorSupplier(String methodName)2305 ModelServiceMethodDescriptorSupplier(String methodName) { 2306 this.methodName = methodName; 2307 } 2308 2309 @java.lang.Override getMethodDescriptor()2310 public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { 2311 return getServiceDescriptor().findMethodByName(methodName); 2312 } 2313 } 2314 2315 private static volatile io.grpc.ServiceDescriptor serviceDescriptor; 2316 getServiceDescriptor()2317 public static io.grpc.ServiceDescriptor getServiceDescriptor() { 2318 io.grpc.ServiceDescriptor result = serviceDescriptor; 2319 if (result == null) { 2320 synchronized (ModelServiceGrpc.class) { 2321 result = serviceDescriptor; 2322 if (result == null) { 2323 serviceDescriptor = 2324 result = 2325 io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) 2326 .setSchemaDescriptor(new ModelServiceFileDescriptorSupplier()) 2327 .addMethod(getUploadModelMethod()) 2328 .addMethod(getGetModelMethod()) 2329 .addMethod(getListModelsMethod()) 2330 .addMethod(getListModelVersionsMethod()) 2331 .addMethod(getUpdateModelMethod()) 2332 .addMethod(getDeleteModelMethod()) 2333 .addMethod(getDeleteModelVersionMethod()) 2334 .addMethod(getMergeVersionAliasesMethod()) 2335 .addMethod(getExportModelMethod()) 2336 .addMethod(getCopyModelMethod()) 2337 .addMethod(getImportModelEvaluationMethod()) 2338 .addMethod(getBatchImportModelEvaluationSlicesMethod()) 2339 .addMethod(getBatchImportEvaluatedAnnotationsMethod()) 2340 .addMethod(getGetModelEvaluationMethod()) 2341 .addMethod(getListModelEvaluationsMethod()) 2342 .addMethod(getGetModelEvaluationSliceMethod()) 2343 .addMethod(getListModelEvaluationSlicesMethod()) 2344 .build(); 2345 } 2346 } 2347 } 2348 return result; 2349 } 2350 } 2351