/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(LanguageServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_AnalyzeSentiment, serviceImpl.AnalyzeSentiment) .AddMethod(__Method_AnalyzeEntities, serviceImpl.AnalyzeEntities) .AddMethod(__Method_AnalyzeEntitySentiment, serviceImpl.AnalyzeEntitySentiment) .AddMethod(__Method_AnalyzeSyntax, serviceImpl.AnalyzeSyntax) .AddMethod(__Method_ClassifyText, serviceImpl.ClassifyText) .AddMethod(__Method_AnnotateText, serviceImpl.AnnotateText).Build()); }