/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, SessionEntityTypesBase serviceImpl) { serviceBinder.AddMethod(__Method_ListSessionEntityTypes, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.ListSessionEntityTypesRequest, global::Google.Cloud.Dialogflow.Cx.V3.ListSessionEntityTypesResponse>(serviceImpl.ListSessionEntityTypes)); serviceBinder.AddMethod(__Method_GetSessionEntityType, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.GetSessionEntityTypeRequest, global::Google.Cloud.Dialogflow.Cx.V3.SessionEntityType>(serviceImpl.GetSessionEntityType)); serviceBinder.AddMethod(__Method_CreateSessionEntityType, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.CreateSessionEntityTypeRequest, global::Google.Cloud.Dialogflow.Cx.V3.SessionEntityType>(serviceImpl.CreateSessionEntityType)); serviceBinder.AddMethod(__Method_UpdateSessionEntityType, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.UpdateSessionEntityTypeRequest, global::Google.Cloud.Dialogflow.Cx.V3.SessionEntityType>(serviceImpl.UpdateSessionEntityType)); serviceBinder.AddMethod(__Method_DeleteSessionEntityType, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.DeleteSessionEntityTypeRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteSessionEntityType)); }
/// <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(SessionEntityTypesBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListSessionEntityTypes, serviceImpl.ListSessionEntityTypes) .AddMethod(__Method_GetSessionEntityType, serviceImpl.GetSessionEntityType) .AddMethod(__Method_CreateSessionEntityType, serviceImpl.CreateSessionEntityType) .AddMethod(__Method_UpdateSessionEntityType, serviceImpl.UpdateSessionEntityType) .AddMethod(__Method_DeleteSessionEntityType, serviceImpl.DeleteSessionEntityType).Build()); }