public static grpc::ServerServiceDefinition BindService(PredictionServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Predict, serviceImpl.Predict)
            .AddMethod(__Method_RawPredict, serviceImpl.RawPredict)
            .AddMethod(__Method_Explain, serviceImpl.Explain).Build());
 }
 /// <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(PredictionServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Classify, serviceImpl.Classify)
            .AddMethod(__Method_Regress, serviceImpl.Regress)
            .AddMethod(__Method_Predict, serviceImpl.Predict)
            .AddMethod(__Method_MultiInference, serviceImpl.MultiInference)
            .AddMethod(__Method_GetModelMetadata, serviceImpl.GetModelMetadata).Build());
 }
 public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictionServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AutoML.V1.PredictRequest, global::Google.Cloud.AutoML.V1.PredictResponse>(serviceImpl.Predict));
     serviceBinder.AddMethod(__Method_BatchPredict, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AutoML.V1.BatchPredictRequest, global::Google.LongRunning.Operation>(serviceImpl.BatchPredict));
 }
Beispiel #4
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictionServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.PredictRequest, global::Google.Cloud.Retail.V2.PredictResponse>(serviceImpl.Predict));
 }
 public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictionServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.PredictRequest, global::Google.Cloud.AIPlatform.V1.PredictResponse>(serviceImpl.Predict));
     serviceBinder.AddMethod(__Method_RawPredict, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.RawPredictRequest, global::Google.Api.HttpBody>(serviceImpl.RawPredict));
     serviceBinder.AddMethod(__Method_Explain, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.ExplainRequest, global::Google.Cloud.AIPlatform.V1.ExplainResponse>(serviceImpl.Explain));
 }
 /// <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(PredictionServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_FindNearestHouseIndices, serviceImpl.FindNearestHouseIndices).Build());
 }