All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.automl.v1.AutoMlGrpc Maven / Gradle / Ivy

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.cloud.automl.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * AutoML Server API.
 * The resource names are assigned by the server.
 * The server never reuses names that it has created after the resources with
 * those names are deleted.
 * An ID of a resource is the last element of the item's resource name. For
 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
 * the id for the item is `{dataset_id}`.
 * Currently the only supported `location_id` is "us-central1".
 * On any input that is documented to expect a string parameter in
 * snake_case or dash-case, either of those cases is accepted.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/automl/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutoMlGrpc { private AutoMlGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.automl.v1.AutoMl"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> getCreateDatasetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateDataset", requestType = com.google.cloud.automl.v1.CreateDatasetRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> getCreateDatasetMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation> getCreateDatasetMethod; if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getCreateDatasetMethod = AutoMlGrpc.getCreateDatasetMethod) == null) { AutoMlGrpc.getCreateDatasetMethod = getCreateDatasetMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataset")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.CreateDatasetRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateDataset")) .build(); } } } return getCreateDatasetMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> getGetDatasetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDataset", requestType = com.google.cloud.automl.v1.GetDatasetRequest.class, responseType = com.google.cloud.automl.v1.Dataset.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> getGetDatasetMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset> getGetDatasetMethod; if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getGetDatasetMethod = AutoMlGrpc.getGetDatasetMethod) == null) { AutoMlGrpc.getGetDatasetMethod = getGetDatasetMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataset")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.GetDatasetRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.Dataset.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetDataset")) .build(); } } } return getGetDatasetMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListDatasetsRequest, com.google.cloud.automl.v1.ListDatasetsResponse> getListDatasetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDatasets", requestType = com.google.cloud.automl.v1.ListDatasetsRequest.class, responseType = com.google.cloud.automl.v1.ListDatasetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListDatasetsRequest, com.google.cloud.automl.v1.ListDatasetsResponse> getListDatasetsMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListDatasetsRequest, com.google.cloud.automl.v1.ListDatasetsResponse> getListDatasetsMethod; if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getListDatasetsMethod = AutoMlGrpc.getListDatasetsMethod) == null) { AutoMlGrpc.getListDatasetsMethod = getListDatasetsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatasets")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListDatasetsRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListDatasetsResponse.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListDatasets")) .build(); } } } return getListDatasetsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> getUpdateDatasetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", requestType = com.google.cloud.automl.v1.UpdateDatasetRequest.class, responseType = com.google.cloud.automl.v1.Dataset.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> getUpdateDatasetMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset> getUpdateDatasetMethod; if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { AutoMlGrpc.getUpdateDatasetMethod = getUpdateDatasetMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataset")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.UpdateDatasetRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.Dataset.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) .build(); } } } return getUpdateDatasetMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> getDeleteDatasetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", requestType = com.google.cloud.automl.v1.DeleteDatasetRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> getDeleteDatasetMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation> getDeleteDatasetMethod; if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getDeleteDatasetMethod = AutoMlGrpc.getDeleteDatasetMethod) == null) { AutoMlGrpc.getDeleteDatasetMethod = getDeleteDatasetMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataset")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.DeleteDatasetRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteDataset")) .build(); } } } return getDeleteDatasetMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> getImportDataMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportData", requestType = com.google.cloud.automl.v1.ImportDataRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> getImportDataMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation> getImportDataMethod; if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getImportDataMethod = AutoMlGrpc.getImportDataMethod) == null) { AutoMlGrpc.getImportDataMethod = getImportDataMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportData")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ImportDataRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ImportData")) .build(); } } } return getImportDataMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> getExportDataMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportData", requestType = com.google.cloud.automl.v1.ExportDataRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> getExportDataMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation> getExportDataMethod; if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getExportDataMethod = AutoMlGrpc.getExportDataMethod) == null) { AutoMlGrpc.getExportDataMethod = getExportDataMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportData")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ExportDataRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportData")) .build(); } } } return getExportDataMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetAnnotationSpecRequest, com.google.cloud.automl.v1.AnnotationSpec> getGetAnnotationSpecMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpec", requestType = com.google.cloud.automl.v1.GetAnnotationSpecRequest.class, responseType = com.google.cloud.automl.v1.AnnotationSpec.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetAnnotationSpecRequest, com.google.cloud.automl.v1.AnnotationSpec> getGetAnnotationSpecMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetAnnotationSpecRequest, com.google.cloud.automl.v1.AnnotationSpec> getGetAnnotationSpecMethod; if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { AutoMlGrpc.getGetAnnotationSpecMethod = getGetAnnotationSpecMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotationSpec")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.GetAnnotationSpecRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.AnnotationSpec.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) .build(); } } } return getGetAnnotationSpecMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> getCreateModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateModel", requestType = com.google.cloud.automl.v1.CreateModelRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> getCreateModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation> getCreateModelMethod; if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getCreateModelMethod = AutoMlGrpc.getCreateModelMethod) == null) { AutoMlGrpc.getCreateModelMethod = getCreateModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.CreateModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("CreateModel")) .build(); } } } return getCreateModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> getGetModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetModel", requestType = com.google.cloud.automl.v1.GetModelRequest.class, responseType = com.google.cloud.automl.v1.Model.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> getGetModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model> getGetModelMethod; if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getGetModelMethod = AutoMlGrpc.getGetModelMethod) == null) { AutoMlGrpc.getGetModelMethod = getGetModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.GetModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.Model.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModel")) .build(); } } } return getGetModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelsRequest, com.google.cloud.automl.v1.ListModelsResponse> getListModelsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListModels", requestType = com.google.cloud.automl.v1.ListModelsRequest.class, responseType = com.google.cloud.automl.v1.ListModelsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelsRequest, com.google.cloud.automl.v1.ListModelsResponse> getListModelsMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelsRequest, com.google.cloud.automl.v1.ListModelsResponse> getListModelsMethod; if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getListModelsMethod = AutoMlGrpc.getListModelsMethod) == null) { AutoMlGrpc.getListModelsMethod = getListModelsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModels")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListModelsRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListModelsResponse.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListModels")) .build(); } } } return getListModelsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteModel", requestType = com.google.cloud.automl.v1.DeleteModelRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod; if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getDeleteModelMethod = AutoMlGrpc.getDeleteModelMethod) == null) { AutoMlGrpc.getDeleteModelMethod = getDeleteModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.DeleteModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeleteModel")) .build(); } } } return getDeleteModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> getUpdateModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateModel", requestType = com.google.cloud.automl.v1.UpdateModelRequest.class, responseType = com.google.cloud.automl.v1.Model.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> getUpdateModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model> getUpdateModelMethod; if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getUpdateModelMethod = AutoMlGrpc.getUpdateModelMethod) == null) { AutoMlGrpc.getUpdateModelMethod = getUpdateModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.UpdateModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.Model.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateModel")) .build(); } } } return getUpdateModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> getDeployModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeployModel", requestType = com.google.cloud.automl.v1.DeployModelRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> getDeployModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation> getDeployModelMethod; if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { AutoMlGrpc.getDeployModelMethod = getDeployModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.DeployModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) .build(); } } } return getDeployModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> getUndeployModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UndeployModel", requestType = com.google.cloud.automl.v1.UndeployModelRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> getUndeployModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation> getUndeployModelMethod; if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { AutoMlGrpc.getUndeployModelMethod = getUndeployModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeployModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.UndeployModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) .build(); } } } return getUndeployModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportModel", requestType = com.google.cloud.automl.v1.ExportModelRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation> getExportModelMethod; if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { AutoMlGrpc.getExportModelMethod = getExportModelMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ExportModelRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) .build(); } } } return getExportModelMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelEvaluationRequest, com.google.cloud.automl.v1.ModelEvaluation> getGetModelEvaluationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetModelEvaluation", requestType = com.google.cloud.automl.v1.GetModelEvaluationRequest.class, responseType = com.google.cloud.automl.v1.ModelEvaluation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelEvaluationRequest, com.google.cloud.automl.v1.ModelEvaluation> getGetModelEvaluationMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.GetModelEvaluationRequest, com.google.cloud.automl.v1.ModelEvaluation> getGetModelEvaluationMethod; if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getGetModelEvaluationMethod = AutoMlGrpc.getGetModelEvaluationMethod) == null) { AutoMlGrpc.getGetModelEvaluationMethod = getGetModelEvaluationMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetModelEvaluation")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.GetModelEvaluationRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ModelEvaluation.getDefaultInstance())) .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetModelEvaluation")) .build(); } } } return getGetModelEvaluationMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelEvaluationsRequest, com.google.cloud.automl.v1.ListModelEvaluationsResponse> getListModelEvaluationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListModelEvaluations", requestType = com.google.cloud.automl.v1.ListModelEvaluationsRequest.class, responseType = com.google.cloud.automl.v1.ListModelEvaluationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelEvaluationsRequest, com.google.cloud.automl.v1.ListModelEvaluationsResponse> getListModelEvaluationsMethod() { io.grpc.MethodDescriptor< com.google.cloud.automl.v1.ListModelEvaluationsRequest, com.google.cloud.automl.v1.ListModelEvaluationsResponse> getListModelEvaluationsMethod; if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { synchronized (AutoMlGrpc.class) { if ((getListModelEvaluationsMethod = AutoMlGrpc.getListModelEvaluationsMethod) == null) { AutoMlGrpc.getListModelEvaluationsMethod = getListModelEvaluationsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ListModelEvaluations")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListModelEvaluationsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.automl.v1.ListModelEvaluationsResponse .getDefaultInstance())) .setSchemaDescriptor( new AutoMlMethodDescriptorSupplier("ListModelEvaluations")) .build(); } } } return getListModelEvaluationsMethod; } /** Creates a new async stub that supports all call types for the service */ public static AutoMlStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AutoMlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlStub(channel, callOptions); } }; return AutoMlStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AutoMlBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AutoMlBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlBlockingStub(channel, callOptions); } }; return AutoMlBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AutoMlFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlFutureStub(channel, callOptions); } }; return AutoMlFutureStub.newStub(factory, channel); } /** * * *
   * AutoML Server API.
   * The resource names are assigned by the server.
   * The server never reuses names that it has created after the resources with
   * those names are deleted.
   * An ID of a resource is the last element of the item's resource name. For
   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
   * the id for the item is `{dataset_id}`.
   * Currently the only supported `location_id` is "us-central1".
   * On any input that is documented to expect a string parameter in
   * snake_case or dash-case, either of those cases is accepted.
   * 
*/ public interface AsyncService { /** * * *
     * Creates a dataset.
     * 
*/ default void createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateDatasetMethod(), responseObserver); } /** * * *
     * Gets a dataset.
     * 
*/ default void getDataset( com.google.cloud.automl.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } /** * * *
     * Lists datasets in a project.
     * 
*/ default void listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListDatasetsMethod(), responseObserver); } /** * * *
     * Updates a dataset.
     * 
*/ default void updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateDatasetMethod(), responseObserver); } /** * * *
     * Deletes a dataset and all of its contents.
     * Returns empty response in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ default void deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteDatasetMethod(), responseObserver); } /** * * *
     * Imports data into a dataset.
     * For Tables this method can only be called on an empty Dataset.
     * For Tables:
     * *   A
     * [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
     *     parameter must be explicitly set.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ default void importData( com.google.cloud.automl.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); } /** * * *
     * Exports dataset's data to the provided output location.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ default void exportData( com.google.cloud.automl.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } /** * * *
     * Gets an annotation spec.
     * 
*/ default void getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetAnnotationSpecMethod(), responseObserver); } /** * * *
     * Creates a model.
     * Returns a Model in the [response][google.longrunning.Operation.response]
     * field when it completes.
     * When you create a model, several model evaluations are created for it:
     * a global evaluation, and one evaluation for each annotation spec.
     * 
*/ default void createModel( com.google.cloud.automl.v1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateModelMethod(), responseObserver); } /** * * *
     * Gets a model.
     * 
*/ default void getModel( com.google.cloud.automl.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); } /** * * *
     * Lists models.
     * 
*/ default void listModels( com.google.cloud.automl.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } /** * * *
     * Deletes a model.
     * Returns `google.protobuf.Empty` in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ default void deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteModelMethod(), responseObserver); } /** * * *
     * Updates a model.
     * 
*/ default void updateModel( com.google.cloud.automl.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateModelMethod(), responseObserver); } /** * * *
     * Deploys a model. If a model is already deployed, deploying it with the
     * same parameters has no effect. Deploying with different parametrs
     * (as e.g. changing
     * [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
     *  will reset the deployment state without pausing the model's availability.
     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
     * deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ default void deployModel( com.google.cloud.automl.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeployModelMethod(), responseObserver); } /** * * *
     * Undeploys a model. If the model is not deployed this method has no effect.
     * Only applicable for Text Classification, Image Object Detection and Tables;
     * all other domains manage deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ default void undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUndeployModelMethod(), responseObserver); } /** * * *
     * Exports a trained, "export-able", model to a user specified Google Cloud
     * Storage location. A model is considered export-able if and only if it has
     * an export format defined for it in
     * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ default void exportModel( com.google.cloud.automl.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getExportModelMethod(), responseObserver); } /** * * *
     * Gets a model evaluation.
     * 
*/ default void getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetModelEvaluationMethod(), responseObserver); } /** * * *
     * Lists model evaluations.
     * 
*/ default void listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListModelEvaluationsMethod(), responseObserver); } } /** * Base class for the server implementation of the service AutoMl. * *
   * AutoML Server API.
   * The resource names are assigned by the server.
   * The server never reuses names that it has created after the resources with
   * those names are deleted.
   * An ID of a resource is the last element of the item's resource name. For
   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
   * the id for the item is `{dataset_id}`.
   * Currently the only supported `location_id` is "us-central1".
   * On any input that is documented to expect a string parameter in
   * snake_case or dash-case, either of those cases is accepted.
   * 
*/ public abstract static class AutoMlImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return AutoMlGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AutoMl. * *
   * AutoML Server API.
   * The resource names are assigned by the server.
   * The server never reuses names that it has created after the resources with
   * those names are deleted.
   * An ID of a resource is the last element of the item's resource name. For
   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
   * the id for the item is `{dataset_id}`.
   * Currently the only supported `location_id` is "us-central1".
   * On any input that is documented to expect a string parameter in
   * snake_case or dash-case, either of those cases is accepted.
   * 
