/// <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, UserEventServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_WriteUserEvent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.WriteUserEventRequest, global::Google.Cloud.RecommendationEngine.V1Beta1.UserEvent>(serviceImpl.WriteUserEvent)); serviceBinder.AddMethod(__Method_CollectUserEvent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.CollectUserEventRequest, global::Google.Api.HttpBody>(serviceImpl.CollectUserEvent)); serviceBinder.AddMethod(__Method_ListUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.ListUserEventsRequest, global::Google.Cloud.RecommendationEngine.V1Beta1.ListUserEventsResponse>(serviceImpl.ListUserEvents)); serviceBinder.AddMethod(__Method_PurgeUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.PurgeUserEventsRequest, global::Google.LongRunning.Operation>(serviceImpl.PurgeUserEvents)); serviceBinder.AddMethod(__Method_ImportUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.ImportUserEventsRequest, global::Google.LongRunning.Operation>(serviceImpl.ImportUserEvents)); }
/// <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, UserEventServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_WriteUserEvent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.WriteUserEventRequest, global::Google.Cloud.Retail.V2.UserEvent>(serviceImpl.WriteUserEvent)); serviceBinder.AddMethod(__Method_CollectUserEvent, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.CollectUserEventRequest, global::Google.Api.HttpBody>(serviceImpl.CollectUserEvent)); serviceBinder.AddMethod(__Method_PurgeUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.PurgeUserEventsRequest, global::Google.LongRunning.Operation>(serviceImpl.PurgeUserEvents)); serviceBinder.AddMethod(__Method_ImportUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.ImportUserEventsRequest, global::Google.LongRunning.Operation>(serviceImpl.ImportUserEvents)); serviceBinder.AddMethod(__Method_RejoinUserEvents, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.RejoinUserEventsRequest, global::Google.LongRunning.Operation>(serviceImpl.RejoinUserEvents)); }
/// <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(UserEventServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_WriteUserEvent, serviceImpl.WriteUserEvent) .AddMethod(__Method_CollectUserEvent, serviceImpl.CollectUserEvent) .AddMethod(__Method_ListUserEvents, serviceImpl.ListUserEvents) .AddMethod(__Method_PurgeUserEvents, serviceImpl.PurgeUserEvents) .AddMethod(__Method_ImportUserEvents, serviceImpl.ImportUserEvents).Build()); }