public static grpc::ServerServiceDefinition BindService(PrivateCatalogBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_SearchCatalogs, serviceImpl.SearchCatalogs) .AddMethod(__Method_SearchProducts, serviceImpl.SearchProducts) .AddMethod(__Method_SearchVersions, serviceImpl.SearchVersions).Build()); }
public static void BindService(grpc::ServiceBinderBase serviceBinder, PrivateCatalogBase serviceImpl) { serviceBinder.AddMethod(__Method_SearchCatalogs, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsRequest, global::Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsResponse>(serviceImpl.SearchCatalogs)); serviceBinder.AddMethod(__Method_SearchProducts, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsRequest, global::Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsResponse>(serviceImpl.SearchProducts)); serviceBinder.AddMethod(__Method_SearchVersions, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest, global::Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsResponse>(serviceImpl.SearchVersions)); }