*/ public static final class AutoMlStub extends io.grpc.stub.AbstractAsyncStub { private AutoMlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlStub(channel, callOptions); } /** * * *
     * Creates a dataset.
     * 
*/ public void createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a dataset.
     * 
*/ public void getDataset( com.google.cloud.automl.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists datasets in a project.
     * 
*/ public void listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates a dataset.
     * 
*/ public void updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a dataset and all of its contents.
     * Returns empty response in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public void deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Imports data into a dataset.
     * For Tables this method can only be called on an empty Dataset.
     * For Tables:
     * *   A
     * [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
     *     parameter must be explicitly set.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public void importData( com.google.cloud.automl.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Exports dataset's data to the provided output location.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public void exportData( com.google.cloud.automl.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets an annotation spec.
     * 
*/ public void getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a model.
     * Returns a Model in the [response][google.longrunning.Operation.response]
     * field when it completes.
     * When you create a model, several model evaluations are created for it:
     * a global evaluation, and one evaluation for each annotation spec.
     * 
*/ public void createModel( com.google.cloud.automl.v1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a model.
     * 
*/ public void getModel( com.google.cloud.automl.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists models.
     * 
*/ public void listModels( com.google.cloud.automl.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a model.
     * Returns `google.protobuf.Empty` in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public void deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates a model.
     * 
*/ public void updateModel( com.google.cloud.automl.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deploys a model. If a model is already deployed, deploying it with the
     * same parameters has no effect. Deploying with different parametrs
     * (as e.g. changing
     * [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
     *  will reset the deployment state without pausing the model's availability.
     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
     * deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public void deployModel( com.google.cloud.automl.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Undeploys a model. If the model is not deployed this method has no effect.
     * Only applicable for Text Classification, Image Object Detection and Tables;
     * all other domains manage deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public void undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Exports a trained, "export-able", model to a user specified Google Cloud
     * Storage location. A model is considered export-able if and only if it has
     * an export format defined for it in
     * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public void exportModel( com.google.cloud.automl.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a model evaluation.
     * 
*/ public void getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists model evaluations.
     * 
*/ public void listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AutoMl. * *
   * AutoML Server API.
   * The resource names are assigned by the server.
   * The server never reuses names that it has created after the resources with
   * those names are deleted.
   * An ID of a resource is the last element of the item's resource name. For
   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
   * the id for the item is `{dataset_id}`.
   * Currently the only supported `location_id` is "us-central1".
   * On any input that is documented to expect a string parameter in
   * snake_case or dash-case, either of those cases is accepted.
   * 
*/ public static final class AutoMlBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AutoMlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlBlockingStub(channel, callOptions); } /** * * *
     * Creates a dataset.
     * 
*/ public com.google.longrunning.Operation createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } /** * * *
     * Gets a dataset.
     * 
*/ public com.google.cloud.automl.v1.Dataset getDataset( com.google.cloud.automl.v1.GetDatasetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } /** * * *
     * Lists datasets in a project.
     * 
*/ public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } /** * * *
     * Updates a dataset.
     * 
*/ public com.google.cloud.automl.v1.Dataset updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } /** * * *
     * Deletes a dataset and all of its contents.
     * Returns empty response in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public com.google.longrunning.Operation deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } /** * * *
     * Imports data into a dataset.
     * For Tables this method can only be called on an empty Dataset.
     * For Tables:
     * *   A
     * [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
     *     parameter must be explicitly set.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.longrunning.Operation importData( com.google.cloud.automl.v1.ImportDataRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } /** * * *
     * Exports dataset's data to the provided output location.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.longrunning.Operation exportData( com.google.cloud.automl.v1.ExportDataRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } /** * * *
     * Gets an annotation spec.
     * 
*/ public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } /** * * *
     * Creates a model.
     * Returns a Model in the [response][google.longrunning.Operation.response]
     * field when it completes.
     * When you create a model, several model evaluations are created for it:
     * a global evaluation, and one evaluation for each annotation spec.
     * 
*/ public com.google.longrunning.Operation createModel( com.google.cloud.automl.v1.CreateModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } /** * * *
     * Gets a model.
     * 
*/ public com.google.cloud.automl.v1.Model getModel( com.google.cloud.automl.v1.GetModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } /** * * *
     * Lists models.
     * 
*/ public com.google.cloud.automl.v1.ListModelsResponse listModels( com.google.cloud.automl.v1.ListModelsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } /** * * *
     * Deletes a model.
     * Returns `google.protobuf.Empty` in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public com.google.longrunning.Operation deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } /** * * *
     * Updates a model.
     * 
*/ public com.google.cloud.automl.v1.Model updateModel( com.google.cloud.automl.v1.UpdateModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } /** * * *
     * Deploys a model. If a model is already deployed, deploying it with the
     * same parameters has no effect. Deploying with different parametrs
     * (as e.g. changing
     * [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
     *  will reset the deployment state without pausing the model's availability.
     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
     * deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.longrunning.Operation deployModel( com.google.cloud.automl.v1.DeployModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeployModelMethod(), getCallOptions(), request); } /** * * *
     * Undeploys a model. If the model is not deployed this method has no effect.
     * Only applicable for Text Classification, Image Object Detection and Tables;
     * all other domains manage deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.longrunning.Operation undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUndeployModelMethod(), getCallOptions(), request); } /** * * *
     * Exports a trained, "export-able", model to a user specified Google Cloud
     * Storage location. A model is considered export-able if and only if it has
     * an export format defined for it in
     * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.longrunning.Operation exportModel( com.google.cloud.automl.v1.ExportModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportModelMethod(), getCallOptions(), request); } /** * * *
     * Gets a model evaluation.
     * 
*/ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } /** * * *
     * Lists model evaluations.
     * 
*/ public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AutoMl. * *
   * AutoML Server API.
   * The resource names are assigned by the server.
   * The server never reuses names that it has created after the resources with
   * those names are deleted.
   * An ID of a resource is the last element of the item's resource name. For
   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
   * the id for the item is `{dataset_id}`.
   * Currently the only supported `location_id` is "us-central1".
   * On any input that is documented to expect a string parameter in
   * snake_case or dash-case, either of those cases is accepted.
   * 
*/ public static final class AutoMlFutureStub extends io.grpc.stub.AbstractFutureStub { private AutoMlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AutoMlFutureStub(channel, callOptions); } /** * * *
     * Creates a dataset.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); } /** * * *
     * Gets a dataset.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } /** * * *
     * Lists datasets in a project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListDatasetsResponse> listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); } /** * * *
     * Updates a dataset.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); } /** * * *
     * Deletes a dataset and all of its contents.
     * Returns empty response in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); } /** * * *
     * Imports data into a dataset.
     * For Tables this method can only be called on an empty Dataset.
     * For Tables:
     * *   A
     * [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
     *     parameter must be explicitly set.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture importData(com.google.cloud.automl.v1.ImportDataRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request); } /** * * *
     * Exports dataset's data to the provided output location.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exportData(com.google.cloud.automl.v1.ExportDataRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } /** * * *
     * Gets an annotation spec.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.AnnotationSpec> getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); } /** * * *
     * Creates a model.
     * Returns a Model in the [response][google.longrunning.Operation.response]
     * field when it completes.
     * When you create a model, several model evaluations are created for it:
     * a global evaluation, and one evaluation for each annotation spec.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createModel(com.google.cloud.automl.v1.CreateModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); } /** * * *
     * Gets a model.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getModel(com.google.cloud.automl.v1.GetModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request); } /** * * *
     * Lists models.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListModelsResponse> listModels(com.google.cloud.automl.v1.ListModelsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } /** * * *
     * Deletes a model.
     * Returns `google.protobuf.Empty` in the
     * [response][google.longrunning.Operation.response] field when it completes,
     * and `delete_details` in the
     * [metadata][google.longrunning.Operation.metadata] field.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } /** * * *
     * Updates a model.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); } /** * * *
     * Deploys a model. If a model is already deployed, deploying it with the
     * same parameters has no effect. Deploying with different parametrs
     * (as e.g. changing
     * [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
     *  will reset the deployment state without pausing the model's availability.
     * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
     * deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); } /** * * *
     * Undeploys a model. If the model is not deployed this method has no effect.
     * Only applicable for Text Classification, Image Object Detection and Tables;
     * all other domains manage deployment automatically.
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); } /** * * *
     * Exports a trained, "export-able", model to a user specified Google Cloud
     * Storage location. A model is considered export-able if and only if it has
     * an export format defined for it in
     * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
     * Returns an empty response in the
     * [response][google.longrunning.Operation.response] field when it completes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exportModel(com.google.cloud.automl.v1.ExportModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request); } /** * * *
     * Gets a model evaluation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ModelEvaluation> getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); } /** * * *
     * Lists model evaluations.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_DATASET = 0; private static final int METHODID_GET_DATASET = 1; private static final int METHODID_LIST_DATASETS = 2; private static final int METHODID_UPDATE_DATASET = 3; private static final int METHODID_DELETE_DATASET = 4; private static final int METHODID_IMPORT_DATA = 5; private static final int METHODID_EXPORT_DATA = 6; private static final int METHODID_GET_ANNOTATION_SPEC = 7; private static final int METHODID_CREATE_MODEL = 8; private static final int METHODID_GET_MODEL = 9; private static final int METHODID_LIST_MODELS = 10; private static final int METHODID_DELETE_MODEL = 11; private static final int METHODID_UPDATE_MODEL = 12; private static final int METHODID_DEPLOY_MODEL = 13; private static final int METHODID_UNDEPLOY_MODEL = 14; private static final int METHODID_EXPORT_MODEL = 15; private static final int METHODID_GET_MODEL_EVALUATION = 16; private static final int METHODID_LIST_MODEL_EVALUATIONS = 17; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_DATASET: serviceImpl.createDataset( (com.google.cloud.automl.v1.CreateDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DATASET: serviceImpl.getDataset( (com.google.cloud.automl.v1.GetDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_DATASETS: serviceImpl.listDatasets( (com.google.cloud.automl.v1.ListDatasetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_DATASET: serviceImpl.updateDataset( (com.google.cloud.automl.v1.UpdateDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_DATASET: serviceImpl.deleteDataset( (com.google.cloud.automl.v1.DeleteDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_DATA: serviceImpl.importData( (com.google.cloud.automl.v1.ImportDataRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_DATA: serviceImpl.exportData( (com.google.cloud.automl.v1.ExportDataRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ANNOTATION_SPEC: serviceImpl.getAnnotationSpec( (com.google.cloud.automl.v1.GetAnnotationSpecRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_MODEL: serviceImpl.createModel( (com.google.cloud.automl.v1.CreateModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_MODEL: serviceImpl.getModel( (com.google.cloud.automl.v1.GetModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_MODELS: serviceImpl.listModels( (com.google.cloud.automl.v1.ListModelsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_MODEL: serviceImpl.deleteModel( (com.google.cloud.automl.v1.DeleteModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_MODEL: serviceImpl.updateModel( (com.google.cloud.automl.v1.UpdateModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEPLOY_MODEL: serviceImpl.deployModel( (com.google.cloud.automl.v1.DeployModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNDEPLOY_MODEL: serviceImpl.undeployModel( (com.google.cloud.automl.v1.UndeployModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_MODEL: serviceImpl.exportModel( (com.google.cloud.automl.v1.ExportModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_MODEL_EVALUATION: serviceImpl.getModelEvaluation( (com.google.cloud.automl.v1.GetModelEvaluationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_MODEL_EVALUATIONS: serviceImpl.listModelEvaluations( (com.google.cloud.automl.v1.ListModelEvaluationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateDatasetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_DATASET))) .addMethod( getGetDatasetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset>(service, METHODID_GET_DATASET))) .addMethod( getListDatasetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListDatasetsRequest, com.google.cloud.automl.v1.ListDatasetsResponse>( service, METHODID_LIST_DATASETS))) .addMethod( getUpdateDatasetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset>(service, METHODID_UPDATE_DATASET))) .addMethod( getDeleteDatasetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_DATASET))) .addMethod( getImportDataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation>( service, METHODID_IMPORT_DATA))) .addMethod( getExportDataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation>( service, METHODID_EXPORT_DATA))) .addMethod( getGetAnnotationSpecMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetAnnotationSpecRequest, com.google.cloud.automl.v1.AnnotationSpec>( service, METHODID_GET_ANNOTATION_SPEC))) .addMethod( getCreateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_MODEL))) .addMethod( getGetModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model>( service, METHODID_GET_MODEL))) .addMethod( getListModelsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListModelsRequest, com.google.cloud.automl.v1.ListModelsResponse>(service, METHODID_LIST_MODELS))) .addMethod( getDeleteModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_MODEL))) .addMethod( getUpdateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model>(service, METHODID_UPDATE_MODEL))) .addMethod( getDeployModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation>(service, METHODID_DEPLOY_MODEL))) .addMethod( getUndeployModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation>(service, METHODID_UNDEPLOY_MODEL))) .addMethod( getExportModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation>(service, METHODID_EXPORT_MODEL))) .addMethod( getGetModelEvaluationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetModelEvaluationRequest, com.google.cloud.automl.v1.ModelEvaluation>( service, METHODID_GET_MODEL_EVALUATION))) .addMethod( getListModelEvaluationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListModelEvaluationsRequest, com.google.cloud.automl.v1.ListModelEvaluationsResponse>( service, METHODID_LIST_MODEL_EVALUATIONS))) .build(); } private abstract static class AutoMlBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AutoMlBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.automl.v1.AutoMlProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AutoMl"); } } private static final class AutoMlFileDescriptorSupplier extends AutoMlBaseDescriptorSupplier { AutoMlFileDescriptorSupplier() {} } private static final class AutoMlMethodDescriptorSupplier extends AutoMlBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; AutoMlMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (AutoMlGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AutoMlFileDescriptorSupplier()) .addMethod(getCreateDatasetMethod()) .addMethod(getGetDatasetMethod()) .addMethod(getListDatasetsMethod()) .addMethod(getUpdateDatasetMethod()) .addMethod(getDeleteDatasetMethod()) .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) .addMethod(getGetAnnotationSpecMethod()) .addMethod(getCreateModelMethod()) .addMethod(getGetModelMethod()) .addMethod(getListModelsMethod()) .addMethod(getDeleteModelMethod()) .addMethod(getUpdateModelMethod()) .addMethod(getDeployModelMethod()) .addMethod(getUndeployModelMethod()) .addMethod(getExportModelMethod()) .addMethod(getGetModelEvaluationMethod()) .addMethod(getListModelEvaluationsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy