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.automl.v1beta1; 17 18 import static io.grpc.MethodDescriptor.generateFullMethodName; 19 20 /** 21 * 22 * 23 * <pre> 24 * AutoML Server API. 25 * The resource names are assigned by the server. 26 * The server never reuses names that it has created after the resources with 27 * those names are deleted. 28 * An ID of a resource is the last element of the item's resource name. For 29 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 30 * the id for the item is `{dataset_id}`. 31 * Currently the only supported `location_id` is "us-central1". 32 * On any input that is documented to expect a string parameter in 33 * snake_case or kebab-case, either of those cases is accepted. 34 * </pre> 35 */ 36 @javax.annotation.Generated( 37 value = "by gRPC proto compiler", 38 comments = "Source: google/cloud/automl/v1beta1/service.proto") 39 @io.grpc.stub.annotations.GrpcGenerated 40 public final class AutoMlGrpc { 41 AutoMlGrpc()42 private AutoMlGrpc() {} 43 44 public static final String SERVICE_NAME = "google.cloud.automl.v1beta1.AutoMl"; 45 46 // Static method descriptors that strictly reflect the proto. 47 private static volatile io.grpc.MethodDescriptor< 48 com.google.cloud.automl.v1beta1.CreateDatasetRequest, 49 com.google.cloud.automl.v1beta1.Dataset> 50 getCreateDatasetMethod; 51 52 @io.grpc.stub.annotations.RpcMethod( 53 fullMethodName = SERVICE_NAME + '/' + "CreateDataset", 54 requestType = com.google.cloud.automl.v1beta1.CreateDatasetRequest.class, 55 responseType = com.google.cloud.automl.v1beta1.Dataset.class, 56 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 57 public static io.grpc.MethodDescriptor< 58 com.google.cloud.automl.v1beta1.CreateDatasetRequest, 59 com.google.cloud.automl.v1beta1.Dataset> getCreateDatasetMethod()60 getCreateDatasetMethod() { 61 io.grpc.MethodDescriptor< 62 com.google.cloud.automl.v1beta1.CreateDatasetRequest, 63 com.google.cloud.automl.v1beta1.Dataset> 64 getCreateDatasetMethod; 65 if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { 66 synchronized (AutoMlGrpc.class) { 67 if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { 68 AutoMlGrpc.getCreateDatasetMethod = 69 getCreateDatasetMethod = 70 io.grpc.MethodDescriptor 71 .<com.google.cloud.automl.v1beta1.CreateDatasetRequest, 72 com.google.cloud.automl.v1beta1.Dataset> 73 newBuilder() 74 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 75 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) 76 .setSampledToLocalTracing(true) 77 .setRequestMarshaller( 78 io.grpc.protobuf.ProtoUtils.marshaller( 79 com.google.cloud.automl.v1beta1.CreateDatasetRequest 80 .getDefaultInstance())) 81 .setResponseMarshaller( 82 io.grpc.protobuf.ProtoUtils.marshaller( 83 com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) 84 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) 85 .build(); 86 } 87 } 88 } 89 return getCreateDatasetMethod; 90 } 91 92 private static volatile io.grpc.MethodDescriptor< 93 com.google.cloud.automl.v1beta1.GetDatasetRequest, 94 com.google.cloud.automl.v1beta1.Dataset> 95 getGetDatasetMethod; 96 97 @io.grpc.stub.annotations.RpcMethod( 98 fullMethodName = SERVICE_NAME + '/' + "GetDataset", 99 requestType = com.google.cloud.automl.v1beta1.GetDatasetRequest.class, 100 responseType = com.google.cloud.automl.v1beta1.Dataset.class, 101 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 102 public static io.grpc.MethodDescriptor< 103 com.google.cloud.automl.v1beta1.GetDatasetRequest, 104 com.google.cloud.automl.v1beta1.Dataset> getGetDatasetMethod()105 getGetDatasetMethod() { 106 io.grpc.MethodDescriptor< 107 com.google.cloud.automl.v1beta1.GetDatasetRequest, 108 com.google.cloud.automl.v1beta1.Dataset> 109 getGetDatasetMethod; 110 if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { 111 synchronized (AutoMlGrpc.class) { 112 if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { 113 AutoMlGrpc.getGetDatasetMethod = 114 getGetDatasetMethod = 115 io.grpc.MethodDescriptor 116 .<com.google.cloud.automl.v1beta1.GetDatasetRequest, 117 com.google.cloud.automl.v1beta1.Dataset> 118 newBuilder() 119 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 120 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) 121 .setSampledToLocalTracing(true) 122 .setRequestMarshaller( 123 io.grpc.protobuf.ProtoUtils.marshaller( 124 com.google.cloud.automl.v1beta1.GetDatasetRequest 125 .getDefaultInstance())) 126 .setResponseMarshaller( 127 io.grpc.protobuf.ProtoUtils.marshaller( 128 com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) 129 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) 130 .build(); 131 } 132 } 133 } 134 return getGetDatasetMethod; 135 } 136 137 private static volatile io.grpc.MethodDescriptor< 138 com.google.cloud.automl.v1beta1.ListDatasetsRequest, 139 com.google.cloud.automl.v1beta1.ListDatasetsResponse> 140 getListDatasetsMethod; 141 142 @io.grpc.stub.annotations.RpcMethod( 143 fullMethodName = SERVICE_NAME + '/' + "ListDatasets", 144 requestType = com.google.cloud.automl.v1beta1.ListDatasetsRequest.class, 145 responseType = com.google.cloud.automl.v1beta1.ListDatasetsResponse.class, 146 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 147 public static io.grpc.MethodDescriptor< 148 com.google.cloud.automl.v1beta1.ListDatasetsRequest, 149 com.google.cloud.automl.v1beta1.ListDatasetsResponse> getListDatasetsMethod()150 getListDatasetsMethod() { 151 io.grpc.MethodDescriptor< 152 com.google.cloud.automl.v1beta1.ListDatasetsRequest, 153 com.google.cloud.automl.v1beta1.ListDatasetsResponse> 154 getListDatasetsMethod; 155 if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { 156 synchronized (AutoMlGrpc.class) { 157 if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { 158 AutoMlGrpc.getListDatasetsMethod = 159 getListDatasetsMethod = 160 io.grpc.MethodDescriptor 161 .<com.google.cloud.automl.v1beta1.ListDatasetsRequest, 162 com.google.cloud.automl.v1beta1.ListDatasetsResponse> 163 newBuilder() 164 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 165 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) 166 .setSampledToLocalTracing(true) 167 .setRequestMarshaller( 168 io.grpc.protobuf.ProtoUtils.marshaller( 169 com.google.cloud.automl.v1beta1.ListDatasetsRequest 170 .getDefaultInstance())) 171 .setResponseMarshaller( 172 io.grpc.protobuf.ProtoUtils.marshaller( 173 com.google.cloud.automl.v1beta1.ListDatasetsResponse 174 .getDefaultInstance())) 175 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) 176 .build(); 177 } 178 } 179 } 180 return getListDatasetsMethod; 181 } 182 183 private static volatile io.grpc.MethodDescriptor< 184 com.google.cloud.automl.v1beta1.UpdateDatasetRequest, 185 com.google.cloud.automl.v1beta1.Dataset> 186 getUpdateDatasetMethod; 187 188 @io.grpc.stub.annotations.RpcMethod( 189 fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", 190 requestType = com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, 191 responseType = com.google.cloud.automl.v1beta1.Dataset.class, 192 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 193 public static io.grpc.MethodDescriptor< 194 com.google.cloud.automl.v1beta1.UpdateDatasetRequest, 195 com.google.cloud.automl.v1beta1.Dataset> getUpdateDatasetMethod()196 getUpdateDatasetMethod() { 197 io.grpc.MethodDescriptor< 198 com.google.cloud.automl.v1beta1.UpdateDatasetRequest, 199 com.google.cloud.automl.v1beta1.Dataset> 200 getUpdateDatasetMethod; 201 if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { 202 synchronized (AutoMlGrpc.class) { 203 if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { 204 AutoMlGrpc.getUpdateDatasetMethod = 205 getUpdateDatasetMethod = 206 io.grpc.MethodDescriptor 207 .<com.google.cloud.automl.v1beta1.UpdateDatasetRequest, 208 com.google.cloud.automl.v1beta1.Dataset> 209 newBuilder() 210 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 211 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataset")) 212 .setSampledToLocalTracing(true) 213 .setRequestMarshaller( 214 io.grpc.protobuf.ProtoUtils.marshaller( 215 com.google.cloud.automl.v1beta1.UpdateDatasetRequest 216 .getDefaultInstance())) 217 .setResponseMarshaller( 218 io.grpc.protobuf.ProtoUtils.marshaller( 219 com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) 220 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) 221 .build(); 222 } 223 } 224 } 225 return getUpdateDatasetMethod; 226 } 227 228 private static volatile io.grpc.MethodDescriptor< 229 com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> 230 getDeleteDatasetMethod; 231 232 @io.grpc.stub.annotations.RpcMethod( 233 fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", 234 requestType = com.google.cloud.automl.v1beta1.DeleteDatasetRequest.class, 235 responseType = com.google.longrunning.Operation.class, 236 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 237 public static io.grpc.MethodDescriptor< 238 com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> getDeleteDatasetMethod()239 getDeleteDatasetMethod() { 240 io.grpc.MethodDescriptor< 241 com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation> 242 getDeleteDatasetMethod; 243 if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { 244 synchronized (AutoMlGrpc.class) { 245 if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { 246 AutoMlGrpc.getDeleteDatasetMethod = 247 getDeleteDatasetMethod = 248 io.grpc.MethodDescriptor 249 .<com.google.cloud.automl.v1beta1.DeleteDatasetRequest, 250 com.google.longrunning.Operation> 251 newBuilder() 252 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 253 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) 254 .setSampledToLocalTracing(true) 255 .setRequestMarshaller( 256 io.grpc.protobuf.ProtoUtils.marshaller( 257 com.google.cloud.automl.v1beta1.DeleteDatasetRequest 258 .getDefaultInstance())) 259 .setResponseMarshaller( 260 io.grpc.protobuf.ProtoUtils.marshaller( 261 com.google.longrunning.Operation.getDefaultInstance())) 262 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) 263 .build(); 264 } 265 } 266 } 267 return getDeleteDatasetMethod; 268 } 269 270 private static volatile io.grpc.MethodDescriptor< 271 com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> 272 getImportDataMethod; 273 274 @io.grpc.stub.annotations.RpcMethod( 275 fullMethodName = SERVICE_NAME + '/' + "ImportData", 276 requestType = com.google.cloud.automl.v1beta1.ImportDataRequest.class, 277 responseType = com.google.longrunning.Operation.class, 278 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 279 public static io.grpc.MethodDescriptor< 280 com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> getImportDataMethod()281 getImportDataMethod() { 282 io.grpc.MethodDescriptor< 283 com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation> 284 getImportDataMethod; 285 if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { 286 synchronized (AutoMlGrpc.class) { 287 if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { 288 AutoMlGrpc.getImportDataMethod = 289 getImportDataMethod = 290 io.grpc.MethodDescriptor 291 .<com.google.cloud.automl.v1beta1.ImportDataRequest, 292 com.google.longrunning.Operation> 293 newBuilder() 294 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 295 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) 296 .setSampledToLocalTracing(true) 297 .setRequestMarshaller( 298 io.grpc.protobuf.ProtoUtils.marshaller( 299 com.google.cloud.automl.v1beta1.ImportDataRequest 300 .getDefaultInstance())) 301 .setResponseMarshaller( 302 io.grpc.protobuf.ProtoUtils.marshaller( 303 com.google.longrunning.Operation.getDefaultInstance())) 304 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) 305 .build(); 306 } 307 } 308 } 309 return getImportDataMethod; 310 } 311 312 private static volatile io.grpc.MethodDescriptor< 313 com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> 314 getExportDataMethod; 315 316 @io.grpc.stub.annotations.RpcMethod( 317 fullMethodName = SERVICE_NAME + '/' + "ExportData", 318 requestType = com.google.cloud.automl.v1beta1.ExportDataRequest.class, 319 responseType = com.google.longrunning.Operation.class, 320 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 321 public static io.grpc.MethodDescriptor< 322 com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> getExportDataMethod()323 getExportDataMethod() { 324 io.grpc.MethodDescriptor< 325 com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation> 326 getExportDataMethod; 327 if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { 328 synchronized (AutoMlGrpc.class) { 329 if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { 330 AutoMlGrpc.getExportDataMethod = 331 getExportDataMethod = 332 io.grpc.MethodDescriptor 333 .<com.google.cloud.automl.v1beta1.ExportDataRequest, 334 com.google.longrunning.Operation> 335 newBuilder() 336 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 337 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) 338 .setSampledToLocalTracing(true) 339 .setRequestMarshaller( 340 io.grpc.protobuf.ProtoUtils.marshaller( 341 com.google.cloud.automl.v1beta1.ExportDataRequest 342 .getDefaultInstance())) 343 .setResponseMarshaller( 344 io.grpc.protobuf.ProtoUtils.marshaller( 345 com.google.longrunning.Operation.getDefaultInstance())) 346 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) 347 .build(); 348 } 349 } 350 } 351 return getExportDataMethod; 352 } 353 354 private static volatile io.grpc.MethodDescriptor< 355 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, 356 com.google.cloud.automl.v1beta1.AnnotationSpec> 357 getGetAnnotationSpecMethod; 358 359 @io.grpc.stub.annotations.RpcMethod( 360 fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", 361 requestType = com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, 362 responseType = com.google.cloud.automl.v1beta1.AnnotationSpec.class, 363 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 364 public static io.grpc.MethodDescriptor< 365 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, 366 com.google.cloud.automl.v1beta1.AnnotationSpec> getGetAnnotationSpecMethod()367 getGetAnnotationSpecMethod() { 368 io.grpc.MethodDescriptor< 369 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, 370 com.google.cloud.automl.v1beta1.AnnotationSpec> 371 getGetAnnotationSpecMethod; 372 if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { 373 synchronized (AutoMlGrpc.class) { 374 if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { 375 AutoMlGrpc.getGetAnnotationSpecMethod = 376 getGetAnnotationSpecMethod = 377 io.grpc.MethodDescriptor 378 .<com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, 379 com.google.cloud.automl.v1beta1.AnnotationSpec> 380 newBuilder() 381 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 382 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotationSpec")) 383 .setSampledToLocalTracing(true) 384 .setRequestMarshaller( 385 io.grpc.protobuf.ProtoUtils.marshaller( 386 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest 387 .getDefaultInstance())) 388 .setResponseMarshaller( 389 io.grpc.protobuf.ProtoUtils.marshaller( 390 com.google.cloud.automl.v1beta1.AnnotationSpec.getDefaultInstance())) 391 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) 392 .build(); 393 } 394 } 395 } 396 return getGetAnnotationSpecMethod; 397 } 398 399 private static volatile io.grpc.MethodDescriptor< 400 com.google.cloud.automl.v1beta1.GetTableSpecRequest, 401 com.google.cloud.automl.v1beta1.TableSpec> 402 getGetTableSpecMethod; 403 404 @io.grpc.stub.annotations.RpcMethod( 405 fullMethodName = SERVICE_NAME + '/' + "GetTableSpec", 406 requestType = com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, 407 responseType = com.google.cloud.automl.v1beta1.TableSpec.class, 408 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 409 public static io.grpc.MethodDescriptor< 410 com.google.cloud.automl.v1beta1.GetTableSpecRequest, 411 com.google.cloud.automl.v1beta1.TableSpec> getGetTableSpecMethod()412 getGetTableSpecMethod() { 413 io.grpc.MethodDescriptor< 414 com.google.cloud.automl.v1beta1.GetTableSpecRequest, 415 com.google.cloud.automl.v1beta1.TableSpec> 416 getGetTableSpecMethod; 417 if ((getGetTableSpecMethod = AutoMlGrpc.getGetTableSpecMethod) == null) { 418 synchronized (AutoMlGrpc.class) { 419 if ((getGetTableSpecMethod = AutoMlGrpc.getGetTableSpecMethod) == null) { 420 AutoMlGrpc.getGetTableSpecMethod = 421 getGetTableSpecMethod = 422 io.grpc.MethodDescriptor 423 .<com.google.cloud.automl.v1beta1.GetTableSpecRequest, 424 com.google.cloud.automl.v1beta1.TableSpec> 425 newBuilder() 426 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 427 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTableSpec")) 428 .setSampledToLocalTracing(true) 429 .setRequestMarshaller( 430 io.grpc.protobuf.ProtoUtils.marshaller( 431 com.google.cloud.automl.v1beta1.GetTableSpecRequest 432 .getDefaultInstance())) 433 .setResponseMarshaller( 434 io.grpc.protobuf.ProtoUtils.marshaller( 435 com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance())) 436 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetTableSpec")) 437 .build(); 438 } 439 } 440 } 441 return getGetTableSpecMethod; 442 } 443 444 private static volatile io.grpc.MethodDescriptor< 445 com.google.cloud.automl.v1beta1.ListTableSpecsRequest, 446 com.google.cloud.automl.v1beta1.ListTableSpecsResponse> 447 getListTableSpecsMethod; 448 449 @io.grpc.stub.annotations.RpcMethod( 450 fullMethodName = SERVICE_NAME + '/' + "ListTableSpecs", 451 requestType = com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, 452 responseType = com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, 453 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 454 public static io.grpc.MethodDescriptor< 455 com.google.cloud.automl.v1beta1.ListTableSpecsRequest, 456 com.google.cloud.automl.v1beta1.ListTableSpecsResponse> getListTableSpecsMethod()457 getListTableSpecsMethod() { 458 io.grpc.MethodDescriptor< 459 com.google.cloud.automl.v1beta1.ListTableSpecsRequest, 460 com.google.cloud.automl.v1beta1.ListTableSpecsResponse> 461 getListTableSpecsMethod; 462 if ((getListTableSpecsMethod = AutoMlGrpc.getListTableSpecsMethod) == null) { 463 synchronized (AutoMlGrpc.class) { 464 if ((getListTableSpecsMethod = AutoMlGrpc.getListTableSpecsMethod) == null) { 465 AutoMlGrpc.getListTableSpecsMethod = 466 getListTableSpecsMethod = 467 io.grpc.MethodDescriptor 468 .<com.google.cloud.automl.v1beta1.ListTableSpecsRequest, 469 com.google.cloud.automl.v1beta1.ListTableSpecsResponse> 470 newBuilder() 471 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 472 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTableSpecs")) 473 .setSampledToLocalTracing(true) 474 .setRequestMarshaller( 475 io.grpc.protobuf.ProtoUtils.marshaller( 476 com.google.cloud.automl.v1beta1.ListTableSpecsRequest 477 .getDefaultInstance())) 478 .setResponseMarshaller( 479 io.grpc.protobuf.ProtoUtils.marshaller( 480 com.google.cloud.automl.v1beta1.ListTableSpecsResponse 481 .getDefaultInstance())) 482 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListTableSpecs")) 483 .build(); 484 } 485 } 486 } 487 return getListTableSpecsMethod; 488 } 489 490 private static volatile io.grpc.MethodDescriptor< 491 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, 492 com.google.cloud.automl.v1beta1.TableSpec> 493 getUpdateTableSpecMethod; 494 495 @io.grpc.stub.annotations.RpcMethod( 496 fullMethodName = SERVICE_NAME + '/' + "UpdateTableSpec", 497 requestType = com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, 498 responseType = com.google.cloud.automl.v1beta1.TableSpec.class, 499 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 500 public static io.grpc.MethodDescriptor< 501 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, 502 com.google.cloud.automl.v1beta1.TableSpec> getUpdateTableSpecMethod()503 getUpdateTableSpecMethod() { 504 io.grpc.MethodDescriptor< 505 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, 506 com.google.cloud.automl.v1beta1.TableSpec> 507 getUpdateTableSpecMethod; 508 if ((getUpdateTableSpecMethod = AutoMlGrpc.getUpdateTableSpecMethod) == null) { 509 synchronized (AutoMlGrpc.class) { 510 if ((getUpdateTableSpecMethod = AutoMlGrpc.getUpdateTableSpecMethod) == null) { 511 AutoMlGrpc.getUpdateTableSpecMethod = 512 getUpdateTableSpecMethod = 513 io.grpc.MethodDescriptor 514 .<com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, 515 com.google.cloud.automl.v1beta1.TableSpec> 516 newBuilder() 517 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 518 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTableSpec")) 519 .setSampledToLocalTracing(true) 520 .setRequestMarshaller( 521 io.grpc.protobuf.ProtoUtils.marshaller( 522 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest 523 .getDefaultInstance())) 524 .setResponseMarshaller( 525 io.grpc.protobuf.ProtoUtils.marshaller( 526 com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance())) 527 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateTableSpec")) 528 .build(); 529 } 530 } 531 } 532 return getUpdateTableSpecMethod; 533 } 534 535 private static volatile io.grpc.MethodDescriptor< 536 com.google.cloud.automl.v1beta1.GetColumnSpecRequest, 537 com.google.cloud.automl.v1beta1.ColumnSpec> 538 getGetColumnSpecMethod; 539 540 @io.grpc.stub.annotations.RpcMethod( 541 fullMethodName = SERVICE_NAME + '/' + "GetColumnSpec", 542 requestType = com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, 543 responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, 544 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 545 public static io.grpc.MethodDescriptor< 546 com.google.cloud.automl.v1beta1.GetColumnSpecRequest, 547 com.google.cloud.automl.v1beta1.ColumnSpec> getGetColumnSpecMethod()548 getGetColumnSpecMethod() { 549 io.grpc.MethodDescriptor< 550 com.google.cloud.automl.v1beta1.GetColumnSpecRequest, 551 com.google.cloud.automl.v1beta1.ColumnSpec> 552 getGetColumnSpecMethod; 553 if ((getGetColumnSpecMethod = AutoMlGrpc.getGetColumnSpecMethod) == null) { 554 synchronized (AutoMlGrpc.class) { 555 if ((getGetColumnSpecMethod = AutoMlGrpc.getGetColumnSpecMethod) == null) { 556 AutoMlGrpc.getGetColumnSpecMethod = 557 getGetColumnSpecMethod = 558 io.grpc.MethodDescriptor 559 .<com.google.cloud.automl.v1beta1.GetColumnSpecRequest, 560 com.google.cloud.automl.v1beta1.ColumnSpec> 561 newBuilder() 562 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 563 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetColumnSpec")) 564 .setSampledToLocalTracing(true) 565 .setRequestMarshaller( 566 io.grpc.protobuf.ProtoUtils.marshaller( 567 com.google.cloud.automl.v1beta1.GetColumnSpecRequest 568 .getDefaultInstance())) 569 .setResponseMarshaller( 570 io.grpc.protobuf.ProtoUtils.marshaller( 571 com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance())) 572 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetColumnSpec")) 573 .build(); 574 } 575 } 576 } 577 return getGetColumnSpecMethod; 578 } 579 580 private static volatile io.grpc.MethodDescriptor< 581 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, 582 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> 583 getListColumnSpecsMethod; 584 585 @io.grpc.stub.annotations.RpcMethod( 586 fullMethodName = SERVICE_NAME + '/' + "ListColumnSpecs", 587 requestType = com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, 588 responseType = com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, 589 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 590 public static io.grpc.MethodDescriptor< 591 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, 592 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> getListColumnSpecsMethod()593 getListColumnSpecsMethod() { 594 io.grpc.MethodDescriptor< 595 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, 596 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> 597 getListColumnSpecsMethod; 598 if ((getListColumnSpecsMethod = AutoMlGrpc.getListColumnSpecsMethod) == null) { 599 synchronized (AutoMlGrpc.class) { 600 if ((getListColumnSpecsMethod = AutoMlGrpc.getListColumnSpecsMethod) == null) { 601 AutoMlGrpc.getListColumnSpecsMethod = 602 getListColumnSpecsMethod = 603 io.grpc.MethodDescriptor 604 .<com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, 605 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> 606 newBuilder() 607 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 608 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListColumnSpecs")) 609 .setSampledToLocalTracing(true) 610 .setRequestMarshaller( 611 io.grpc.protobuf.ProtoUtils.marshaller( 612 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest 613 .getDefaultInstance())) 614 .setResponseMarshaller( 615 io.grpc.protobuf.ProtoUtils.marshaller( 616 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse 617 .getDefaultInstance())) 618 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListColumnSpecs")) 619 .build(); 620 } 621 } 622 } 623 return getListColumnSpecsMethod; 624 } 625 626 private static volatile io.grpc.MethodDescriptor< 627 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, 628 com.google.cloud.automl.v1beta1.ColumnSpec> 629 getUpdateColumnSpecMethod; 630 631 @io.grpc.stub.annotations.RpcMethod( 632 fullMethodName = SERVICE_NAME + '/' + "UpdateColumnSpec", 633 requestType = com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, 634 responseType = com.google.cloud.automl.v1beta1.ColumnSpec.class, 635 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 636 public static io.grpc.MethodDescriptor< 637 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, 638 com.google.cloud.automl.v1beta1.ColumnSpec> getUpdateColumnSpecMethod()639 getUpdateColumnSpecMethod() { 640 io.grpc.MethodDescriptor< 641 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, 642 com.google.cloud.automl.v1beta1.ColumnSpec> 643 getUpdateColumnSpecMethod; 644 if ((getUpdateColumnSpecMethod = AutoMlGrpc.getUpdateColumnSpecMethod) == null) { 645 synchronized (AutoMlGrpc.class) { 646 if ((getUpdateColumnSpecMethod = AutoMlGrpc.getUpdateColumnSpecMethod) == null) { 647 AutoMlGrpc.getUpdateColumnSpecMethod = 648 getUpdateColumnSpecMethod = 649 io.grpc.MethodDescriptor 650 .<com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, 651 com.google.cloud.automl.v1beta1.ColumnSpec> 652 newBuilder() 653 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 654 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateColumnSpec")) 655 .setSampledToLocalTracing(true) 656 .setRequestMarshaller( 657 io.grpc.protobuf.ProtoUtils.marshaller( 658 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest 659 .getDefaultInstance())) 660 .setResponseMarshaller( 661 io.grpc.protobuf.ProtoUtils.marshaller( 662 com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance())) 663 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateColumnSpec")) 664 .build(); 665 } 666 } 667 } 668 return getUpdateColumnSpecMethod; 669 } 670 671 private static volatile io.grpc.MethodDescriptor< 672 com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> 673 getCreateModelMethod; 674 675 @io.grpc.stub.annotations.RpcMethod( 676 fullMethodName = SERVICE_NAME + '/' + "CreateModel", 677 requestType = com.google.cloud.automl.v1beta1.CreateModelRequest.class, 678 responseType = com.google.longrunning.Operation.class, 679 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 680 public static io.grpc.MethodDescriptor< 681 com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> getCreateModelMethod()682 getCreateModelMethod() { 683 io.grpc.MethodDescriptor< 684 com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation> 685 getCreateModelMethod; 686 if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { 687 synchronized (AutoMlGrpc.class) { 688 if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { 689 AutoMlGrpc.getCreateModelMethod = 690 getCreateModelMethod = 691 io.grpc.MethodDescriptor 692 .<com.google.cloud.automl.v1beta1.CreateModelRequest, 693 com.google.longrunning.Operation> 694 newBuilder() 695 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 696 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) 697 .setSampledToLocalTracing(true) 698 .setRequestMarshaller( 699 io.grpc.protobuf.ProtoUtils.marshaller( 700 com.google.cloud.automl.v1beta1.CreateModelRequest 701 .getDefaultInstance())) 702 .setResponseMarshaller( 703 io.grpc.protobuf.ProtoUtils.marshaller( 704 com.google.longrunning.Operation.getDefaultInstance())) 705 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) 706 .build(); 707 } 708 } 709 } 710 return getCreateModelMethod; 711 } 712 713 private static volatile io.grpc.MethodDescriptor< 714 com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> 715 getGetModelMethod; 716 717 @io.grpc.stub.annotations.RpcMethod( 718 fullMethodName = SERVICE_NAME + '/' + "GetModel", 719 requestType = com.google.cloud.automl.v1beta1.GetModelRequest.class, 720 responseType = com.google.cloud.automl.v1beta1.Model.class, 721 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 722 public static io.grpc.MethodDescriptor< 723 com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> getGetModelMethod()724 getGetModelMethod() { 725 io.grpc.MethodDescriptor< 726 com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model> 727 getGetModelMethod; 728 if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { 729 synchronized (AutoMlGrpc.class) { 730 if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { 731 AutoMlGrpc.getGetModelMethod = 732 getGetModelMethod = 733 io.grpc.MethodDescriptor 734 .<com.google.cloud.automl.v1beta1.GetModelRequest, 735 com.google.cloud.automl.v1beta1.Model> 736 newBuilder() 737 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 738 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) 739 .setSampledToLocalTracing(true) 740 .setRequestMarshaller( 741 io.grpc.protobuf.ProtoUtils.marshaller( 742 com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance())) 743 .setResponseMarshaller( 744 io.grpc.protobuf.ProtoUtils.marshaller( 745 com.google.cloud.automl.v1beta1.Model.getDefaultInstance())) 746 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) 747 .build(); 748 } 749 } 750 } 751 return getGetModelMethod; 752 } 753 754 private static volatile io.grpc.MethodDescriptor< 755 com.google.cloud.automl.v1beta1.ListModelsRequest, 756 com.google.cloud.automl.v1beta1.ListModelsResponse> 757 getListModelsMethod; 758 759 @io.grpc.stub.annotations.RpcMethod( 760 fullMethodName = SERVICE_NAME + '/' + "ListModels", 761 requestType = com.google.cloud.automl.v1beta1.ListModelsRequest.class, 762 responseType = com.google.cloud.automl.v1beta1.ListModelsResponse.class, 763 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 764 public static io.grpc.MethodDescriptor< 765 com.google.cloud.automl.v1beta1.ListModelsRequest, 766 com.google.cloud.automl.v1beta1.ListModelsResponse> getListModelsMethod()767 getListModelsMethod() { 768 io.grpc.MethodDescriptor< 769 com.google.cloud.automl.v1beta1.ListModelsRequest, 770 com.google.cloud.automl.v1beta1.ListModelsResponse> 771 getListModelsMethod; 772 if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { 773 synchronized (AutoMlGrpc.class) { 774 if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { 775 AutoMlGrpc.getListModelsMethod = 776 getListModelsMethod = 777 io.grpc.MethodDescriptor 778 .<com.google.cloud.automl.v1beta1.ListModelsRequest, 779 com.google.cloud.automl.v1beta1.ListModelsResponse> 780 newBuilder() 781 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 782 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) 783 .setSampledToLocalTracing(true) 784 .setRequestMarshaller( 785 io.grpc.protobuf.ProtoUtils.marshaller( 786 com.google.cloud.automl.v1beta1.ListModelsRequest 787 .getDefaultInstance())) 788 .setResponseMarshaller( 789 io.grpc.protobuf.ProtoUtils.marshaller( 790 com.google.cloud.automl.v1beta1.ListModelsResponse 791 .getDefaultInstance())) 792 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) 793 .build(); 794 } 795 } 796 } 797 return getListModelsMethod; 798 } 799 800 private static volatile io.grpc.MethodDescriptor< 801 com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> 802 getDeleteModelMethod; 803 804 @io.grpc.stub.annotations.RpcMethod( 805 fullMethodName = SERVICE_NAME + '/' + "DeleteModel", 806 requestType = com.google.cloud.automl.v1beta1.DeleteModelRequest.class, 807 responseType = com.google.longrunning.Operation.class, 808 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 809 public static io.grpc.MethodDescriptor< 810 com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod()811 getDeleteModelMethod() { 812 io.grpc.MethodDescriptor< 813 com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> 814 getDeleteModelMethod; 815 if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { 816 synchronized (AutoMlGrpc.class) { 817 if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { 818 AutoMlGrpc.getDeleteModelMethod = 819 getDeleteModelMethod = 820 io.grpc.MethodDescriptor 821 .<com.google.cloud.automl.v1beta1.DeleteModelRequest, 822 com.google.longrunning.Operation> 823 newBuilder() 824 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 825 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) 826 .setSampledToLocalTracing(true) 827 .setRequestMarshaller( 828 io.grpc.protobuf.ProtoUtils.marshaller( 829 com.google.cloud.automl.v1beta1.DeleteModelRequest 830 .getDefaultInstance())) 831 .setResponseMarshaller( 832 io.grpc.protobuf.ProtoUtils.marshaller( 833 com.google.longrunning.Operation.getDefaultInstance())) 834 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) 835 .build(); 836 } 837 } 838 } 839 return getDeleteModelMethod; 840 } 841 842 private static volatile io.grpc.MethodDescriptor< 843 com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> 844 getDeployModelMethod; 845 846 @io.grpc.stub.annotations.RpcMethod( 847 fullMethodName = SERVICE_NAME + '/' + "DeployModel", 848 requestType = com.google.cloud.automl.v1beta1.DeployModelRequest.class, 849 responseType = com.google.longrunning.Operation.class, 850 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 851 public static io.grpc.MethodDescriptor< 852 com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> getDeployModelMethod()853 getDeployModelMethod() { 854 io.grpc.MethodDescriptor< 855 com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> 856 getDeployModelMethod; 857 if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { 858 synchronized (AutoMlGrpc.class) { 859 if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { 860 AutoMlGrpc.getDeployModelMethod = 861 getDeployModelMethod = 862 io.grpc.MethodDescriptor 863 .<com.google.cloud.automl.v1beta1.DeployModelRequest, 864 com.google.longrunning.Operation> 865 newBuilder() 866 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 867 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployModel")) 868 .setSampledToLocalTracing(true) 869 .setRequestMarshaller( 870 io.grpc.protobuf.ProtoUtils.marshaller( 871 com.google.cloud.automl.v1beta1.DeployModelRequest 872 .getDefaultInstance())) 873 .setResponseMarshaller( 874 io.grpc.protobuf.ProtoUtils.marshaller( 875 com.google.longrunning.Operation.getDefaultInstance())) 876 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) 877 .build(); 878 } 879 } 880 } 881 return getDeployModelMethod; 882 } 883 884 private static volatile io.grpc.MethodDescriptor< 885 com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> 886 getUndeployModelMethod; 887 888 @io.grpc.stub.annotations.RpcMethod( 889 fullMethodName = SERVICE_NAME + '/' + "UndeployModel", 890 requestType = com.google.cloud.automl.v1beta1.UndeployModelRequest.class, 891 responseType = com.google.longrunning.Operation.class, 892 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 893 public static io.grpc.MethodDescriptor< 894 com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> getUndeployModelMethod()895 getUndeployModelMethod() { 896 io.grpc.MethodDescriptor< 897 com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> 898 getUndeployModelMethod; 899 if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { 900 synchronized (AutoMlGrpc.class) { 901 if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { 902 AutoMlGrpc.getUndeployModelMethod = 903 getUndeployModelMethod = 904 io.grpc.MethodDescriptor 905 .<com.google.cloud.automl.v1beta1.UndeployModelRequest, 906 com.google.longrunning.Operation> 907 newBuilder() 908 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 909 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeployModel")) 910 .setSampledToLocalTracing(true) 911 .setRequestMarshaller( 912 io.grpc.protobuf.ProtoUtils.marshaller( 913 com.google.cloud.automl.v1beta1.UndeployModelRequest 914 .getDefaultInstance())) 915 .setResponseMarshaller( 916 io.grpc.protobuf.ProtoUtils.marshaller( 917 com.google.longrunning.Operation.getDefaultInstance())) 918 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) 919 .build(); 920 } 921 } 922 } 923 return getUndeployModelMethod; 924 } 925 926 private static volatile io.grpc.MethodDescriptor< 927 com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> 928 getExportModelMethod; 929 930 @io.grpc.stub.annotations.RpcMethod( 931 fullMethodName = SERVICE_NAME + '/' + "ExportModel", 932 requestType = com.google.cloud.automl.v1beta1.ExportModelRequest.class, 933 responseType = com.google.longrunning.Operation.class, 934 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 935 public static io.grpc.MethodDescriptor< 936 com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod()937 getExportModelMethod() { 938 io.grpc.MethodDescriptor< 939 com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> 940 getExportModelMethod; 941 if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { 942 synchronized (AutoMlGrpc.class) { 943 if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { 944 AutoMlGrpc.getExportModelMethod = 945 getExportModelMethod = 946 io.grpc.MethodDescriptor 947 .<com.google.cloud.automl.v1beta1.ExportModelRequest, 948 com.google.longrunning.Operation> 949 newBuilder() 950 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 951 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) 952 .setSampledToLocalTracing(true) 953 .setRequestMarshaller( 954 io.grpc.protobuf.ProtoUtils.marshaller( 955 com.google.cloud.automl.v1beta1.ExportModelRequest 956 .getDefaultInstance())) 957 .setResponseMarshaller( 958 io.grpc.protobuf.ProtoUtils.marshaller( 959 com.google.longrunning.Operation.getDefaultInstance())) 960 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) 961 .build(); 962 } 963 } 964 } 965 return getExportModelMethod; 966 } 967 968 private static volatile io.grpc.MethodDescriptor< 969 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, 970 com.google.longrunning.Operation> 971 getExportEvaluatedExamplesMethod; 972 973 @io.grpc.stub.annotations.RpcMethod( 974 fullMethodName = SERVICE_NAME + '/' + "ExportEvaluatedExamples", 975 requestType = com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, 976 responseType = com.google.longrunning.Operation.class, 977 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 978 public static io.grpc.MethodDescriptor< 979 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, 980 com.google.longrunning.Operation> getExportEvaluatedExamplesMethod()981 getExportEvaluatedExamplesMethod() { 982 io.grpc.MethodDescriptor< 983 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, 984 com.google.longrunning.Operation> 985 getExportEvaluatedExamplesMethod; 986 if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { 987 synchronized (AutoMlGrpc.class) { 988 if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) 989 == null) { 990 AutoMlGrpc.getExportEvaluatedExamplesMethod = 991 getExportEvaluatedExamplesMethod = 992 io.grpc.MethodDescriptor 993 .<com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, 994 com.google.longrunning.Operation> 995 newBuilder() 996 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 997 .setFullMethodName( 998 generateFullMethodName(SERVICE_NAME, "ExportEvaluatedExamples")) 999 .setSampledToLocalTracing(true) 1000 .setRequestMarshaller( 1001 io.grpc.protobuf.ProtoUtils.marshaller( 1002 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest 1003 .getDefaultInstance())) 1004 .setResponseMarshaller( 1005 io.grpc.protobuf.ProtoUtils.marshaller( 1006 com.google.longrunning.Operation.getDefaultInstance())) 1007 .setSchemaDescriptor( 1008 new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) 1009 .build(); 1010 } 1011 } 1012 } 1013 return getExportEvaluatedExamplesMethod; 1014 } 1015 1016 private static volatile io.grpc.MethodDescriptor< 1017 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, 1018 com.google.cloud.automl.v1beta1.ModelEvaluation> 1019 getGetModelEvaluationMethod; 1020 1021 @io.grpc.stub.annotations.RpcMethod( 1022 fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", 1023 requestType = com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.class, 1024 responseType = com.google.cloud.automl.v1beta1.ModelEvaluation.class, 1025 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 1026 public static io.grpc.MethodDescriptor< 1027 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, 1028 com.google.cloud.automl.v1beta1.ModelEvaluation> getGetModelEvaluationMethod()1029 getGetModelEvaluationMethod() { 1030 io.grpc.MethodDescriptor< 1031 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, 1032 com.google.cloud.automl.v1beta1.ModelEvaluation> 1033 getGetModelEvaluationMethod; 1034 if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { 1035 synchronized (AutoMlGrpc.class) { 1036 if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { 1037 AutoMlGrpc.getGetModelEvaluationMethod = 1038 getGetModelEvaluationMethod = 1039 io.grpc.MethodDescriptor 1040 .<com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, 1041 com.google.cloud.automl.v1beta1.ModelEvaluation> 1042 newBuilder() 1043 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 1044 .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) 1045 .setSampledToLocalTracing(true) 1046 .setRequestMarshaller( 1047 io.grpc.protobuf.ProtoUtils.marshaller( 1048 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest 1049 .getDefaultInstance())) 1050 .setResponseMarshaller( 1051 io.grpc.protobuf.ProtoUtils.marshaller( 1052 com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance())) 1053 .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) 1054 .build(); 1055 } 1056 } 1057 } 1058 return getGetModelEvaluationMethod; 1059 } 1060 1061 private static volatile io.grpc.MethodDescriptor< 1062 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, 1063 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> 1064 getListModelEvaluationsMethod; 1065 1066 @io.grpc.stub.annotations.RpcMethod( 1067 fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", 1068 requestType = com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.class, 1069 responseType = com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.class, 1070 methodType = io.grpc.MethodDescriptor.MethodType.UNARY) 1071 public static io.grpc.MethodDescriptor< 1072 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, 1073 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> getListModelEvaluationsMethod()1074 getListModelEvaluationsMethod() { 1075 io.grpc.MethodDescriptor< 1076 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, 1077 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> 1078 getListModelEvaluationsMethod; 1079 if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { 1080 synchronized (AutoMlGrpc.class) { 1081 if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { 1082 AutoMlGrpc.getListModelEvaluationsMethod = 1083 getListModelEvaluationsMethod = 1084 io.grpc.MethodDescriptor 1085 .<com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, 1086 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> 1087 newBuilder() 1088 .setType(io.grpc.MethodDescriptor.MethodType.UNARY) 1089 .setFullMethodName( 1090 generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) 1091 .setSampledToLocalTracing(true) 1092 .setRequestMarshaller( 1093 io.grpc.protobuf.ProtoUtils.marshaller( 1094 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest 1095 .getDefaultInstance())) 1096 .setResponseMarshaller( 1097 io.grpc.protobuf.ProtoUtils.marshaller( 1098 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse 1099 .getDefaultInstance())) 1100 .setSchemaDescriptor( 1101 new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) 1102 .build(); 1103 } 1104 } 1105 } 1106 return getListModelEvaluationsMethod; 1107 } 1108 1109 /** Creates a new async stub that supports all call types for the service */ newStub(io.grpc.Channel channel)1110 public static AutoMlStub newStub(io.grpc.Channel channel) { 1111 io.grpc.stub.AbstractStub.StubFactory<AutoMlStub> factory = 1112 new io.grpc.stub.AbstractStub.StubFactory<AutoMlStub>() { 1113 @java.lang.Override 1114 public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1115 return new AutoMlStub(channel, callOptions); 1116 } 1117 }; 1118 return AutoMlStub.newStub(factory, channel); 1119 } 1120 1121 /** 1122 * Creates a new blocking-style stub that supports unary and streaming output calls on the service 1123 */ newBlockingStub(io.grpc.Channel channel)1124 public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { 1125 io.grpc.stub.AbstractStub.StubFactory<AutoMlBlockingStub> factory = 1126 new io.grpc.stub.AbstractStub.StubFactory<AutoMlBlockingStub>() { 1127 @java.lang.Override 1128 public AutoMlBlockingStub newStub( 1129 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1130 return new AutoMlBlockingStub(channel, callOptions); 1131 } 1132 }; 1133 return AutoMlBlockingStub.newStub(factory, channel); 1134 } 1135 1136 /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ newFutureStub(io.grpc.Channel channel)1137 public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { 1138 io.grpc.stub.AbstractStub.StubFactory<AutoMlFutureStub> factory = 1139 new io.grpc.stub.AbstractStub.StubFactory<AutoMlFutureStub>() { 1140 @java.lang.Override 1141 public AutoMlFutureStub newStub( 1142 io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1143 return new AutoMlFutureStub(channel, callOptions); 1144 } 1145 }; 1146 return AutoMlFutureStub.newStub(factory, channel); 1147 } 1148 1149 /** 1150 * 1151 * 1152 * <pre> 1153 * AutoML Server API. 1154 * The resource names are assigned by the server. 1155 * The server never reuses names that it has created after the resources with 1156 * those names are deleted. 1157 * An ID of a resource is the last element of the item's resource name. For 1158 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 1159 * the id for the item is `{dataset_id}`. 1160 * Currently the only supported `location_id` is "us-central1". 1161 * On any input that is documented to expect a string parameter in 1162 * snake_case or kebab-case, either of those cases is accepted. 1163 * </pre> 1164 */ 1165 public interface AsyncService { 1166 1167 /** 1168 * 1169 * 1170 * <pre> 1171 * Creates a dataset. 1172 * </pre> 1173 */ createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1174 default void createDataset( 1175 com.google.cloud.automl.v1beta1.CreateDatasetRequest request, 1176 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1177 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1178 getCreateDatasetMethod(), responseObserver); 1179 } 1180 1181 /** 1182 * 1183 * 1184 * <pre> 1185 * Gets a dataset. 1186 * </pre> 1187 */ getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1188 default void getDataset( 1189 com.google.cloud.automl.v1beta1.GetDatasetRequest request, 1190 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1191 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); 1192 } 1193 1194 /** 1195 * 1196 * 1197 * <pre> 1198 * Lists datasets in a project. 1199 * </pre> 1200 */ listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListDatasetsResponse> responseObserver)1201 default void listDatasets( 1202 com.google.cloud.automl.v1beta1.ListDatasetsRequest request, 1203 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListDatasetsResponse> 1204 responseObserver) { 1205 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1206 getListDatasetsMethod(), responseObserver); 1207 } 1208 1209 /** 1210 * 1211 * 1212 * <pre> 1213 * Updates a dataset. 1214 * </pre> 1215 */ updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1216 default void updateDataset( 1217 com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, 1218 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1219 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1220 getUpdateDatasetMethod(), responseObserver); 1221 } 1222 1223 /** 1224 * 1225 * 1226 * <pre> 1227 * Deletes a dataset and all of its contents. 1228 * Returns empty response in the 1229 * [response][google.longrunning.Operation.response] field when it completes, 1230 * and `delete_details` in the 1231 * [metadata][google.longrunning.Operation.metadata] field. 1232 * </pre> 1233 */ deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1234 default void deleteDataset( 1235 com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, 1236 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1237 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1238 getDeleteDatasetMethod(), responseObserver); 1239 } 1240 1241 /** 1242 * 1243 * 1244 * <pre> 1245 * Imports data into a dataset. 1246 * For Tables this method can only be called on an empty Dataset. 1247 * For Tables: 1248 * * A 1249 * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] 1250 * parameter must be explicitly set. 1251 * Returns an empty response in the 1252 * [response][google.longrunning.Operation.response] field when it completes. 1253 * </pre> 1254 */ importData( com.google.cloud.automl.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1255 default void importData( 1256 com.google.cloud.automl.v1beta1.ImportDataRequest request, 1257 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1258 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); 1259 } 1260 1261 /** 1262 * 1263 * 1264 * <pre> 1265 * Exports dataset's data to the provided output location. 1266 * Returns an empty response in the 1267 * [response][google.longrunning.Operation.response] field when it completes. 1268 * </pre> 1269 */ exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1270 default void exportData( 1271 com.google.cloud.automl.v1beta1.ExportDataRequest request, 1272 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1273 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); 1274 } 1275 1276 /** 1277 * 1278 * 1279 * <pre> 1280 * Gets an annotation spec. 1281 * </pre> 1282 */ getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.AnnotationSpec> responseObserver)1283 default void getAnnotationSpec( 1284 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, 1285 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.AnnotationSpec> 1286 responseObserver) { 1287 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1288 getGetAnnotationSpecMethod(), responseObserver); 1289 } 1290 1291 /** 1292 * 1293 * 1294 * <pre> 1295 * Gets a table spec. 1296 * </pre> 1297 */ getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver)1298 default void getTableSpec( 1299 com.google.cloud.automl.v1beta1.GetTableSpecRequest request, 1300 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver) { 1301 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1302 getGetTableSpecMethod(), responseObserver); 1303 } 1304 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * Lists table specs in a dataset. 1310 * </pre> 1311 */ listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListTableSpecsResponse> responseObserver)1312 default void listTableSpecs( 1313 com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, 1314 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListTableSpecsResponse> 1315 responseObserver) { 1316 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1317 getListTableSpecsMethod(), responseObserver); 1318 } 1319 1320 /** 1321 * 1322 * 1323 * <pre> 1324 * Updates a table spec. 1325 * </pre> 1326 */ updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver)1327 default void updateTableSpec( 1328 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, 1329 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver) { 1330 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1331 getUpdateTableSpecMethod(), responseObserver); 1332 } 1333 1334 /** 1335 * 1336 * 1337 * <pre> 1338 * Gets a column spec. 1339 * </pre> 1340 */ getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver)1341 default void getColumnSpec( 1342 com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, 1343 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver) { 1344 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1345 getGetColumnSpecMethod(), responseObserver); 1346 } 1347 1348 /** 1349 * 1350 * 1351 * <pre> 1352 * Lists column specs in a table spec. 1353 * </pre> 1354 */ listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> responseObserver)1355 default void listColumnSpecs( 1356 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, 1357 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> 1358 responseObserver) { 1359 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1360 getListColumnSpecsMethod(), responseObserver); 1361 } 1362 1363 /** 1364 * 1365 * 1366 * <pre> 1367 * Updates a column spec. 1368 * </pre> 1369 */ updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver)1370 default void updateColumnSpec( 1371 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, 1372 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver) { 1373 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1374 getUpdateColumnSpecMethod(), responseObserver); 1375 } 1376 1377 /** 1378 * 1379 * 1380 * <pre> 1381 * Creates a model. 1382 * Returns a Model in the [response][google.longrunning.Operation.response] 1383 * field when it completes. 1384 * When you create a model, several model evaluations are created for it: 1385 * a global evaluation, and one evaluation for each annotation spec. 1386 * </pre> 1387 */ createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1388 default void createModel( 1389 com.google.cloud.automl.v1beta1.CreateModelRequest request, 1390 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1391 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1392 getCreateModelMethod(), responseObserver); 1393 } 1394 1395 /** 1396 * 1397 * 1398 * <pre> 1399 * Gets a model. 1400 * </pre> 1401 */ getModel( com.google.cloud.automl.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Model> responseObserver)1402 default void getModel( 1403 com.google.cloud.automl.v1beta1.GetModelRequest request, 1404 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Model> responseObserver) { 1405 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); 1406 } 1407 1408 /** 1409 * 1410 * 1411 * <pre> 1412 * Lists models. 1413 * </pre> 1414 */ listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelsResponse> responseObserver)1415 default void listModels( 1416 com.google.cloud.automl.v1beta1.ListModelsRequest request, 1417 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelsResponse> 1418 responseObserver) { 1419 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); 1420 } 1421 1422 /** 1423 * 1424 * 1425 * <pre> 1426 * Deletes a model. 1427 * Returns `google.protobuf.Empty` in the 1428 * [response][google.longrunning.Operation.response] field when it completes, 1429 * and `delete_details` in the 1430 * [metadata][google.longrunning.Operation.metadata] field. 1431 * </pre> 1432 */ deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1433 default void deleteModel( 1434 com.google.cloud.automl.v1beta1.DeleteModelRequest request, 1435 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1436 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1437 getDeleteModelMethod(), responseObserver); 1438 } 1439 1440 /** 1441 * 1442 * 1443 * <pre> 1444 * Deploys a model. If a model is already deployed, deploying it with the 1445 * same parameters has no effect. Deploying with different parametrs 1446 * (as e.g. changing 1447 * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) 1448 * will reset the deployment state without pausing the model's availability. 1449 * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage 1450 * deployment automatically. 1451 * Returns an empty response in the 1452 * [response][google.longrunning.Operation.response] field when it completes. 1453 * </pre> 1454 */ deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1455 default void deployModel( 1456 com.google.cloud.automl.v1beta1.DeployModelRequest request, 1457 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1458 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1459 getDeployModelMethod(), responseObserver); 1460 } 1461 1462 /** 1463 * 1464 * 1465 * <pre> 1466 * Undeploys a model. If the model is not deployed this method has no effect. 1467 * Only applicable for Text Classification, Image Object Detection and Tables; 1468 * all other domains manage deployment automatically. 1469 * Returns an empty response in the 1470 * [response][google.longrunning.Operation.response] field when it completes. 1471 * </pre> 1472 */ undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1473 default void undeployModel( 1474 com.google.cloud.automl.v1beta1.UndeployModelRequest request, 1475 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1476 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1477 getUndeployModelMethod(), responseObserver); 1478 } 1479 1480 /** 1481 * 1482 * 1483 * <pre> 1484 * Exports a trained, "export-able", model to a user specified Google Cloud 1485 * Storage location. A model is considered export-able if and only if it has 1486 * an export format defined for it in 1487 * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. 1488 * Returns an empty response in the 1489 * [response][google.longrunning.Operation.response] field when it completes. 1490 * </pre> 1491 */ exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1492 default void exportModel( 1493 com.google.cloud.automl.v1beta1.ExportModelRequest request, 1494 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1495 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1496 getExportModelMethod(), responseObserver); 1497 } 1498 1499 /** 1500 * 1501 * 1502 * <pre> 1503 * Exports examples on which the model was evaluated (i.e. which were in the 1504 * TEST set of the dataset the model was created from), together with their 1505 * ground truth annotations and the annotations created (predicted) by the 1506 * model. 1507 * The examples, ground truth and predictions are exported in the state 1508 * they were at the moment the model was evaluated. 1509 * This export is available only for 30 days since the model evaluation is 1510 * created. 1511 * Currently only available for Tables. 1512 * Returns an empty response in the 1513 * [response][google.longrunning.Operation.response] field when it completes. 1514 * </pre> 1515 */ exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1516 default void exportEvaluatedExamples( 1517 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, 1518 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1519 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1520 getExportEvaluatedExamplesMethod(), responseObserver); 1521 } 1522 1523 /** 1524 * 1525 * 1526 * <pre> 1527 * Gets a model evaluation. 1528 * </pre> 1529 */ getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ModelEvaluation> responseObserver)1530 default void getModelEvaluation( 1531 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, 1532 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ModelEvaluation> 1533 responseObserver) { 1534 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1535 getGetModelEvaluationMethod(), responseObserver); 1536 } 1537 1538 /** 1539 * 1540 * 1541 * <pre> 1542 * Lists model evaluations. 1543 * </pre> 1544 */ listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> responseObserver)1545 default void listModelEvaluations( 1546 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, 1547 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> 1548 responseObserver) { 1549 io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( 1550 getListModelEvaluationsMethod(), responseObserver); 1551 } 1552 } 1553 1554 /** 1555 * Base class for the server implementation of the service AutoMl. 1556 * 1557 * <pre> 1558 * AutoML Server API. 1559 * The resource names are assigned by the server. 1560 * The server never reuses names that it has created after the resources with 1561 * those names are deleted. 1562 * An ID of a resource is the last element of the item's resource name. For 1563 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 1564 * the id for the item is `{dataset_id}`. 1565 * Currently the only supported `location_id` is "us-central1". 1566 * On any input that is documented to expect a string parameter in 1567 * snake_case or kebab-case, either of those cases is accepted. 1568 * </pre> 1569 */ 1570 public abstract static class AutoMlImplBase implements io.grpc.BindableService, AsyncService { 1571 1572 @java.lang.Override bindService()1573 public final io.grpc.ServerServiceDefinition bindService() { 1574 return AutoMlGrpc.bindService(this); 1575 } 1576 } 1577 1578 /** 1579 * A stub to allow clients to do asynchronous rpc calls to service AutoMl. 1580 * 1581 * <pre> 1582 * AutoML Server API. 1583 * The resource names are assigned by the server. 1584 * The server never reuses names that it has created after the resources with 1585 * those names are deleted. 1586 * An ID of a resource is the last element of the item's resource name. For 1587 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 1588 * the id for the item is `{dataset_id}`. 1589 * Currently the only supported `location_id` is "us-central1". 1590 * On any input that is documented to expect a string parameter in 1591 * snake_case or kebab-case, either of those cases is accepted. 1592 * </pre> 1593 */ 1594 public static final class AutoMlStub extends io.grpc.stub.AbstractAsyncStub<AutoMlStub> { AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1595 private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1596 super(channel, callOptions); 1597 } 1598 1599 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1600 protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 1601 return new AutoMlStub(channel, callOptions); 1602 } 1603 1604 /** 1605 * 1606 * 1607 * <pre> 1608 * Creates a dataset. 1609 * </pre> 1610 */ createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1611 public void createDataset( 1612 com.google.cloud.automl.v1beta1.CreateDatasetRequest request, 1613 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1614 io.grpc.stub.ClientCalls.asyncUnaryCall( 1615 getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), 1616 request, 1617 responseObserver); 1618 } 1619 1620 /** 1621 * 1622 * 1623 * <pre> 1624 * Gets a dataset. 1625 * </pre> 1626 */ getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1627 public void getDataset( 1628 com.google.cloud.automl.v1beta1.GetDatasetRequest request, 1629 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1630 io.grpc.stub.ClientCalls.asyncUnaryCall( 1631 getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); 1632 } 1633 1634 /** 1635 * 1636 * 1637 * <pre> 1638 * Lists datasets in a project. 1639 * </pre> 1640 */ listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListDatasetsResponse> responseObserver)1641 public void listDatasets( 1642 com.google.cloud.automl.v1beta1.ListDatasetsRequest request, 1643 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListDatasetsResponse> 1644 responseObserver) { 1645 io.grpc.stub.ClientCalls.asyncUnaryCall( 1646 getChannel().newCall(getListDatasetsMethod(), getCallOptions()), 1647 request, 1648 responseObserver); 1649 } 1650 1651 /** 1652 * 1653 * 1654 * <pre> 1655 * Updates a dataset. 1656 * </pre> 1657 */ updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver)1658 public void updateDataset( 1659 com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, 1660 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset> responseObserver) { 1661 io.grpc.stub.ClientCalls.asyncUnaryCall( 1662 getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), 1663 request, 1664 responseObserver); 1665 } 1666 1667 /** 1668 * 1669 * 1670 * <pre> 1671 * Deletes a dataset and all of its contents. 1672 * Returns empty response in the 1673 * [response][google.longrunning.Operation.response] field when it completes, 1674 * and `delete_details` in the 1675 * [metadata][google.longrunning.Operation.metadata] field. 1676 * </pre> 1677 */ deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1678 public void deleteDataset( 1679 com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, 1680 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1681 io.grpc.stub.ClientCalls.asyncUnaryCall( 1682 getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), 1683 request, 1684 responseObserver); 1685 } 1686 1687 /** 1688 * 1689 * 1690 * <pre> 1691 * Imports data into a dataset. 1692 * For Tables this method can only be called on an empty Dataset. 1693 * For Tables: 1694 * * A 1695 * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] 1696 * parameter must be explicitly set. 1697 * Returns an empty response in the 1698 * [response][google.longrunning.Operation.response] field when it completes. 1699 * </pre> 1700 */ importData( com.google.cloud.automl.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1701 public void importData( 1702 com.google.cloud.automl.v1beta1.ImportDataRequest request, 1703 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1704 io.grpc.stub.ClientCalls.asyncUnaryCall( 1705 getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); 1706 } 1707 1708 /** 1709 * 1710 * 1711 * <pre> 1712 * Exports dataset's data to the provided output location. 1713 * Returns an empty response in the 1714 * [response][google.longrunning.Operation.response] field when it completes. 1715 * </pre> 1716 */ exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1717 public void exportData( 1718 com.google.cloud.automl.v1beta1.ExportDataRequest request, 1719 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1720 io.grpc.stub.ClientCalls.asyncUnaryCall( 1721 getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); 1722 } 1723 1724 /** 1725 * 1726 * 1727 * <pre> 1728 * Gets an annotation spec. 1729 * </pre> 1730 */ getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.AnnotationSpec> responseObserver)1731 public void getAnnotationSpec( 1732 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, 1733 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.AnnotationSpec> 1734 responseObserver) { 1735 io.grpc.stub.ClientCalls.asyncUnaryCall( 1736 getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), 1737 request, 1738 responseObserver); 1739 } 1740 1741 /** 1742 * 1743 * 1744 * <pre> 1745 * Gets a table spec. 1746 * </pre> 1747 */ getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver)1748 public void getTableSpec( 1749 com.google.cloud.automl.v1beta1.GetTableSpecRequest request, 1750 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver) { 1751 io.grpc.stub.ClientCalls.asyncUnaryCall( 1752 getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), 1753 request, 1754 responseObserver); 1755 } 1756 1757 /** 1758 * 1759 * 1760 * <pre> 1761 * Lists table specs in a dataset. 1762 * </pre> 1763 */ listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListTableSpecsResponse> responseObserver)1764 public void listTableSpecs( 1765 com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, 1766 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListTableSpecsResponse> 1767 responseObserver) { 1768 io.grpc.stub.ClientCalls.asyncUnaryCall( 1769 getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), 1770 request, 1771 responseObserver); 1772 } 1773 1774 /** 1775 * 1776 * 1777 * <pre> 1778 * Updates a table spec. 1779 * </pre> 1780 */ updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver)1781 public void updateTableSpec( 1782 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, 1783 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec> responseObserver) { 1784 io.grpc.stub.ClientCalls.asyncUnaryCall( 1785 getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), 1786 request, 1787 responseObserver); 1788 } 1789 1790 /** 1791 * 1792 * 1793 * <pre> 1794 * Gets a column spec. 1795 * </pre> 1796 */ getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver)1797 public void getColumnSpec( 1798 com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, 1799 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver) { 1800 io.grpc.stub.ClientCalls.asyncUnaryCall( 1801 getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), 1802 request, 1803 responseObserver); 1804 } 1805 1806 /** 1807 * 1808 * 1809 * <pre> 1810 * Lists column specs in a table spec. 1811 * </pre> 1812 */ listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> responseObserver)1813 public void listColumnSpecs( 1814 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, 1815 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> 1816 responseObserver) { 1817 io.grpc.stub.ClientCalls.asyncUnaryCall( 1818 getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), 1819 request, 1820 responseObserver); 1821 } 1822 1823 /** 1824 * 1825 * 1826 * <pre> 1827 * Updates a column spec. 1828 * </pre> 1829 */ updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver)1830 public void updateColumnSpec( 1831 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, 1832 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec> responseObserver) { 1833 io.grpc.stub.ClientCalls.asyncUnaryCall( 1834 getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), 1835 request, 1836 responseObserver); 1837 } 1838 1839 /** 1840 * 1841 * 1842 * <pre> 1843 * Creates a model. 1844 * Returns a Model in the [response][google.longrunning.Operation.response] 1845 * field when it completes. 1846 * When you create a model, several model evaluations are created for it: 1847 * a global evaluation, and one evaluation for each annotation spec. 1848 * </pre> 1849 */ createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1850 public void createModel( 1851 com.google.cloud.automl.v1beta1.CreateModelRequest request, 1852 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1853 io.grpc.stub.ClientCalls.asyncUnaryCall( 1854 getChannel().newCall(getCreateModelMethod(), getCallOptions()), 1855 request, 1856 responseObserver); 1857 } 1858 1859 /** 1860 * 1861 * 1862 * <pre> 1863 * Gets a model. 1864 * </pre> 1865 */ getModel( com.google.cloud.automl.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Model> responseObserver)1866 public void getModel( 1867 com.google.cloud.automl.v1beta1.GetModelRequest request, 1868 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Model> responseObserver) { 1869 io.grpc.stub.ClientCalls.asyncUnaryCall( 1870 getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); 1871 } 1872 1873 /** 1874 * 1875 * 1876 * <pre> 1877 * Lists models. 1878 * </pre> 1879 */ listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelsResponse> responseObserver)1880 public void listModels( 1881 com.google.cloud.automl.v1beta1.ListModelsRequest request, 1882 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelsResponse> 1883 responseObserver) { 1884 io.grpc.stub.ClientCalls.asyncUnaryCall( 1885 getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); 1886 } 1887 1888 /** 1889 * 1890 * 1891 * <pre> 1892 * Deletes a model. 1893 * Returns `google.protobuf.Empty` in the 1894 * [response][google.longrunning.Operation.response] field when it completes, 1895 * and `delete_details` in the 1896 * [metadata][google.longrunning.Operation.metadata] field. 1897 * </pre> 1898 */ deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1899 public void deleteModel( 1900 com.google.cloud.automl.v1beta1.DeleteModelRequest request, 1901 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1902 io.grpc.stub.ClientCalls.asyncUnaryCall( 1903 getChannel().newCall(getDeleteModelMethod(), getCallOptions()), 1904 request, 1905 responseObserver); 1906 } 1907 1908 /** 1909 * 1910 * 1911 * <pre> 1912 * Deploys a model. If a model is already deployed, deploying it with the 1913 * same parameters has no effect. Deploying with different parametrs 1914 * (as e.g. changing 1915 * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) 1916 * will reset the deployment state without pausing the model's availability. 1917 * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage 1918 * deployment automatically. 1919 * Returns an empty response in the 1920 * [response][google.longrunning.Operation.response] field when it completes. 1921 * </pre> 1922 */ deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1923 public void deployModel( 1924 com.google.cloud.automl.v1beta1.DeployModelRequest request, 1925 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1926 io.grpc.stub.ClientCalls.asyncUnaryCall( 1927 getChannel().newCall(getDeployModelMethod(), getCallOptions()), 1928 request, 1929 responseObserver); 1930 } 1931 1932 /** 1933 * 1934 * 1935 * <pre> 1936 * Undeploys a model. If the model is not deployed this method has no effect. 1937 * Only applicable for Text Classification, Image Object Detection and Tables; 1938 * all other domains manage deployment automatically. 1939 * Returns an empty response in the 1940 * [response][google.longrunning.Operation.response] field when it completes. 1941 * </pre> 1942 */ undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1943 public void undeployModel( 1944 com.google.cloud.automl.v1beta1.UndeployModelRequest request, 1945 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1946 io.grpc.stub.ClientCalls.asyncUnaryCall( 1947 getChannel().newCall(getUndeployModelMethod(), getCallOptions()), 1948 request, 1949 responseObserver); 1950 } 1951 1952 /** 1953 * 1954 * 1955 * <pre> 1956 * Exports a trained, "export-able", model to a user specified Google Cloud 1957 * Storage location. A model is considered export-able if and only if it has 1958 * an export format defined for it in 1959 * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. 1960 * Returns an empty response in the 1961 * [response][google.longrunning.Operation.response] field when it completes. 1962 * </pre> 1963 */ exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1964 public void exportModel( 1965 com.google.cloud.automl.v1beta1.ExportModelRequest request, 1966 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1967 io.grpc.stub.ClientCalls.asyncUnaryCall( 1968 getChannel().newCall(getExportModelMethod(), getCallOptions()), 1969 request, 1970 responseObserver); 1971 } 1972 1973 /** 1974 * 1975 * 1976 * <pre> 1977 * Exports examples on which the model was evaluated (i.e. which were in the 1978 * TEST set of the dataset the model was created from), together with their 1979 * ground truth annotations and the annotations created (predicted) by the 1980 * model. 1981 * The examples, ground truth and predictions are exported in the state 1982 * they were at the moment the model was evaluated. 1983 * This export is available only for 30 days since the model evaluation is 1984 * created. 1985 * Currently only available for Tables. 1986 * Returns an empty response in the 1987 * [response][google.longrunning.Operation.response] field when it completes. 1988 * </pre> 1989 */ exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1990 public void exportEvaluatedExamples( 1991 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, 1992 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { 1993 io.grpc.stub.ClientCalls.asyncUnaryCall( 1994 getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), 1995 request, 1996 responseObserver); 1997 } 1998 1999 /** 2000 * 2001 * 2002 * <pre> 2003 * Gets a model evaluation. 2004 * </pre> 2005 */ getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ModelEvaluation> responseObserver)2006 public void getModelEvaluation( 2007 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, 2008 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ModelEvaluation> 2009 responseObserver) { 2010 io.grpc.stub.ClientCalls.asyncUnaryCall( 2011 getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), 2012 request, 2013 responseObserver); 2014 } 2015 2016 /** 2017 * 2018 * 2019 * <pre> 2020 * Lists model evaluations. 2021 * </pre> 2022 */ listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> responseObserver)2023 public void listModelEvaluations( 2024 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, 2025 io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> 2026 responseObserver) { 2027 io.grpc.stub.ClientCalls.asyncUnaryCall( 2028 getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), 2029 request, 2030 responseObserver); 2031 } 2032 } 2033 2034 /** 2035 * A stub to allow clients to do synchronous rpc calls to service AutoMl. 2036 * 2037 * <pre> 2038 * AutoML Server API. 2039 * The resource names are assigned by the server. 2040 * The server never reuses names that it has created after the resources with 2041 * those names are deleted. 2042 * An ID of a resource is the last element of the item's resource name. For 2043 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 2044 * the id for the item is `{dataset_id}`. 2045 * Currently the only supported `location_id` is "us-central1". 2046 * On any input that is documented to expect a string parameter in 2047 * snake_case or kebab-case, either of those cases is accepted. 2048 * </pre> 2049 */ 2050 public static final class AutoMlBlockingStub 2051 extends io.grpc.stub.AbstractBlockingStub<AutoMlBlockingStub> { AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2052 private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 2053 super(channel, callOptions); 2054 } 2055 2056 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2057 protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 2058 return new AutoMlBlockingStub(channel, callOptions); 2059 } 2060 2061 /** 2062 * 2063 * 2064 * <pre> 2065 * Creates a dataset. 2066 * </pre> 2067 */ createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request)2068 public com.google.cloud.automl.v1beta1.Dataset createDataset( 2069 com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { 2070 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2071 getChannel(), getCreateDatasetMethod(), getCallOptions(), request); 2072 } 2073 2074 /** 2075 * 2076 * 2077 * <pre> 2078 * Gets a dataset. 2079 * </pre> 2080 */ getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request)2081 public com.google.cloud.automl.v1beta1.Dataset getDataset( 2082 com.google.cloud.automl.v1beta1.GetDatasetRequest request) { 2083 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2084 getChannel(), getGetDatasetMethod(), getCallOptions(), request); 2085 } 2086 2087 /** 2088 * 2089 * 2090 * <pre> 2091 * Lists datasets in a project. 2092 * </pre> 2093 */ listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request)2094 public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( 2095 com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { 2096 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2097 getChannel(), getListDatasetsMethod(), getCallOptions(), request); 2098 } 2099 2100 /** 2101 * 2102 * 2103 * <pre> 2104 * Updates a dataset. 2105 * </pre> 2106 */ updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request)2107 public com.google.cloud.automl.v1beta1.Dataset updateDataset( 2108 com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { 2109 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2110 getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); 2111 } 2112 2113 /** 2114 * 2115 * 2116 * <pre> 2117 * Deletes a dataset and all of its contents. 2118 * Returns empty response in the 2119 * [response][google.longrunning.Operation.response] field when it completes, 2120 * and `delete_details` in the 2121 * [metadata][google.longrunning.Operation.metadata] field. 2122 * </pre> 2123 */ deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request)2124 public com.google.longrunning.Operation deleteDataset( 2125 com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { 2126 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2127 getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); 2128 } 2129 2130 /** 2131 * 2132 * 2133 * <pre> 2134 * Imports data into a dataset. 2135 * For Tables this method can only be called on an empty Dataset. 2136 * For Tables: 2137 * * A 2138 * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] 2139 * parameter must be explicitly set. 2140 * Returns an empty response in the 2141 * [response][google.longrunning.Operation.response] field when it completes. 2142 * </pre> 2143 */ importData( com.google.cloud.automl.v1beta1.ImportDataRequest request)2144 public com.google.longrunning.Operation importData( 2145 com.google.cloud.automl.v1beta1.ImportDataRequest request) { 2146 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2147 getChannel(), getImportDataMethod(), getCallOptions(), request); 2148 } 2149 2150 /** 2151 * 2152 * 2153 * <pre> 2154 * Exports dataset's data to the provided output location. 2155 * Returns an empty response in the 2156 * [response][google.longrunning.Operation.response] field when it completes. 2157 * </pre> 2158 */ exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request)2159 public com.google.longrunning.Operation exportData( 2160 com.google.cloud.automl.v1beta1.ExportDataRequest request) { 2161 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2162 getChannel(), getExportDataMethod(), getCallOptions(), request); 2163 } 2164 2165 /** 2166 * 2167 * 2168 * <pre> 2169 * Gets an annotation spec. 2170 * </pre> 2171 */ getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request)2172 public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( 2173 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { 2174 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2175 getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); 2176 } 2177 2178 /** 2179 * 2180 * 2181 * <pre> 2182 * Gets a table spec. 2183 * </pre> 2184 */ getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request)2185 public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( 2186 com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { 2187 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2188 getChannel(), getGetTableSpecMethod(), getCallOptions(), request); 2189 } 2190 2191 /** 2192 * 2193 * 2194 * <pre> 2195 * Lists table specs in a dataset. 2196 * </pre> 2197 */ listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request)2198 public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( 2199 com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { 2200 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2201 getChannel(), getListTableSpecsMethod(), getCallOptions(), request); 2202 } 2203 2204 /** 2205 * 2206 * 2207 * <pre> 2208 * Updates a table spec. 2209 * </pre> 2210 */ updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request)2211 public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( 2212 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { 2213 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2214 getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); 2215 } 2216 2217 /** 2218 * 2219 * 2220 * <pre> 2221 * Gets a column spec. 2222 * </pre> 2223 */ getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request)2224 public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( 2225 com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { 2226 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2227 getChannel(), getGetColumnSpecMethod(), getCallOptions(), request); 2228 } 2229 2230 /** 2231 * 2232 * 2233 * <pre> 2234 * Lists column specs in a table spec. 2235 * </pre> 2236 */ listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request)2237 public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( 2238 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { 2239 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2240 getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); 2241 } 2242 2243 /** 2244 * 2245 * 2246 * <pre> 2247 * Updates a column spec. 2248 * </pre> 2249 */ updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request)2250 public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( 2251 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { 2252 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2253 getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); 2254 } 2255 2256 /** 2257 * 2258 * 2259 * <pre> 2260 * Creates a model. 2261 * Returns a Model in the [response][google.longrunning.Operation.response] 2262 * field when it completes. 2263 * When you create a model, several model evaluations are created for it: 2264 * a global evaluation, and one evaluation for each annotation spec. 2265 * </pre> 2266 */ createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request)2267 public com.google.longrunning.Operation createModel( 2268 com.google.cloud.automl.v1beta1.CreateModelRequest request) { 2269 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2270 getChannel(), getCreateModelMethod(), getCallOptions(), request); 2271 } 2272 2273 /** 2274 * 2275 * 2276 * <pre> 2277 * Gets a model. 2278 * </pre> 2279 */ getModel( com.google.cloud.automl.v1beta1.GetModelRequest request)2280 public com.google.cloud.automl.v1beta1.Model getModel( 2281 com.google.cloud.automl.v1beta1.GetModelRequest request) { 2282 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2283 getChannel(), getGetModelMethod(), getCallOptions(), request); 2284 } 2285 2286 /** 2287 * 2288 * 2289 * <pre> 2290 * Lists models. 2291 * </pre> 2292 */ listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request)2293 public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( 2294 com.google.cloud.automl.v1beta1.ListModelsRequest request) { 2295 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2296 getChannel(), getListModelsMethod(), getCallOptions(), request); 2297 } 2298 2299 /** 2300 * 2301 * 2302 * <pre> 2303 * Deletes a model. 2304 * Returns `google.protobuf.Empty` in the 2305 * [response][google.longrunning.Operation.response] field when it completes, 2306 * and `delete_details` in the 2307 * [metadata][google.longrunning.Operation.metadata] field. 2308 * </pre> 2309 */ deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request)2310 public com.google.longrunning.Operation deleteModel( 2311 com.google.cloud.automl.v1beta1.DeleteModelRequest request) { 2312 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2313 getChannel(), getDeleteModelMethod(), getCallOptions(), request); 2314 } 2315 2316 /** 2317 * 2318 * 2319 * <pre> 2320 * Deploys a model. If a model is already deployed, deploying it with the 2321 * same parameters has no effect. Deploying with different parametrs 2322 * (as e.g. changing 2323 * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) 2324 * will reset the deployment state without pausing the model's availability. 2325 * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage 2326 * deployment automatically. 2327 * Returns an empty response in the 2328 * [response][google.longrunning.Operation.response] field when it completes. 2329 * </pre> 2330 */ deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request)2331 public com.google.longrunning.Operation deployModel( 2332 com.google.cloud.automl.v1beta1.DeployModelRequest request) { 2333 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2334 getChannel(), getDeployModelMethod(), getCallOptions(), request); 2335 } 2336 2337 /** 2338 * 2339 * 2340 * <pre> 2341 * Undeploys a model. If the model is not deployed this method has no effect. 2342 * Only applicable for Text Classification, Image Object Detection and Tables; 2343 * all other domains manage deployment automatically. 2344 * Returns an empty response in the 2345 * [response][google.longrunning.Operation.response] field when it completes. 2346 * </pre> 2347 */ undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request)2348 public com.google.longrunning.Operation undeployModel( 2349 com.google.cloud.automl.v1beta1.UndeployModelRequest request) { 2350 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2351 getChannel(), getUndeployModelMethod(), getCallOptions(), request); 2352 } 2353 2354 /** 2355 * 2356 * 2357 * <pre> 2358 * Exports a trained, "export-able", model to a user specified Google Cloud 2359 * Storage location. A model is considered export-able if and only if it has 2360 * an export format defined for it in 2361 * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. 2362 * Returns an empty response in the 2363 * [response][google.longrunning.Operation.response] field when it completes. 2364 * </pre> 2365 */ exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request)2366 public com.google.longrunning.Operation exportModel( 2367 com.google.cloud.automl.v1beta1.ExportModelRequest request) { 2368 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2369 getChannel(), getExportModelMethod(), getCallOptions(), request); 2370 } 2371 2372 /** 2373 * 2374 * 2375 * <pre> 2376 * Exports examples on which the model was evaluated (i.e. which were in the 2377 * TEST set of the dataset the model was created from), together with their 2378 * ground truth annotations and the annotations created (predicted) by the 2379 * model. 2380 * The examples, ground truth and predictions are exported in the state 2381 * they were at the moment the model was evaluated. 2382 * This export is available only for 30 days since the model evaluation is 2383 * created. 2384 * Currently only available for Tables. 2385 * Returns an empty response in the 2386 * [response][google.longrunning.Operation.response] field when it completes. 2387 * </pre> 2388 */ exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request)2389 public com.google.longrunning.Operation exportEvaluatedExamples( 2390 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { 2391 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2392 getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); 2393 } 2394 2395 /** 2396 * 2397 * 2398 * <pre> 2399 * Gets a model evaluation. 2400 * </pre> 2401 */ getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request)2402 public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( 2403 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { 2404 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2405 getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); 2406 } 2407 2408 /** 2409 * 2410 * 2411 * <pre> 2412 * Lists model evaluations. 2413 * </pre> 2414 */ listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request)2415 public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations( 2416 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { 2417 return io.grpc.stub.ClientCalls.blockingUnaryCall( 2418 getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); 2419 } 2420 } 2421 2422 /** 2423 * A stub to allow clients to do ListenableFuture-style rpc calls to service AutoMl. 2424 * 2425 * <pre> 2426 * AutoML Server API. 2427 * The resource names are assigned by the server. 2428 * The server never reuses names that it has created after the resources with 2429 * those names are deleted. 2430 * An ID of a resource is the last element of the item's resource name. For 2431 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then 2432 * the id for the item is `{dataset_id}`. 2433 * Currently the only supported `location_id` is "us-central1". 2434 * On any input that is documented to expect a string parameter in 2435 * snake_case or kebab-case, either of those cases is accepted. 2436 * </pre> 2437 */ 2438 public static final class AutoMlFutureStub 2439 extends io.grpc.stub.AbstractFutureStub<AutoMlFutureStub> { AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2440 private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 2441 super(channel, callOptions); 2442 } 2443 2444 @java.lang.Override build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2445 protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { 2446 return new AutoMlFutureStub(channel, callOptions); 2447 } 2448 2449 /** 2450 * 2451 * 2452 * <pre> 2453 * Creates a dataset. 2454 * </pre> 2455 */ 2456 public com.google.common.util.concurrent.ListenableFuture< 2457 com.google.cloud.automl.v1beta1.Dataset> createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request)2458 createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { 2459 return io.grpc.stub.ClientCalls.futureUnaryCall( 2460 getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); 2461 } 2462 2463 /** 2464 * 2465 * 2466 * <pre> 2467 * Gets a dataset. 2468 * </pre> 2469 */ 2470 public com.google.common.util.concurrent.ListenableFuture< 2471 com.google.cloud.automl.v1beta1.Dataset> getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request)2472 getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { 2473 return io.grpc.stub.ClientCalls.futureUnaryCall( 2474 getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); 2475 } 2476 2477 /** 2478 * 2479 * 2480 * <pre> 2481 * Lists datasets in a project. 2482 * </pre> 2483 */ 2484 public com.google.common.util.concurrent.ListenableFuture< 2485 com.google.cloud.automl.v1beta1.ListDatasetsResponse> listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request)2486 listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { 2487 return io.grpc.stub.ClientCalls.futureUnaryCall( 2488 getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); 2489 } 2490 2491 /** 2492 * 2493 * 2494 * <pre> 2495 * Updates a dataset. 2496 * </pre> 2497 */ 2498 public com.google.common.util.concurrent.ListenableFuture< 2499 com.google.cloud.automl.v1beta1.Dataset> updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request)2500 updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { 2501 return io.grpc.stub.ClientCalls.futureUnaryCall( 2502 getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); 2503 } 2504 2505 /** 2506 * 2507 * 2508 * <pre> 2509 * Deletes a dataset and all of its contents. 2510 * Returns empty response in the 2511 * [response][google.longrunning.Operation.response] field when it completes, 2512 * and `delete_details` in the 2513 * [metadata][google.longrunning.Operation.metadata] field. 2514 * </pre> 2515 */ 2516 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request)2517 deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { 2518 return io.grpc.stub.ClientCalls.futureUnaryCall( 2519 getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); 2520 } 2521 2522 /** 2523 * 2524 * 2525 * <pre> 2526 * Imports data into a dataset. 2527 * For Tables this method can only be called on an empty Dataset. 2528 * For Tables: 2529 * * A 2530 * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] 2531 * parameter must be explicitly set. 2532 * Returns an empty response in the 2533 * [response][google.longrunning.Operation.response] field when it completes. 2534 * </pre> 2535 */ 2536 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> importData(com.google.cloud.automl.v1beta1.ImportDataRequest request)2537 importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { 2538 return io.grpc.stub.ClientCalls.futureUnaryCall( 2539 getChannel().newCall(getImportDataMethod(), getCallOptions()), request); 2540 } 2541 2542 /** 2543 * 2544 * 2545 * <pre> 2546 * Exports dataset's data to the provided output location. 2547 * Returns an empty response in the 2548 * [response][google.longrunning.Operation.response] field when it completes. 2549 * </pre> 2550 */ 2551 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request)2552 exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { 2553 return io.grpc.stub.ClientCalls.futureUnaryCall( 2554 getChannel().newCall(getExportDataMethod(), getCallOptions()), request); 2555 } 2556 2557 /** 2558 * 2559 * 2560 * <pre> 2561 * Gets an annotation spec. 2562 * </pre> 2563 */ 2564 public com.google.common.util.concurrent.ListenableFuture< 2565 com.google.cloud.automl.v1beta1.AnnotationSpec> getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request)2566 getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { 2567 return io.grpc.stub.ClientCalls.futureUnaryCall( 2568 getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); 2569 } 2570 2571 /** 2572 * 2573 * 2574 * <pre> 2575 * Gets a table spec. 2576 * </pre> 2577 */ 2578 public com.google.common.util.concurrent.ListenableFuture< 2579 com.google.cloud.automl.v1beta1.TableSpec> getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request)2580 getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { 2581 return io.grpc.stub.ClientCalls.futureUnaryCall( 2582 getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request); 2583 } 2584 2585 /** 2586 * 2587 * 2588 * <pre> 2589 * Lists table specs in a dataset. 2590 * </pre> 2591 */ 2592 public com.google.common.util.concurrent.ListenableFuture< 2593 com.google.cloud.automl.v1beta1.ListTableSpecsResponse> listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request)2594 listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { 2595 return io.grpc.stub.ClientCalls.futureUnaryCall( 2596 getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request); 2597 } 2598 2599 /** 2600 * 2601 * 2602 * <pre> 2603 * Updates a table spec. 2604 * </pre> 2605 */ 2606 public com.google.common.util.concurrent.ListenableFuture< 2607 com.google.cloud.automl.v1beta1.TableSpec> updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request)2608 updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { 2609 return io.grpc.stub.ClientCalls.futureUnaryCall( 2610 getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request); 2611 } 2612 2613 /** 2614 * 2615 * 2616 * <pre> 2617 * Gets a column spec. 2618 * </pre> 2619 */ 2620 public com.google.common.util.concurrent.ListenableFuture< 2621 com.google.cloud.automl.v1beta1.ColumnSpec> getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request)2622 getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { 2623 return io.grpc.stub.ClientCalls.futureUnaryCall( 2624 getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), request); 2625 } 2626 2627 /** 2628 * 2629 * 2630 * <pre> 2631 * Lists column specs in a table spec. 2632 * </pre> 2633 */ 2634 public com.google.common.util.concurrent.ListenableFuture< 2635 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request)2636 listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { 2637 return io.grpc.stub.ClientCalls.futureUnaryCall( 2638 getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request); 2639 } 2640 2641 /** 2642 * 2643 * 2644 * <pre> 2645 * Updates a column spec. 2646 * </pre> 2647 */ 2648 public com.google.common.util.concurrent.ListenableFuture< 2649 com.google.cloud.automl.v1beta1.ColumnSpec> updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request)2650 updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { 2651 return io.grpc.stub.ClientCalls.futureUnaryCall( 2652 getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); 2653 } 2654 2655 /** 2656 * 2657 * 2658 * <pre> 2659 * Creates a model. 2660 * Returns a Model in the [response][google.longrunning.Operation.response] 2661 * field when it completes. 2662 * When you create a model, several model evaluations are created for it: 2663 * a global evaluation, and one evaluation for each annotation spec. 2664 * </pre> 2665 */ 2666 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request)2667 createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { 2668 return io.grpc.stub.ClientCalls.futureUnaryCall( 2669 getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); 2670 } 2671 2672 /** 2673 * 2674 * 2675 * <pre> 2676 * Gets a model. 2677 * </pre> 2678 */ 2679 public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.automl.v1beta1.Model> getModel(com.google.cloud.automl.v1beta1.GetModelRequest request)2680 getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { 2681 return io.grpc.stub.ClientCalls.futureUnaryCall( 2682 getChannel().newCall(getGetModelMethod(), getCallOptions()), request); 2683 } 2684 2685 /** 2686 * 2687 * 2688 * <pre> 2689 * Lists models. 2690 * </pre> 2691 */ 2692 public com.google.common.util.concurrent.ListenableFuture< 2693 com.google.cloud.automl.v1beta1.ListModelsResponse> listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request)2694 listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { 2695 return io.grpc.stub.ClientCalls.futureUnaryCall( 2696 getChannel().newCall(getListModelsMethod(), getCallOptions()), request); 2697 } 2698 2699 /** 2700 * 2701 * 2702 * <pre> 2703 * Deletes a model. 2704 * Returns `google.protobuf.Empty` in the 2705 * [response][google.longrunning.Operation.response] field when it completes, 2706 * and `delete_details` in the 2707 * [metadata][google.longrunning.Operation.metadata] field. 2708 * </pre> 2709 */ 2710 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request)2711 deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { 2712 return io.grpc.stub.ClientCalls.futureUnaryCall( 2713 getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); 2714 } 2715 2716 /** 2717 * 2718 * 2719 * <pre> 2720 * Deploys a model. If a model is already deployed, deploying it with the 2721 * same parameters has no effect. Deploying with different parametrs 2722 * (as e.g. changing 2723 * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) 2724 * will reset the deployment state without pausing the model's availability. 2725 * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage 2726 * deployment automatically. 2727 * Returns an empty response in the 2728 * [response][google.longrunning.Operation.response] field when it completes. 2729 * </pre> 2730 */ 2731 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request)2732 deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { 2733 return io.grpc.stub.ClientCalls.futureUnaryCall( 2734 getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); 2735 } 2736 2737 /** 2738 * 2739 * 2740 * <pre> 2741 * Undeploys a model. If the model is not deployed this method has no effect. 2742 * Only applicable for Text Classification, Image Object Detection and Tables; 2743 * all other domains manage deployment automatically. 2744 * Returns an empty response in the 2745 * [response][google.longrunning.Operation.response] field when it completes. 2746 * </pre> 2747 */ 2748 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request)2749 undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { 2750 return io.grpc.stub.ClientCalls.futureUnaryCall( 2751 getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); 2752 } 2753 2754 /** 2755 * 2756 * 2757 * <pre> 2758 * Exports a trained, "export-able", model to a user specified Google Cloud 2759 * Storage location. A model is considered export-able if and only if it has 2760 * an export format defined for it in 2761 * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. 2762 * Returns an empty response in the 2763 * [response][google.longrunning.Operation.response] field when it completes. 2764 * </pre> 2765 */ 2766 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportModel(com.google.cloud.automl.v1beta1.ExportModelRequest request)2767 exportModel(com.google.cloud.automl.v1beta1.ExportModelRequest request) { 2768 return io.grpc.stub.ClientCalls.futureUnaryCall( 2769 getChannel().newCall(getExportModelMethod(), getCallOptions()), request); 2770 } 2771 2772 /** 2773 * 2774 * 2775 * <pre> 2776 * Exports examples on which the model was evaluated (i.e. which were in the 2777 * TEST set of the dataset the model was created from), together with their 2778 * ground truth annotations and the annotations created (predicted) by the 2779 * model. 2780 * The examples, ground truth and predictions are exported in the state 2781 * they were at the moment the model was evaluated. 2782 * This export is available only for 30 days since the model evaluation is 2783 * created. 2784 * Currently only available for Tables. 2785 * Returns an empty response in the 2786 * [response][google.longrunning.Operation.response] field when it completes. 2787 * </pre> 2788 */ 2789 public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request)2790 exportEvaluatedExamples( 2791 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { 2792 return io.grpc.stub.ClientCalls.futureUnaryCall( 2793 getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); 2794 } 2795 2796 /** 2797 * 2798 * 2799 * <pre> 2800 * Gets a model evaluation. 2801 * </pre> 2802 */ 2803 public com.google.common.util.concurrent.ListenableFuture< 2804 com.google.cloud.automl.v1beta1.ModelEvaluation> getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request)2805 getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { 2806 return io.grpc.stub.ClientCalls.futureUnaryCall( 2807 getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); 2808 } 2809 2810 /** 2811 * 2812 * 2813 * <pre> 2814 * Lists model evaluations. 2815 * </pre> 2816 */ 2817 public com.google.common.util.concurrent.ListenableFuture< 2818 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request)2819 listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { 2820 return io.grpc.stub.ClientCalls.futureUnaryCall( 2821 getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); 2822 } 2823 } 2824 2825 private static final int METHODID_CREATE_DATASET = 0; 2826 private static final int METHODID_GET_DATASET = 1; 2827 private static final int METHODID_LIST_DATASETS = 2; 2828 private static final int METHODID_UPDATE_DATASET = 3; 2829 private static final int METHODID_DELETE_DATASET = 4; 2830 private static final int METHODID_IMPORT_DATA = 5; 2831 private static final int METHODID_EXPORT_DATA = 6; 2832 private static final int METHODID_GET_ANNOTATION_SPEC = 7; 2833 private static final int METHODID_GET_TABLE_SPEC = 8; 2834 private static final int METHODID_LIST_TABLE_SPECS = 9; 2835 private static final int METHODID_UPDATE_TABLE_SPEC = 10; 2836 private static final int METHODID_GET_COLUMN_SPEC = 11; 2837 private static final int METHODID_LIST_COLUMN_SPECS = 12; 2838 private static final int METHODID_UPDATE_COLUMN_SPEC = 13; 2839 private static final int METHODID_CREATE_MODEL = 14; 2840 private static final int METHODID_GET_MODEL = 15; 2841 private static final int METHODID_LIST_MODELS = 16; 2842 private static final int METHODID_DELETE_MODEL = 17; 2843 private static final int METHODID_DEPLOY_MODEL = 18; 2844 private static final int METHODID_UNDEPLOY_MODEL = 19; 2845 private static final int METHODID_EXPORT_MODEL = 20; 2846 private static final int METHODID_EXPORT_EVALUATED_EXAMPLES = 21; 2847 private static final int METHODID_GET_MODEL_EVALUATION = 22; 2848 private static final int METHODID_LIST_MODEL_EVALUATIONS = 23; 2849 2850 private static final class MethodHandlers<Req, Resp> 2851 implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, 2852 io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, 2853 io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, 2854 io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { 2855 private final AsyncService serviceImpl; 2856 private final int methodId; 2857 MethodHandlers(AsyncService serviceImpl, int methodId)2858 MethodHandlers(AsyncService serviceImpl, int methodId) { 2859 this.serviceImpl = serviceImpl; 2860 this.methodId = methodId; 2861 } 2862 2863 @java.lang.Override 2864 @java.lang.SuppressWarnings("unchecked") invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)2865 public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { 2866 switch (methodId) { 2867 case METHODID_CREATE_DATASET: 2868 serviceImpl.createDataset( 2869 (com.google.cloud.automl.v1beta1.CreateDatasetRequest) request, 2870 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset>) 2871 responseObserver); 2872 break; 2873 case METHODID_GET_DATASET: 2874 serviceImpl.getDataset( 2875 (com.google.cloud.automl.v1beta1.GetDatasetRequest) request, 2876 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset>) 2877 responseObserver); 2878 break; 2879 case METHODID_LIST_DATASETS: 2880 serviceImpl.listDatasets( 2881 (com.google.cloud.automl.v1beta1.ListDatasetsRequest) request, 2882 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListDatasetsResponse>) 2883 responseObserver); 2884 break; 2885 case METHODID_UPDATE_DATASET: 2886 serviceImpl.updateDataset( 2887 (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) request, 2888 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Dataset>) 2889 responseObserver); 2890 break; 2891 case METHODID_DELETE_DATASET: 2892 serviceImpl.deleteDataset( 2893 (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) request, 2894 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2895 break; 2896 case METHODID_IMPORT_DATA: 2897 serviceImpl.importData( 2898 (com.google.cloud.automl.v1beta1.ImportDataRequest) request, 2899 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2900 break; 2901 case METHODID_EXPORT_DATA: 2902 serviceImpl.exportData( 2903 (com.google.cloud.automl.v1beta1.ExportDataRequest) request, 2904 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2905 break; 2906 case METHODID_GET_ANNOTATION_SPEC: 2907 serviceImpl.getAnnotationSpec( 2908 (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) request, 2909 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.AnnotationSpec>) 2910 responseObserver); 2911 break; 2912 case METHODID_GET_TABLE_SPEC: 2913 serviceImpl.getTableSpec( 2914 (com.google.cloud.automl.v1beta1.GetTableSpecRequest) request, 2915 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec>) 2916 responseObserver); 2917 break; 2918 case METHODID_LIST_TABLE_SPECS: 2919 serviceImpl.listTableSpecs( 2920 (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) request, 2921 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListTableSpecsResponse>) 2922 responseObserver); 2923 break; 2924 case METHODID_UPDATE_TABLE_SPEC: 2925 serviceImpl.updateTableSpec( 2926 (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) request, 2927 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.TableSpec>) 2928 responseObserver); 2929 break; 2930 case METHODID_GET_COLUMN_SPEC: 2931 serviceImpl.getColumnSpec( 2932 (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) request, 2933 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec>) 2934 responseObserver); 2935 break; 2936 case METHODID_LIST_COLUMN_SPECS: 2937 serviceImpl.listColumnSpecs( 2938 (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) request, 2939 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>) 2940 responseObserver); 2941 break; 2942 case METHODID_UPDATE_COLUMN_SPEC: 2943 serviceImpl.updateColumnSpec( 2944 (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) request, 2945 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ColumnSpec>) 2946 responseObserver); 2947 break; 2948 case METHODID_CREATE_MODEL: 2949 serviceImpl.createModel( 2950 (com.google.cloud.automl.v1beta1.CreateModelRequest) request, 2951 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2952 break; 2953 case METHODID_GET_MODEL: 2954 serviceImpl.getModel( 2955 (com.google.cloud.automl.v1beta1.GetModelRequest) request, 2956 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.Model>) 2957 responseObserver); 2958 break; 2959 case METHODID_LIST_MODELS: 2960 serviceImpl.listModels( 2961 (com.google.cloud.automl.v1beta1.ListModelsRequest) request, 2962 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ListModelsResponse>) 2963 responseObserver); 2964 break; 2965 case METHODID_DELETE_MODEL: 2966 serviceImpl.deleteModel( 2967 (com.google.cloud.automl.v1beta1.DeleteModelRequest) request, 2968 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2969 break; 2970 case METHODID_DEPLOY_MODEL: 2971 serviceImpl.deployModel( 2972 (com.google.cloud.automl.v1beta1.DeployModelRequest) request, 2973 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2974 break; 2975 case METHODID_UNDEPLOY_MODEL: 2976 serviceImpl.undeployModel( 2977 (com.google.cloud.automl.v1beta1.UndeployModelRequest) request, 2978 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2979 break; 2980 case METHODID_EXPORT_MODEL: 2981 serviceImpl.exportModel( 2982 (com.google.cloud.automl.v1beta1.ExportModelRequest) request, 2983 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2984 break; 2985 case METHODID_EXPORT_EVALUATED_EXAMPLES: 2986 serviceImpl.exportEvaluatedExamples( 2987 (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) request, 2988 (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); 2989 break; 2990 case METHODID_GET_MODEL_EVALUATION: 2991 serviceImpl.getModelEvaluation( 2992 (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) request, 2993 (io.grpc.stub.StreamObserver<com.google.cloud.automl.v1beta1.ModelEvaluation>) 2994 responseObserver); 2995 break; 2996 case METHODID_LIST_MODEL_EVALUATIONS: 2997 serviceImpl.listModelEvaluations( 2998 (com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) request, 2999 (io.grpc.stub.StreamObserver< 3000 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>) 3001 responseObserver); 3002 break; 3003 default: 3004 throw new AssertionError(); 3005 } 3006 } 3007 3008 @java.lang.Override 3009 @java.lang.SuppressWarnings("unchecked") invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)3010 public io.grpc.stub.StreamObserver<Req> invoke( 3011 io.grpc.stub.StreamObserver<Resp> responseObserver) { 3012 switch (methodId) { 3013 default: 3014 throw new AssertionError(); 3015 } 3016 } 3017 } 3018 bindService(AsyncService service)3019 public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 3020 return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) 3021 .addMethod( 3022 getCreateDatasetMethod(), 3023 io.grpc.stub.ServerCalls.asyncUnaryCall( 3024 new MethodHandlers< 3025 com.google.cloud.automl.v1beta1.CreateDatasetRequest, 3026 com.google.cloud.automl.v1beta1.Dataset>(service, METHODID_CREATE_DATASET))) 3027 .addMethod( 3028 getGetDatasetMethod(), 3029 io.grpc.stub.ServerCalls.asyncUnaryCall( 3030 new MethodHandlers< 3031 com.google.cloud.automl.v1beta1.GetDatasetRequest, 3032 com.google.cloud.automl.v1beta1.Dataset>(service, METHODID_GET_DATASET))) 3033 .addMethod( 3034 getListDatasetsMethod(), 3035 io.grpc.stub.ServerCalls.asyncUnaryCall( 3036 new MethodHandlers< 3037 com.google.cloud.automl.v1beta1.ListDatasetsRequest, 3038 com.google.cloud.automl.v1beta1.ListDatasetsResponse>( 3039 service, METHODID_LIST_DATASETS))) 3040 .addMethod( 3041 getUpdateDatasetMethod(), 3042 io.grpc.stub.ServerCalls.asyncUnaryCall( 3043 new MethodHandlers< 3044 com.google.cloud.automl.v1beta1.UpdateDatasetRequest, 3045 com.google.cloud.automl.v1beta1.Dataset>(service, METHODID_UPDATE_DATASET))) 3046 .addMethod( 3047 getDeleteDatasetMethod(), 3048 io.grpc.stub.ServerCalls.asyncUnaryCall( 3049 new MethodHandlers< 3050 com.google.cloud.automl.v1beta1.DeleteDatasetRequest, 3051 com.google.longrunning.Operation>(service, METHODID_DELETE_DATASET))) 3052 .addMethod( 3053 getImportDataMethod(), 3054 io.grpc.stub.ServerCalls.asyncUnaryCall( 3055 new MethodHandlers< 3056 com.google.cloud.automl.v1beta1.ImportDataRequest, 3057 com.google.longrunning.Operation>(service, METHODID_IMPORT_DATA))) 3058 .addMethod( 3059 getExportDataMethod(), 3060 io.grpc.stub.ServerCalls.asyncUnaryCall( 3061 new MethodHandlers< 3062 com.google.cloud.automl.v1beta1.ExportDataRequest, 3063 com.google.longrunning.Operation>(service, METHODID_EXPORT_DATA))) 3064 .addMethod( 3065 getGetAnnotationSpecMethod(), 3066 io.grpc.stub.ServerCalls.asyncUnaryCall( 3067 new MethodHandlers< 3068 com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, 3069 com.google.cloud.automl.v1beta1.AnnotationSpec>( 3070 service, METHODID_GET_ANNOTATION_SPEC))) 3071 .addMethod( 3072 getGetTableSpecMethod(), 3073 io.grpc.stub.ServerCalls.asyncUnaryCall( 3074 new MethodHandlers< 3075 com.google.cloud.automl.v1beta1.GetTableSpecRequest, 3076 com.google.cloud.automl.v1beta1.TableSpec>(service, METHODID_GET_TABLE_SPEC))) 3077 .addMethod( 3078 getListTableSpecsMethod(), 3079 io.grpc.stub.ServerCalls.asyncUnaryCall( 3080 new MethodHandlers< 3081 com.google.cloud.automl.v1beta1.ListTableSpecsRequest, 3082 com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( 3083 service, METHODID_LIST_TABLE_SPECS))) 3084 .addMethod( 3085 getUpdateTableSpecMethod(), 3086 io.grpc.stub.ServerCalls.asyncUnaryCall( 3087 new MethodHandlers< 3088 com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, 3089 com.google.cloud.automl.v1beta1.TableSpec>( 3090 service, METHODID_UPDATE_TABLE_SPEC))) 3091 .addMethod( 3092 getGetColumnSpecMethod(), 3093 io.grpc.stub.ServerCalls.asyncUnaryCall( 3094 new MethodHandlers< 3095 com.google.cloud.automl.v1beta1.GetColumnSpecRequest, 3096 com.google.cloud.automl.v1beta1.ColumnSpec>(service, METHODID_GET_COLUMN_SPEC))) 3097 .addMethod( 3098 getListColumnSpecsMethod(), 3099 io.grpc.stub.ServerCalls.asyncUnaryCall( 3100 new MethodHandlers< 3101 com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, 3102 com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( 3103 service, METHODID_LIST_COLUMN_SPECS))) 3104 .addMethod( 3105 getUpdateColumnSpecMethod(), 3106 io.grpc.stub.ServerCalls.asyncUnaryCall( 3107 new MethodHandlers< 3108 com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, 3109 com.google.cloud.automl.v1beta1.ColumnSpec>( 3110 service, METHODID_UPDATE_COLUMN_SPEC))) 3111 .addMethod( 3112 getCreateModelMethod(), 3113 io.grpc.stub.ServerCalls.asyncUnaryCall( 3114 new MethodHandlers< 3115 com.google.cloud.automl.v1beta1.CreateModelRequest, 3116 com.google.longrunning.Operation>(service, METHODID_CREATE_MODEL))) 3117 .addMethod( 3118 getGetModelMethod(), 3119 io.grpc.stub.ServerCalls.asyncUnaryCall( 3120 new MethodHandlers< 3121 com.google.cloud.automl.v1beta1.GetModelRequest, 3122 com.google.cloud.automl.v1beta1.Model>(service, METHODID_GET_MODEL))) 3123 .addMethod( 3124 getListModelsMethod(), 3125 io.grpc.stub.ServerCalls.asyncUnaryCall( 3126 new MethodHandlers< 3127 com.google.cloud.automl.v1beta1.ListModelsRequest, 3128 com.google.cloud.automl.v1beta1.ListModelsResponse>( 3129 service, METHODID_LIST_MODELS))) 3130 .addMethod( 3131 getDeleteModelMethod(), 3132 io.grpc.stub.ServerCalls.asyncUnaryCall( 3133 new MethodHandlers< 3134 com.google.cloud.automl.v1beta1.DeleteModelRequest, 3135 com.google.longrunning.Operation>(service, METHODID_DELETE_MODEL))) 3136 .addMethod( 3137 getDeployModelMethod(), 3138 io.grpc.stub.ServerCalls.asyncUnaryCall( 3139 new MethodHandlers< 3140 com.google.cloud.automl.v1beta1.DeployModelRequest, 3141 com.google.longrunning.Operation>(service, METHODID_DEPLOY_MODEL))) 3142 .addMethod( 3143 getUndeployModelMethod(), 3144 io.grpc.stub.ServerCalls.asyncUnaryCall( 3145 new MethodHandlers< 3146 com.google.cloud.automl.v1beta1.UndeployModelRequest, 3147 com.google.longrunning.Operation>(service, METHODID_UNDEPLOY_MODEL))) 3148 .addMethod( 3149 getExportModelMethod(), 3150 io.grpc.stub.ServerCalls.asyncUnaryCall( 3151 new MethodHandlers< 3152 com.google.cloud.automl.v1beta1.ExportModelRequest, 3153 com.google.longrunning.Operation>(service, METHODID_EXPORT_MODEL))) 3154 .addMethod( 3155 getExportEvaluatedExamplesMethod(), 3156 io.grpc.stub.ServerCalls.asyncUnaryCall( 3157 new MethodHandlers< 3158 com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, 3159 com.google.longrunning.Operation>(service, METHODID_EXPORT_EVALUATED_EXAMPLES))) 3160 .addMethod( 3161 getGetModelEvaluationMethod(), 3162 io.grpc.stub.ServerCalls.asyncUnaryCall( 3163 new MethodHandlers< 3164 com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, 3165 com.google.cloud.automl.v1beta1.ModelEvaluation>( 3166 service, METHODID_GET_MODEL_EVALUATION))) 3167 .addMethod( 3168 getListModelEvaluationsMethod(), 3169 io.grpc.stub.ServerCalls.asyncUnaryCall( 3170 new MethodHandlers< 3171 com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, 3172 com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( 3173 service, METHODID_LIST_MODEL_EVALUATIONS))) 3174 .build(); 3175 } 3176 3177 private abstract static class AutoMlBaseDescriptorSupplier 3178 implements io.grpc.protobuf.ProtoFileDescriptorSupplier, 3179 io.grpc.protobuf.ProtoServiceDescriptorSupplier { AutoMlBaseDescriptorSupplier()3180 AutoMlBaseDescriptorSupplier() {} 3181 3182 @java.lang.Override getFileDescriptor()3183 public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { 3184 return com.google.cloud.automl.v1beta1.AutoMlProto.getDescriptor(); 3185 } 3186 3187 @java.lang.Override getServiceDescriptor()3188 public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { 3189 return getFileDescriptor().findServiceByName("AutoMl"); 3190 } 3191 } 3192 3193 private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { AutoMlFileDescriptorSupplier()3194 AutoMlFileDescriptorSupplier() {} 3195 } 3196 3197 private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier 3198 implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { 3199 private final String methodName; 3200 AutoMlMethodDescriptorSupplier(String methodName)3201 AutoMlMethodDescriptorSupplier(String methodName) { 3202 this.methodName = methodName; 3203 } 3204 3205 @java.lang.Override getMethodDescriptor()3206 public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { 3207 return getServiceDescriptor().findMethodByName(methodName); 3208 } 3209 } 3210 3211 private static volatile io.grpc.ServiceDescriptor serviceDescriptor; 3212 getServiceDescriptor()3213 public static io.grpc.ServiceDescriptor getServiceDescriptor() { 3214 io.grpc.ServiceDescriptor result = serviceDescriptor; 3215 if (result == null) { 3216 synchronized (AutoMlGrpc.class) { 3217 result = serviceDescriptor; 3218 if (result == null) { 3219 serviceDescriptor = 3220 result = 3221 io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) 3222 .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) 3223 .addMethod(getCreateDatasetMethod()) 3224 .addMethod(getGetDatasetMethod()) 3225 .addMethod(getListDatasetsMethod()) 3226 .addMethod(getUpdateDatasetMethod()) 3227 .addMethod(getDeleteDatasetMethod()) 3228 .addMethod(getImportDataMethod()) 3229 .addMethod(getExportDataMethod()) 3230 .addMethod(getGetAnnotationSpecMethod()) 3231 .addMethod(getGetTableSpecMethod()) 3232 .addMethod(getListTableSpecsMethod()) 3233 .addMethod(getUpdateTableSpecMethod()) 3234 .addMethod(getGetColumnSpecMethod()) 3235 .addMethod(getListColumnSpecsMethod()) 3236 .addMethod(getUpdateColumnSpecMethod()) 3237 .addMethod(getCreateModelMethod()) 3238 .addMethod(getGetModelMethod()) 3239 .addMethod(getListModelsMethod()) 3240 .addMethod(getDeleteModelMethod()) 3241 .addMethod(getDeployModelMethod()) 3242 .addMethod(getUndeployModelMethod()) 3243 .addMethod(getExportModelMethod()) 3244 .addMethod(getExportEvaluatedExamplesMethod()) 3245 .addMethod(getGetModelEvaluationMethod()) 3246 .addMethod(getListModelEvaluationsMethod()) 3247 .build(); 3248 } 3249 } 3250 } 3251 return result; 3252 } 3253 } 3254