Esempio n. 1
0
 public static grpc::ServerServiceDefinition BindService(PredictionApiKeyRegistryBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_CreatePredictionApiKeyRegistration, serviceImpl.CreatePredictionApiKeyRegistration)
            .AddMethod(__Method_ListPredictionApiKeyRegistrations, serviceImpl.ListPredictionApiKeyRegistrations)
            .AddMethod(__Method_DeletePredictionApiKeyRegistration, serviceImpl.DeletePredictionApiKeyRegistration).Build());
 }
Esempio n. 2
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictionApiKeyRegistryBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_CreatePredictionApiKeyRegistration, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.CreatePredictionApiKeyRegistrationRequest, global::Google.Cloud.RecommendationEngine.V1Beta1.PredictionApiKeyRegistration>(serviceImpl.CreatePredictionApiKeyRegistration));
     serviceBinder.AddMethod(__Method_ListPredictionApiKeyRegistrations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.ListPredictionApiKeyRegistrationsRequest, global::Google.Cloud.RecommendationEngine.V1Beta1.ListPredictionApiKeyRegistrationsResponse>(serviceImpl.ListPredictionApiKeyRegistrations));
     serviceBinder.AddMethod(__Method_DeletePredictionApiKeyRegistration, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.RecommendationEngine.V1Beta1.DeletePredictionApiKeyRegistrationRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeletePredictionApiKeyRegistration));
 }