public static void BindService(grpc::ServiceBinderBase serviceBinder, EndpointServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.CreateEndpointRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateEndpoint)); serviceBinder.AddMethod(__Method_GetEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.GetEndpointRequest, global::Google.Cloud.AIPlatform.V1.Endpoint>(serviceImpl.GetEndpoint)); serviceBinder.AddMethod(__Method_ListEndpoints, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.ListEndpointsRequest, global::Google.Cloud.AIPlatform.V1.ListEndpointsResponse>(serviceImpl.ListEndpoints)); serviceBinder.AddMethod(__Method_UpdateEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.UpdateEndpointRequest, global::Google.Cloud.AIPlatform.V1.Endpoint>(serviceImpl.UpdateEndpoint)); serviceBinder.AddMethod(__Method_DeleteEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeleteEndpointRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteEndpoint)); serviceBinder.AddMethod(__Method_DeployModel, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeployModelRequest, global::Google.LongRunning.Operation>(serviceImpl.DeployModel)); serviceBinder.AddMethod(__Method_UndeployModel, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.UndeployModelRequest, global::Google.LongRunning.Operation>(serviceImpl.UndeployModel)); }
public static grpc::ServerServiceDefinition BindService(EndpointServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateEndpoint, serviceImpl.CreateEndpoint) .AddMethod(__Method_GetEndpoint, serviceImpl.GetEndpoint) .AddMethod(__Method_ListEndpoints, serviceImpl.ListEndpoints) .AddMethod(__Method_UpdateEndpoint, serviceImpl.UpdateEndpoint) .AddMethod(__Method_DeleteEndpoint, serviceImpl.DeleteEndpoint) .AddMethod(__Method_DeployModel, serviceImpl.DeployModel) .AddMethod(__Method_UndeployModel, serviceImpl.UndeployModel).Build()); }