public static void BindService(grpc::ServiceBinderBase serviceBinder, IndexServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.CreateIndexRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateIndex)); serviceBinder.AddMethod(__Method_GetIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.GetIndexRequest, global::Google.Cloud.AIPlatform.V1.Index>(serviceImpl.GetIndex)); serviceBinder.AddMethod(__Method_ListIndexes, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.ListIndexesRequest, global::Google.Cloud.AIPlatform.V1.ListIndexesResponse>(serviceImpl.ListIndexes)); serviceBinder.AddMethod(__Method_UpdateIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.UpdateIndexRequest, global::Google.LongRunning.Operation>(serviceImpl.UpdateIndex)); serviceBinder.AddMethod(__Method_DeleteIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeleteIndexRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteIndex)); }
public static grpc::ServerServiceDefinition BindService(IndexServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateIndex, serviceImpl.CreateIndex) .AddMethod(__Method_GetIndex, serviceImpl.GetIndex) .AddMethod(__Method_ListIndexes, serviceImpl.ListIndexes) .AddMethod(__Method_UpdateIndex, serviceImpl.UpdateIndex) .AddMethod(__Method_DeleteIndex, serviceImpl.DeleteIndex).Build()); }