public static void BindService(grpc::ServiceBinderBase serviceBinder, IntentsBase serviceImpl) { serviceBinder.AddMethod(__Method_ListIntents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.ListIntentsRequest, global::Google.Cloud.Dialogflow.Cx.V3.ListIntentsResponse>(serviceImpl.ListIntents)); serviceBinder.AddMethod(__Method_GetIntent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.GetIntentRequest, global::Google.Cloud.Dialogflow.Cx.V3.Intent>(serviceImpl.GetIntent)); serviceBinder.AddMethod(__Method_CreateIntent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.CreateIntentRequest, global::Google.Cloud.Dialogflow.Cx.V3.Intent>(serviceImpl.CreateIntent)); serviceBinder.AddMethod(__Method_UpdateIntent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.UpdateIntentRequest, global::Google.Cloud.Dialogflow.Cx.V3.Intent>(serviceImpl.UpdateIntent)); serviceBinder.AddMethod(__Method_DeleteIntent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.DeleteIntentRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteIntent)); }
public static grpc::ServerServiceDefinition BindService(IntentsBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListIntents, serviceImpl.ListIntents) .AddMethod(__Method_GetIntent, serviceImpl.GetIntent) .AddMethod(__Method_CreateIntent, serviceImpl.CreateIntent) .AddMethod(__Method_UpdateIntent, serviceImpl.UpdateIntent) .AddMethod(__Method_DeleteIntent, serviceImpl.DeleteIntent).Build()); }