diff --git a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java index 8f8f10587..09212f64f 100644 --- a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java +++ b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.automl.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -875,7 +870,8 @@ public abstract static class AutoMlImplBase implements io.grpc.BindableService { public void createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); } /** @@ -888,7 +884,7 @@ public void createDataset( public void getDataset( com.google.cloud.automl.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } /** @@ -902,7 +898,8 @@ public void listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); } /** @@ -915,7 +912,8 @@ public void listDatasets( public void updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); } /** @@ -932,7 +930,8 @@ public void updateDataset( public void deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); } /** @@ -952,7 +951,7 @@ public void deleteDataset( public void importData( com.google.cloud.automl.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); } /** @@ -967,7 +966,7 @@ public void importData( public void exportData( com.google.cloud.automl.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } /** @@ -980,7 +979,8 @@ public void exportData( public void getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); } /** @@ -997,7 +997,8 @@ public void getAnnotationSpec( public void createModel( com.google.cloud.automl.v1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateModelMethod(), responseObserver); } /** @@ -1010,7 +1011,7 @@ public void createModel( public void getModel( com.google.cloud.automl.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); } /** @@ -1024,7 +1025,7 @@ public void listModels( com.google.cloud.automl.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } /** @@ -1041,7 +1042,8 @@ public void listModels( public void deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); } /** @@ -1054,7 +1056,8 @@ public void deleteModel( public void updateModel( com.google.cloud.automl.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateModelMethod(), responseObserver); } /** @@ -1075,7 +1078,8 @@ public void updateModel( public void deployModel( com.google.cloud.automl.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); } /** @@ -1092,7 +1096,8 @@ public void deployModel( public void undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUndeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), responseObserver); } /** @@ -1110,7 +1115,8 @@ public void undeployModel( public void exportModel( com.google.cloud.automl.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), responseObserver); } /** @@ -1123,7 +1129,8 @@ public void exportModel( public void getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); } /** @@ -1137,7 +1144,8 @@ public void listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); } @java.lang.Override @@ -1145,112 +1153,112 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.CreateDatasetRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_DATASET))) .addMethod( getGetDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetDatasetRequest, com.google.cloud.automl.v1.Dataset>(this, METHODID_GET_DATASET))) .addMethod( getListDatasetsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListDatasetsRequest, com.google.cloud.automl.v1.ListDatasetsResponse>( this, METHODID_LIST_DATASETS))) .addMethod( getUpdateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UpdateDatasetRequest, com.google.cloud.automl.v1.Dataset>(this, METHODID_UPDATE_DATASET))) .addMethod( getDeleteDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeleteDatasetRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) .addMethod( getImportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ImportDataRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) .addMethod( getExportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ExportDataRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) .addMethod( getGetAnnotationSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetAnnotationSpecRequest, com.google.cloud.automl.v1.AnnotationSpec>( this, METHODID_GET_ANNOTATION_SPEC))) .addMethod( getCreateModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.CreateModelRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) .addMethod( getGetModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetModelRequest, com.google.cloud.automl.v1.Model>( this, METHODID_GET_MODEL))) .addMethod( getListModelsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListModelsRequest, com.google.cloud.automl.v1.ListModelsResponse>(this, METHODID_LIST_MODELS))) .addMethod( getDeleteModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) .addMethod( getUpdateModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UpdateModelRequest, com.google.cloud.automl.v1.Model>(this, METHODID_UPDATE_MODEL))) .addMethod( getDeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.DeployModelRequest, com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) .addMethod( getUndeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.UndeployModelRequest, com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) .addMethod( getExportModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ExportModelRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) .addMethod( getGetModelEvaluationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.GetModelEvaluationRequest, com.google.cloud.automl.v1.ModelEvaluation>( this, METHODID_GET_MODEL_EVALUATION))) .addMethod( getListModelEvaluationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.ListModelEvaluationsRequest, com.google.cloud.automl.v1.ListModelEvaluationsResponse>( @@ -1295,7 +1303,7 @@ protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti public void createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1311,7 +1319,7 @@ public void createDataset( public void getDataset( com.google.cloud.automl.v1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } @@ -1326,7 +1334,7 @@ public void listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); @@ -1342,7 +1350,7 @@ public void listDatasets( public void updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1362,7 +1370,7 @@ public void updateDataset( public void deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1385,7 +1393,7 @@ public void deleteDataset( public void importData( com.google.cloud.automl.v1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); } @@ -1401,7 +1409,7 @@ public void importData( public void exportData( com.google.cloud.automl.v1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } @@ -1415,7 +1423,7 @@ public void exportData( public void getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); @@ -1435,7 +1443,7 @@ public void getAnnotationSpec( public void createModel( com.google.cloud.automl.v1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); @@ -1451,7 +1459,7 @@ public void createModel( public void getModel( com.google.cloud.automl.v1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); } @@ -1466,7 +1474,7 @@ public void listModels( com.google.cloud.automl.v1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } @@ -1484,7 +1492,7 @@ public void listModels( public void deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); @@ -1500,7 +1508,7 @@ public void deleteModel( public void updateModel( com.google.cloud.automl.v1.UpdateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request, responseObserver); @@ -1524,7 +1532,7 @@ public void updateModel( public void deployModel( com.google.cloud.automl.v1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); @@ -1544,7 +1552,7 @@ public void deployModel( public void undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, responseObserver); @@ -1565,7 +1573,7 @@ public void undeployModel( public void exportModel( com.google.cloud.automl.v1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); @@ -1581,7 +1589,7 @@ public void exportModel( public void getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); @@ -1598,7 +1606,7 @@ public void listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); @@ -1641,7 +1649,8 @@ protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.longrunning.Operation createDataset( com.google.cloud.automl.v1.CreateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } /** @@ -1653,7 +1662,8 @@ public com.google.longrunning.Operation createDataset( */ public com.google.cloud.automl.v1.Dataset getDataset( com.google.cloud.automl.v1.GetDatasetRequest request) { - return blockingUnaryCall(getChannel(), getGetDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); } /** @@ -1665,7 +1675,8 @@ public com.google.cloud.automl.v1.Dataset getDataset( */ public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( com.google.cloud.automl.v1.ListDatasetsRequest request) { - return blockingUnaryCall(getChannel(), getListDatasetsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); } /** @@ -1677,7 +1688,8 @@ public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( */ public com.google.cloud.automl.v1.Dataset updateDataset( com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } /** @@ -1693,7 +1705,8 @@ public com.google.cloud.automl.v1.Dataset updateDataset( */ public com.google.longrunning.Operation deleteDataset( com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } /** @@ -1712,7 +1725,8 @@ public com.google.longrunning.Operation deleteDataset( */ public com.google.longrunning.Operation importData( com.google.cloud.automl.v1.ImportDataRequest request) { - return blockingUnaryCall(getChannel(), getImportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); } /** @@ -1726,7 +1740,8 @@ public com.google.longrunning.Operation importData( */ public com.google.longrunning.Operation exportData( com.google.cloud.automl.v1.ExportDataRequest request) { - return blockingUnaryCall(getChannel(), getExportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); } /** @@ -1738,7 +1753,7 @@ public com.google.longrunning.Operation exportData( */ public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -1755,7 +1770,8 @@ public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( */ public com.google.longrunning.Operation createModel( com.google.cloud.automl.v1.CreateModelRequest request) { - return blockingUnaryCall(getChannel(), getCreateModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); } /** @@ -1767,7 +1783,8 @@ public com.google.longrunning.Operation createModel( */ public com.google.cloud.automl.v1.Model getModel( com.google.cloud.automl.v1.GetModelRequest request) { - return blockingUnaryCall(getChannel(), getGetModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); } /** @@ -1779,7 +1796,8 @@ public com.google.cloud.automl.v1.Model getModel( */ public com.google.cloud.automl.v1.ListModelsResponse listModels( com.google.cloud.automl.v1.ListModelsRequest request) { - return blockingUnaryCall(getChannel(), getListModelsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); } /** @@ -1795,7 +1813,8 @@ public com.google.cloud.automl.v1.ListModelsResponse listModels( */ public com.google.longrunning.Operation deleteModel( com.google.cloud.automl.v1.DeleteModelRequest request) { - return blockingUnaryCall(getChannel(), getDeleteModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); } /** @@ -1807,7 +1826,8 @@ public com.google.longrunning.Operation deleteModel( */ public com.google.cloud.automl.v1.Model updateModel( com.google.cloud.automl.v1.UpdateModelRequest request) { - return blockingUnaryCall(getChannel(), getUpdateModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateModelMethod(), getCallOptions(), request); } /** @@ -1827,7 +1847,8 @@ public com.google.cloud.automl.v1.Model updateModel( */ public com.google.longrunning.Operation deployModel( com.google.cloud.automl.v1.DeployModelRequest request) { - return blockingUnaryCall(getChannel(), getDeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); } /** @@ -1843,7 +1864,8 @@ public com.google.longrunning.Operation deployModel( */ public com.google.longrunning.Operation undeployModel( com.google.cloud.automl.v1.UndeployModelRequest request) { - return blockingUnaryCall(getChannel(), getUndeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), getCallOptions(), request); } /** @@ -1860,7 +1882,8 @@ public com.google.longrunning.Operation undeployModel( */ public com.google.longrunning.Operation exportModel( com.google.cloud.automl.v1.ExportModelRequest request) { - return blockingUnaryCall(getChannel(), getExportModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); } /** @@ -1872,7 +1895,7 @@ public com.google.longrunning.Operation exportModel( */ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -1885,7 +1908,7 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( */ public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations( com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } } @@ -1926,7 +1949,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture createDataset(com.google.cloud.automl.v1.CreateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); } @@ -1939,7 +1962,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture getDataset(com.google.cloud.automl.v1.GetDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } @@ -1953,7 +1976,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListDatasetsResponse> listDatasets(com.google.cloud.automl.v1.ListDatasetsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); } @@ -1966,7 +1989,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture updateDataset(com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); } @@ -1983,7 +2006,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteDataset(com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); } @@ -2003,7 +2026,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture importData(com.google.cloud.automl.v1.ImportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request); } @@ -2018,7 +2041,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportData(com.google.cloud.automl.v1.ExportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } @@ -2032,7 +2055,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.AnnotationSpec> getAnnotationSpec(com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); } @@ -2049,7 +2072,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture createModel(com.google.cloud.automl.v1.CreateModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); } @@ -2062,7 +2085,8 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture getModel(com.google.cloud.automl.v1.GetModelRequest request) { - return futureUnaryCall(getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); } /** @@ -2075,7 +2099,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListModelsResponse> listModels(com.google.cloud.automl.v1.ListModelsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } @@ -2092,7 +2116,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteModel(com.google.cloud.automl.v1.DeleteModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } @@ -2105,7 +2129,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture updateModel(com.google.cloud.automl.v1.UpdateModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); } @@ -2126,7 +2150,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deployModel(com.google.cloud.automl.v1.DeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); } @@ -2143,7 +2167,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture undeployModel(com.google.cloud.automl.v1.UndeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); } @@ -2161,7 +2185,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportModel(com.google.cloud.automl.v1.ExportModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request); } @@ -2175,7 +2199,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ModelEvaluation> getModelEvaluation(com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); } @@ -2189,7 +2213,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java index 7deb2f42a..fd968b9f5 100644 --- a/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.automl.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -207,7 +202,7 @@ public abstract static class PredictionServiceImplBase implements io.grpc.Bindab public void predict( com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } /** @@ -233,7 +228,8 @@ public void predict( public void batchPredict( com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchPredictMethod(), responseObserver); } @java.lang.Override @@ -241,13 +237,13 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.PredictRequest, com.google.cloud.automl.v1.PredictResponse>(this, METHODID_PREDICT))) .addMethod( getBatchPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1.BatchPredictRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) @@ -307,7 +303,7 @@ protected PredictionServiceStub build( public void predict( com.google.cloud.automl.v1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } @@ -334,7 +330,7 @@ public void predict( public void batchPredict( com.google.cloud.automl.v1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); @@ -393,7 +389,8 @@ protected PredictionServiceBlockingStub build( */ public com.google.cloud.automl.v1.PredictResponse predict( com.google.cloud.automl.v1.PredictRequest request) { - return blockingUnaryCall(getChannel(), getPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); } /** @@ -418,7 +415,8 @@ public com.google.cloud.automl.v1.PredictResponse predict( */ public com.google.longrunning.Operation batchPredict( com.google.cloud.automl.v1.BatchPredictRequest request) { - return blockingUnaryCall(getChannel(), getBatchPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } @@ -474,7 +472,8 @@ protected PredictionServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1.PredictResponse> predict(com.google.cloud.automl.v1.PredictRequest request) { - return futureUnaryCall(getChannel().newCall(getPredictMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request); } /** @@ -499,7 +498,7 @@ protected PredictionServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture batchPredict(com.google.cloud.automl.v1.BatchPredictRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java index b3cd93eea..66a2ff964 100644 --- a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java +++ b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.automl.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -1178,7 +1173,8 @@ public abstract static class AutoMlImplBase implements io.grpc.BindableService { public void createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); } /** @@ -1191,7 +1187,7 @@ public void createDataset( public void getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } /** @@ -1205,7 +1201,8 @@ public void listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); } /** @@ -1218,7 +1215,8 @@ public void listDatasets( public void updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); } /** @@ -1235,7 +1233,8 @@ public void updateDataset( public void deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); } /** @@ -1255,7 +1254,7 @@ public void deleteDataset( public void importData( com.google.cloud.automl.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); } /** @@ -1270,7 +1269,7 @@ public void importData( public void exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } /** @@ -1284,7 +1283,8 @@ public void getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAnnotationSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecMethod(), responseObserver); } /** @@ -1297,7 +1297,8 @@ public void getAnnotationSpec( public void getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTableSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTableSpecMethod(), responseObserver); } /** @@ -1311,7 +1312,8 @@ public void listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTableSpecsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTableSpecsMethod(), responseObserver); } /** @@ -1324,7 +1326,8 @@ public void listTableSpecs( public void updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateTableSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTableSpecMethod(), responseObserver); } /** @@ -1337,7 +1340,8 @@ public void updateTableSpec( public void getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetColumnSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetColumnSpecMethod(), responseObserver); } /** @@ -1351,7 +1355,8 @@ public void listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListColumnSpecsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListColumnSpecsMethod(), responseObserver); } /** @@ -1364,7 +1369,8 @@ public void listColumnSpecs( public void updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateColumnSpecMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateColumnSpecMethod(), responseObserver); } /** @@ -1381,7 +1387,8 @@ public void updateColumnSpec( public void createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateModelMethod(), responseObserver); } /** @@ -1394,7 +1401,7 @@ public void createModel( public void getModel( com.google.cloud.automl.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetModelMethod(), responseObserver); } /** @@ -1408,7 +1415,7 @@ public void listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver); } /** @@ -1425,7 +1432,8 @@ public void listModels( public void deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelMethod(), responseObserver); } /** @@ -1446,7 +1454,8 @@ public void deleteModel( public void deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployModelMethod(), responseObserver); } /** @@ -1463,7 +1472,8 @@ public void deployModel( public void undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUndeployModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeployModelMethod(), responseObserver); } /** @@ -1481,7 +1491,8 @@ public void undeployModel( public void exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportModelMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportModelMethod(), responseObserver); } /** @@ -1504,7 +1515,8 @@ public void exportModel( public void exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getExportEvaluatedExamplesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportEvaluatedExamplesMethod(), responseObserver); } /** @@ -1518,7 +1530,8 @@ public void getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetModelEvaluationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetModelEvaluationMethod(), responseObserver); } /** @@ -1532,7 +1545,8 @@ public void listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListModelEvaluationsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelEvaluationsMethod(), responseObserver); } @java.lang.Override @@ -1540,152 +1554,152 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.CreateDatasetRequest, com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_CREATE_DATASET))) .addMethod( getGetDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetDatasetRequest, com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_GET_DATASET))) .addMethod( getListDatasetsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ListDatasetsRequest, com.google.cloud.automl.v1beta1.ListDatasetsResponse>( this, METHODID_LIST_DATASETS))) .addMethod( getUpdateDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.UpdateDatasetRequest, com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_UPDATE_DATASET))) .addMethod( getDeleteDatasetMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.DeleteDatasetRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DATASET))) .addMethod( getImportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ImportDataRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) .addMethod( getExportDataMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) .addMethod( getGetAnnotationSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, com.google.cloud.automl.v1beta1.AnnotationSpec>( this, METHODID_GET_ANNOTATION_SPEC))) .addMethod( getGetTableSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetTableSpecRequest, com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_GET_TABLE_SPEC))) .addMethod( getListTableSpecsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ListTableSpecsRequest, com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( this, METHODID_LIST_TABLE_SPECS))) .addMethod( getUpdateTableSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_UPDATE_TABLE_SPEC))) .addMethod( getGetColumnSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetColumnSpecRequest, com.google.cloud.automl.v1beta1.ColumnSpec>(this, METHODID_GET_COLUMN_SPEC))) .addMethod( getListColumnSpecsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( this, METHODID_LIST_COLUMN_SPECS))) .addMethod( getUpdateColumnSpecMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, com.google.cloud.automl.v1beta1.ColumnSpec>( this, METHODID_UPDATE_COLUMN_SPEC))) .addMethod( getCreateModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.CreateModelRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_MODEL))) .addMethod( getGetModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetModelRequest, com.google.cloud.automl.v1beta1.Model>(this, METHODID_GET_MODEL))) .addMethod( getListModelsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ListModelsRequest, com.google.cloud.automl.v1beta1.ListModelsResponse>( this, METHODID_LIST_MODELS))) .addMethod( getDeleteModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) .addMethod( getDeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation>(this, METHODID_DEPLOY_MODEL))) .addMethod( getUndeployModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) .addMethod( getExportModelMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) .addMethod( getExportEvaluatedExamplesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_EVALUATED_EXAMPLES))) .addMethod( getGetModelEvaluationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.GetModelEvaluationRequest, com.google.cloud.automl.v1beta1.ModelEvaluation>( this, METHODID_GET_MODEL_EVALUATION))) .addMethod( getListModelEvaluationsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest, com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse>( @@ -1730,7 +1744,7 @@ protected AutoMlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti public void createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1746,7 +1760,7 @@ public void createDataset( public void getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } @@ -1761,7 +1775,7 @@ public void listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); @@ -1777,7 +1791,7 @@ public void listDatasets( public void updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1797,7 +1811,7 @@ public void updateDataset( public void deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); @@ -1820,7 +1834,7 @@ public void deleteDataset( public void importData( com.google.cloud.automl.v1beta1.ImportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); } @@ -1836,7 +1850,7 @@ public void importData( public void exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } @@ -1851,7 +1865,7 @@ public void getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request, responseObserver); @@ -1867,7 +1881,7 @@ public void getAnnotationSpec( public void getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request, responseObserver); @@ -1884,7 +1898,7 @@ public void listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request, responseObserver); @@ -1900,7 +1914,7 @@ public void listTableSpecs( public void updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request, responseObserver); @@ -1916,7 +1930,7 @@ public void updateTableSpec( public void getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), request, responseObserver); @@ -1933,7 +1947,7 @@ public void listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request, responseObserver); @@ -1949,7 +1963,7 @@ public void listColumnSpecs( public void updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request, responseObserver); @@ -1969,7 +1983,7 @@ public void updateColumnSpec( public void createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request, responseObserver); @@ -1985,7 +1999,7 @@ public void createModel( public void getModel( com.google.cloud.automl.v1beta1.GetModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelMethod(), getCallOptions()), request, responseObserver); } @@ -2000,7 +2014,7 @@ public void listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } @@ -2018,7 +2032,7 @@ public void listModels( public void deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request, responseObserver); @@ -2042,7 +2056,7 @@ public void deleteModel( public void deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request, responseObserver); @@ -2062,7 +2076,7 @@ public void deployModel( public void undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request, responseObserver); @@ -2083,7 +2097,7 @@ public void undeployModel( public void exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request, responseObserver); @@ -2109,7 +2123,7 @@ public void exportModel( public void exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request, responseObserver); @@ -2126,7 +2140,7 @@ public void getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request, responseObserver); @@ -2143,7 +2157,7 @@ public void listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request, responseObserver); @@ -2186,7 +2200,8 @@ protected AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.cloud.automl.v1beta1.Dataset createDataset( com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } /** @@ -2198,7 +2213,8 @@ public com.google.cloud.automl.v1beta1.Dataset createDataset( */ public com.google.cloud.automl.v1beta1.Dataset getDataset( com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return blockingUnaryCall(getChannel(), getGetDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); } /** @@ -2210,7 +2226,8 @@ public com.google.cloud.automl.v1beta1.Dataset getDataset( */ public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return blockingUnaryCall(getChannel(), getListDatasetsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); } /** @@ -2222,7 +2239,8 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( */ public com.google.cloud.automl.v1beta1.Dataset updateDataset( com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return blockingUnaryCall(getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } /** @@ -2238,7 +2256,8 @@ public com.google.cloud.automl.v1beta1.Dataset updateDataset( */ public com.google.longrunning.Operation deleteDataset( com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return blockingUnaryCall(getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } /** @@ -2257,7 +2276,8 @@ public com.google.longrunning.Operation deleteDataset( */ public com.google.longrunning.Operation importData( com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return blockingUnaryCall(getChannel(), getImportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); } /** @@ -2271,7 +2291,8 @@ public com.google.longrunning.Operation importData( */ public com.google.longrunning.Operation exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return blockingUnaryCall(getChannel(), getExportDataMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); } /** @@ -2283,7 +2304,7 @@ public com.google.longrunning.Operation exportData( */ public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -2296,7 +2317,8 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( */ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return blockingUnaryCall(getChannel(), getGetTableSpecMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTableSpecMethod(), getCallOptions(), request); } /** @@ -2308,7 +2330,8 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( */ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return blockingUnaryCall(getChannel(), getListTableSpecsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTableSpecsMethod(), getCallOptions(), request); } /** @@ -2320,7 +2343,8 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( */ public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return blockingUnaryCall(getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); } /** @@ -2332,7 +2356,8 @@ public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( */ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return blockingUnaryCall(getChannel(), getGetColumnSpecMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetColumnSpecMethod(), getCallOptions(), request); } /** @@ -2344,7 +2369,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( */ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { - return blockingUnaryCall(getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); } /** @@ -2356,7 +2382,7 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( */ public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); } @@ -2373,7 +2399,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( */ public com.google.longrunning.Operation createModel( com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return blockingUnaryCall(getChannel(), getCreateModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateModelMethod(), getCallOptions(), request); } /** @@ -2385,7 +2412,8 @@ public com.google.longrunning.Operation createModel( */ public com.google.cloud.automl.v1beta1.Model getModel( com.google.cloud.automl.v1beta1.GetModelRequest request) { - return blockingUnaryCall(getChannel(), getGetModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetModelMethod(), getCallOptions(), request); } /** @@ -2397,7 +2425,8 @@ public com.google.cloud.automl.v1beta1.Model getModel( */ public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return blockingUnaryCall(getChannel(), getListModelsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelsMethod(), getCallOptions(), request); } /** @@ -2413,7 +2442,8 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( */ public com.google.longrunning.Operation deleteModel( com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return blockingUnaryCall(getChannel(), getDeleteModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelMethod(), getCallOptions(), request); } /** @@ -2433,7 +2463,8 @@ public com.google.longrunning.Operation deleteModel( */ public com.google.longrunning.Operation deployModel( com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return blockingUnaryCall(getChannel(), getDeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); } /** @@ -2449,7 +2480,8 @@ public com.google.longrunning.Operation deployModel( */ public com.google.longrunning.Operation undeployModel( com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return blockingUnaryCall(getChannel(), getUndeployModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), getCallOptions(), request); } /** @@ -2466,7 +2498,8 @@ public com.google.longrunning.Operation undeployModel( */ public com.google.longrunning.Operation exportModel( com.google.cloud.automl.v1beta1.ExportModelRequest request) { - return blockingUnaryCall(getChannel(), getExportModelMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportModelMethod(), getCallOptions(), request); } /** @@ -2488,7 +2521,7 @@ public com.google.longrunning.Operation exportModel( */ public com.google.longrunning.Operation exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); } @@ -2501,7 +2534,7 @@ public com.google.longrunning.Operation exportEvaluatedExamples( */ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -2514,7 +2547,7 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( */ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations( com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } } @@ -2556,7 +2589,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.Dataset> createDataset(com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); } @@ -2570,7 +2603,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.Dataset> getDataset(com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } @@ -2584,7 +2617,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ListDatasetsResponse> listDatasets(com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); } @@ -2598,7 +2631,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.Dataset> updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); } @@ -2615,7 +2648,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteDataset(com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); } @@ -2635,7 +2668,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture importData(com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDataMethod(), getCallOptions()), request); } @@ -2650,7 +2683,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportData(com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } @@ -2664,7 +2697,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.AnnotationSpec> getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAnnotationSpecMethod(), getCallOptions()), request); } @@ -2678,7 +2711,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.TableSpec> getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTableSpecMethod(), getCallOptions()), request); } @@ -2692,7 +2725,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ListTableSpecsResponse> listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTableSpecsMethod(), getCallOptions()), request); } @@ -2706,7 +2739,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.TableSpec> updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateTableSpecMethod(), getCallOptions()), request); } @@ -2720,7 +2753,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ColumnSpec> getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetColumnSpecMethod(), getCallOptions()), request); } @@ -2734,7 +2767,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListColumnSpecsMethod(), getCallOptions()), request); } @@ -2748,7 +2781,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ColumnSpec> updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateColumnSpecMethod(), getCallOptions()), request); } @@ -2765,7 +2798,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture createModel(com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateModelMethod(), getCallOptions()), request); } @@ -2778,7 +2811,8 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture getModel(com.google.cloud.automl.v1beta1.GetModelRequest request) { - return futureUnaryCall(getChannel().newCall(getGetModelMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetModelMethod(), getCallOptions()), request); } /** @@ -2791,7 +2825,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ListModelsResponse> listModels(com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } @@ -2808,7 +2842,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deleteModel(com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } @@ -2829,7 +2863,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture deployModel(com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployModelMethod(), getCallOptions()), request); } @@ -2846,7 +2880,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture undeployModel(com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployModelMethod(), getCallOptions()), request); } @@ -2864,7 +2898,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca */ public com.google.common.util.concurrent.ListenableFuture exportModel(com.google.cloud.automl.v1beta1.ExportModelRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportModelMethod(), getCallOptions()), request); } @@ -2888,7 +2922,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture exportEvaluatedExamples( com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportEvaluatedExamplesMethod(), getCallOptions()), request); } @@ -2902,7 +2936,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ModelEvaluation> getModelEvaluation(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetModelEvaluationMethod(), getCallOptions()), request); } @@ -2916,7 +2950,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse> listModelEvaluations(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListModelEvaluationsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java index 02b2f60b6..28305076f 100644 --- a/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.automl.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -208,7 +203,7 @@ public void predict( com.google.cloud.automl.v1beta1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } /** @@ -232,7 +227,8 @@ public void predict( public void batchPredict( com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchPredictMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchPredictMethod(), responseObserver); } @java.lang.Override @@ -240,13 +236,13 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.PredictRequest, com.google.cloud.automl.v1beta1.PredictResponse>(this, METHODID_PREDICT))) .addMethod( getBatchPredictMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) @@ -303,7 +299,7 @@ public void predict( com.google.cloud.automl.v1beta1.PredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } @@ -328,7 +324,7 @@ public void predict( public void batchPredict( com.google.cloud.automl.v1beta1.BatchPredictRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request, responseObserver); @@ -383,7 +379,8 @@ protected PredictionServiceBlockingStub build( */ public com.google.cloud.automl.v1beta1.PredictResponse predict( com.google.cloud.automl.v1beta1.PredictRequest request) { - return blockingUnaryCall(getChannel(), getPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); } /** @@ -406,7 +403,8 @@ public com.google.cloud.automl.v1beta1.PredictResponse predict( */ public com.google.longrunning.Operation batchPredict( com.google.cloud.automl.v1beta1.BatchPredictRequest request) { - return blockingUnaryCall(getChannel(), getBatchPredictMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } @@ -458,7 +456,8 @@ protected PredictionServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.automl.v1beta1.PredictResponse> predict(com.google.cloud.automl.v1beta1.PredictRequest request) { - return futureUnaryCall(getChannel().newCall(getPredictMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPredictMethod(), getCallOptions()), request); } /** @@ -481,7 +480,7 @@ protected PredictionServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchPredictMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index 23acd2340..d96a48e84 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-automl.git", - "sha": "0865ea995045e79fbb1b253b1c712da73f109e2b" + "sha": "ad615e3f7d4e12dd5f0eb1e77dd2eb15b71695f6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, {