public static void BindService(grpc::ServiceBinderBase serviceBinder, QuestionServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest, global::Google.Cloud.DataQnA.V1Alpha.Question>(serviceImpl.GetQuestion)); serviceBinder.AddMethod(__Method_CreateQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest, global::Google.Cloud.DataQnA.V1Alpha.Question>(serviceImpl.CreateQuestion)); serviceBinder.AddMethod(__Method_ExecuteQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest, global::Google.Cloud.DataQnA.V1Alpha.Question>(serviceImpl.ExecuteQuestion)); serviceBinder.AddMethod(__Method_GetUserFeedback, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest, global::Google.Cloud.DataQnA.V1Alpha.UserFeedback>(serviceImpl.GetUserFeedback)); serviceBinder.AddMethod(__Method_UpdateUserFeedback, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest, global::Google.Cloud.DataQnA.V1Alpha.UserFeedback>(serviceImpl.UpdateUserFeedback)); }
public static grpc::ServerServiceDefinition BindService(QuestionServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetQuestion, serviceImpl.GetQuestion) .AddMethod(__Method_CreateQuestion, serviceImpl.CreateQuestion) .AddMethod(__Method_ExecuteQuestion, serviceImpl.ExecuteQuestion) .AddMethod(__Method_GetUserFeedback, serviceImpl.GetUserFeedback) .AddMethod(__Method_UpdateUserFeedback, serviceImpl.UpdateUserFeedback).Build()); }