/// <summary>Register service method implementations with a service binder. 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, MutateJobServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateMutateJob, serviceImpl.CreateMutateJob); serviceBinder.AddMethod(__Method_GetMutateJob, serviceImpl.GetMutateJob); serviceBinder.AddMethod(__Method_ListMutateJobResults, serviceImpl.ListMutateJobResults); serviceBinder.AddMethod(__Method_RunMutateJob, serviceImpl.RunMutateJob); serviceBinder.AddMethod(__Method_AddMutateJobOperations, serviceImpl.AddMutateJobOperations); }
/// <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, MutateJobServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateMutateJob, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V2.Services.CreateMutateJobRequest, global::Google.Ads.GoogleAds.V2.Services.CreateMutateJobResponse>(serviceImpl.CreateMutateJob)); serviceBinder.AddMethod(__Method_GetMutateJob, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V2.Services.GetMutateJobRequest, global::Google.Ads.GoogleAds.V2.Resources.MutateJob>(serviceImpl.GetMutateJob)); serviceBinder.AddMethod(__Method_ListMutateJobResults, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V2.Services.ListMutateJobResultsRequest, global::Google.Ads.GoogleAds.V2.Services.ListMutateJobResultsResponse>(serviceImpl.ListMutateJobResults)); serviceBinder.AddMethod(__Method_RunMutateJob, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V2.Services.RunMutateJobRequest, global::Google.LongRunning.Operation>(serviceImpl.RunMutateJob)); serviceBinder.AddMethod(__Method_AddMutateJobOperations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V2.Services.AddMutateJobOperationsRequest, global::Google.Ads.GoogleAds.V2.Services.AddMutateJobOperationsResponse>(serviceImpl.AddMutateJobOperations)); }
/// <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(MutateJobServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateMutateJob, serviceImpl.CreateMutateJob) .AddMethod(__Method_GetMutateJob, serviceImpl.GetMutateJob) .AddMethod(__Method_ListMutateJobResults, serviceImpl.ListMutateJobResults) .AddMethod(__Method_RunMutateJob, serviceImpl.RunMutateJob) .AddMethod(__Method_AddMutateJobOperations, serviceImpl.AddMutateJobOperations).Build()); }