public static void BindService(grpc::ServiceBinderBase serviceBinder, BatchControllerBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateBatch, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataproc.V1.CreateBatchRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateBatch)); serviceBinder.AddMethod(__Method_GetBatch, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataproc.V1.GetBatchRequest, global::Google.Cloud.Dataproc.V1.Batch>(serviceImpl.GetBatch)); serviceBinder.AddMethod(__Method_ListBatches, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataproc.V1.ListBatchesRequest, global::Google.Cloud.Dataproc.V1.ListBatchesResponse>(serviceImpl.ListBatches)); serviceBinder.AddMethod(__Method_DeleteBatch, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataproc.V1.DeleteBatchRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteBatch)); }
public static grpc::ServerServiceDefinition BindService(BatchControllerBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateBatch, serviceImpl.CreateBatch) .AddMethod(__Method_GetBatch, serviceImpl.GetBatch) .AddMethod(__Method_ListBatches, serviceImpl.ListBatches) .AddMethod(__Method_DeleteBatch, serviceImpl.DeleteBatch).Build()); }