Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predict service #243

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions gen/csharp/LinesserviceGrpc.cs → gen/csharp/PredictserviceGrpc.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ssn/linesservice/v1/linesservice.proto
// source: ssn/predictservice/v1/predictservice.proto
// </auto-generated>
#pragma warning disable 0414, 1591, 8981, 0612
#region Designer generated code

using grpc = global::Grpc.Core;

namespace Ssn.Linesservice.V1 {
public static partial class LinesService
namespace Ssn.Predictservice.V1 {
public static partial class PredictService
{
static readonly string __ServiceName = "ssn.linesservice.v1.LinesService";
static readonly string __ServiceName = "ssn.predictservice.v1.PredictService";

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
Expand Down Expand Up @@ -46,95 +46,95 @@ static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, gl
}

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller<global::Ssn.Linesservice.V1.LinesRequest> __Marshaller_ssn_linesservice_v1_LinesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Linesservice.V1.LinesRequest.Parser));
static readonly grpc::Marshaller<global::Ssn.Predictservice.V1.ModelInferRequest> __Marshaller_ssn_predictservice_v1_ModelInferRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Predictservice.V1.ModelInferRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller<global::Ssn.Linesservice.V1.LinesResponse> __Marshaller_ssn_linesservice_v1_LinesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Linesservice.V1.LinesResponse.Parser));
static readonly grpc::Marshaller<global::Ssn.Predictservice.V1.ModelInferResponse> __Marshaller_ssn_predictservice_v1_ModelInferResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Ssn.Predictservice.V1.ModelInferResponse.Parser));

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method<global::Ssn.Linesservice.V1.LinesRequest, global::Ssn.Linesservice.V1.LinesResponse> __Method_Predict = new grpc::Method<global::Ssn.Linesservice.V1.LinesRequest, global::Ssn.Linesservice.V1.LinesResponse>(
static readonly grpc::Method<global::Ssn.Predictservice.V1.ModelInferRequest, global::Ssn.Predictservice.V1.ModelInferResponse> __Method_Predict = new grpc::Method<global::Ssn.Predictservice.V1.ModelInferRequest, global::Ssn.Predictservice.V1.ModelInferResponse>(
grpc::MethodType.Unary,
__ServiceName,
"Predict",
__Marshaller_ssn_linesservice_v1_LinesRequest,
__Marshaller_ssn_linesservice_v1_LinesResponse);
__Marshaller_ssn_predictservice_v1_ModelInferRequest,
__Marshaller_ssn_predictservice_v1_ModelInferResponse);

/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Ssn.Linesservice.V1.LinesserviceReflection.Descriptor.Services[0]; }
get { return global::Ssn.Predictservice.V1.PredictserviceReflection.Descriptor.Services[0]; }
}

/// <summary>Base class for server-side implementations of LinesService</summary>
[grpc::BindServiceMethod(typeof(LinesService), "BindService")]
public abstract partial class LinesServiceBase
/// <summary>Base class for server-side implementations of PredictService</summary>
[grpc::BindServiceMethod(typeof(PredictService), "BindService")]
public abstract partial class PredictServiceBase
{
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task<global::Ssn.Linesservice.V1.LinesResponse> Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::ServerCallContext context)
public virtual global::System.Threading.Tasks.Task<global::Ssn.Predictservice.V1.ModelInferResponse> Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}

}

/// <summary>Client for LinesService</summary>
public partial class LinesServiceClient : grpc::ClientBase<LinesServiceClient>
/// <summary>Client for PredictService</summary>
public partial class PredictServiceClient : grpc::ClientBase<PredictServiceClient>
{
/// <summary>Creates a new client for LinesService</summary>
/// <summary>Creates a new client for PredictService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public LinesServiceClient(grpc::ChannelBase channel) : base(channel)
public PredictServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for LinesService that uses a custom <c>CallInvoker</c>.</summary>
/// <summary>Creates a new client for PredictService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public LinesServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
public PredictServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected LinesServiceClient() : base()
protected PredictServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected LinesServiceClient(ClientBaseConfiguration configuration) : base(configuration)
protected PredictServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Ssn.Linesservice.V1.LinesResponse Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public virtual global::Ssn.Predictservice.V1.ModelInferResponse Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return Predict(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Ssn.Linesservice.V1.LinesResponse Predict(global::Ssn.Linesservice.V1.LinesRequest request, grpc::CallOptions options)
public virtual global::Ssn.Predictservice.V1.ModelInferResponse Predict(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_Predict, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall<global::Ssn.Linesservice.V1.LinesResponse> PredictAsync(global::Ssn.Linesservice.V1.LinesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public virtual grpc::AsyncUnaryCall<global::Ssn.Predictservice.V1.ModelInferResponse> PredictAsync(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PredictAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall<global::Ssn.Linesservice.V1.LinesResponse> PredictAsync(global::Ssn.Linesservice.V1.LinesRequest request, grpc::CallOptions options)
public virtual grpc::AsyncUnaryCall<global::Ssn.Predictservice.V1.ModelInferResponse> PredictAsync(global::Ssn.Predictservice.V1.ModelInferRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_Predict, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override LinesServiceClient NewInstance(ClientBaseConfiguration configuration)
protected override PredictServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new LinesServiceClient(configuration);
return new PredictServiceClient(configuration);
}
}

/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static grpc::ServerServiceDefinition BindService(LinesServiceBase serviceImpl)
public static grpc::ServerServiceDefinition BindService(PredictServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_Predict, serviceImpl.Predict).Build();
Expand All @@ -145,9 +145,9 @@ protected override LinesServiceClient NewInstance(ClientBaseConfiguration config
/// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static void BindService(grpc::ServiceBinderBase serviceBinder, LinesServiceBase serviceImpl)
public static void BindService(grpc::ServiceBinderBase serviceBinder, PredictServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Ssn.Linesservice.V1.LinesRequest, global::Ssn.Linesservice.V1.LinesResponse>(serviceImpl.Predict));
serviceBinder.AddMethod(__Method_Predict, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Ssn.Predictservice.V1.ModelInferRequest, global::Ssn.Predictservice.V1.ModelInferResponse>(serviceImpl.Predict));
}

}
Expand Down
Loading