/// <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, MigrationServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateMigrationWorkflow, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.CreateMigrationWorkflowRequest, global::Google.Cloud.Bigquery.Migration.V2Alpha.MigrationWorkflow>(serviceImpl.CreateMigrationWorkflow)); serviceBinder.AddMethod(__Method_GetMigrationWorkflow, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.GetMigrationWorkflowRequest, global::Google.Cloud.Bigquery.Migration.V2Alpha.MigrationWorkflow>(serviceImpl.GetMigrationWorkflow)); serviceBinder.AddMethod(__Method_ListMigrationWorkflows, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.ListMigrationWorkflowsRequest, global::Google.Cloud.Bigquery.Migration.V2Alpha.ListMigrationWorkflowsResponse>(serviceImpl.ListMigrationWorkflows)); serviceBinder.AddMethod(__Method_DeleteMigrationWorkflow, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.DeleteMigrationWorkflowRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteMigrationWorkflow)); serviceBinder.AddMethod(__Method_StartMigrationWorkflow, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.StartMigrationWorkflowRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.StartMigrationWorkflow)); serviceBinder.AddMethod(__Method_GetMigrationSubtask, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.GetMigrationSubtaskRequest, global::Google.Cloud.Bigquery.Migration.V2Alpha.MigrationSubtask>(serviceImpl.GetMigrationSubtask)); serviceBinder.AddMethod(__Method_ListMigrationSubtasks, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Bigquery.Migration.V2Alpha.ListMigrationSubtasksRequest, global::Google.Cloud.Bigquery.Migration.V2Alpha.ListMigrationSubtasksResponse>(serviceImpl.ListMigrationSubtasks)); }
/// <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(MigrationServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateMigrationWorkflow, serviceImpl.CreateMigrationWorkflow) .AddMethod(__Method_GetMigrationWorkflow, serviceImpl.GetMigrationWorkflow) .AddMethod(__Method_ListMigrationWorkflows, serviceImpl.ListMigrationWorkflows) .AddMethod(__Method_DeleteMigrationWorkflow, serviceImpl.DeleteMigrationWorkflow) .AddMethod(__Method_StartMigrationWorkflow, serviceImpl.StartMigrationWorkflow) .AddMethod(__Method_GetMigrationSubtask, serviceImpl.GetMigrationSubtask) .AddMethod(__Method_ListMigrationSubtasks, serviceImpl.ListMigrationSubtasks).Build()); }
public static void BindService(grpc::ServiceBinderBase serviceBinder, MigrationServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_SearchMigratableResources, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.SearchMigratableResourcesRequest, global::Google.Cloud.AIPlatform.V1.SearchMigratableResourcesResponse>(serviceImpl.SearchMigratableResources)); serviceBinder.AddMethod(__Method_BatchMigrateResources, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.BatchMigrateResourcesRequest, global::Google.LongRunning.Operation>(serviceImpl.BatchMigrateResources)); }
public static grpc::ServerServiceDefinition BindService(MigrationServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_SearchMigratableResources, serviceImpl.SearchMigratableResources) .AddMethod(__Method_BatchMigrateResources, serviceImpl.BatchMigrateResources).Build()); }