/// <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, PipelineServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateTrainingPipeline, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.CreateTrainingPipelineRequest, global::Google.Cloud.AIPlatform.V1.TrainingPipeline>(serviceImpl.CreateTrainingPipeline)); serviceBinder.AddMethod(__Method_GetTrainingPipeline, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.GetTrainingPipelineRequest, global::Google.Cloud.AIPlatform.V1.TrainingPipeline>(serviceImpl.GetTrainingPipeline)); serviceBinder.AddMethod(__Method_ListTrainingPipelines, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.ListTrainingPipelinesRequest, global::Google.Cloud.AIPlatform.V1.ListTrainingPipelinesResponse>(serviceImpl.ListTrainingPipelines)); serviceBinder.AddMethod(__Method_DeleteTrainingPipeline, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeleteTrainingPipelineRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteTrainingPipeline)); serviceBinder.AddMethod(__Method_CancelTrainingPipeline, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.CancelTrainingPipelineRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.CancelTrainingPipeline)); }
/// <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(PipelineServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateTrainingPipeline, serviceImpl.CreateTrainingPipeline) .AddMethod(__Method_GetTrainingPipeline, serviceImpl.GetTrainingPipeline) .AddMethod(__Method_ListTrainingPipelines, serviceImpl.ListTrainingPipelines) .AddMethod(__Method_DeleteTrainingPipeline, serviceImpl.DeleteTrainingPipeline) .AddMethod(__Method_CancelTrainingPipeline, serviceImpl.CancelTrainingPipeline).Build()); }