/// <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, TransitionRouteGroupsBase serviceImpl) { serviceBinder.AddMethod(__Method_ListTransitionRouteGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.ListTransitionRouteGroupsRequest, global::Google.Cloud.Dialogflow.Cx.V3.ListTransitionRouteGroupsResponse>(serviceImpl.ListTransitionRouteGroups)); serviceBinder.AddMethod(__Method_GetTransitionRouteGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.GetTransitionRouteGroupRequest, global::Google.Cloud.Dialogflow.Cx.V3.TransitionRouteGroup>(serviceImpl.GetTransitionRouteGroup)); serviceBinder.AddMethod(__Method_CreateTransitionRouteGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.CreateTransitionRouteGroupRequest, global::Google.Cloud.Dialogflow.Cx.V3.TransitionRouteGroup>(serviceImpl.CreateTransitionRouteGroup)); serviceBinder.AddMethod(__Method_UpdateTransitionRouteGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.UpdateTransitionRouteGroupRequest, global::Google.Cloud.Dialogflow.Cx.V3.TransitionRouteGroup>(serviceImpl.UpdateTransitionRouteGroup)); serviceBinder.AddMethod(__Method_DeleteTransitionRouteGroup, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.DeleteTransitionRouteGroupRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteTransitionRouteGroup)); }
/// <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(TransitionRouteGroupsBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListTransitionRouteGroups, serviceImpl.ListTransitionRouteGroups) .AddMethod(__Method_GetTransitionRouteGroup, serviceImpl.GetTransitionRouteGroup) .AddMethod(__Method_CreateTransitionRouteGroup, serviceImpl.CreateTransitionRouteGroup) .AddMethod(__Method_UpdateTransitionRouteGroup, serviceImpl.UpdateTransitionRouteGroup) .AddMethod(__Method_DeleteTransitionRouteGroup, serviceImpl.DeleteTransitionRouteGroup).Build()); }