UNPKG

@plexus-interop/cli

Version:

Plexus Interop CLI tools

90 lines (70 loc) 4.45 kB
// <auto-generated> // Generated by the Plexus Interop compiler. DO NOT EDIT! // source: interop\samples\greeting_service.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code namespace plexus { using System; using global::Plexus; using global::Plexus.Channels; using global::Plexus.Interop; using global::System.Threading.Tasks; public static partial class GreetingService { public const string Id = "interop.samples.GreetingService"; public const string UnaryMethodId = "Unary"; public const string ServerStreamingMethodId = "ServerStreaming"; public const string ClientStreamingMethodId = "ClientStreaming"; public const string DuplexStreamingMethodId = "DuplexStreaming"; public static readonly GreetingService.Descriptor DefaultDescriptor = CreateDescriptor(); public static GreetingService.Descriptor CreateDescriptor() { return new GreetingService.Descriptor(); } public static GreetingService.Descriptor CreateDescriptor(string alias) { return new GreetingService.Descriptor(alias); } public partial interface IUnaryProxy { IUnaryMethodCall<global::plexus.GreetingResponse> Unary(global::plexus.GreetingRequest request); } public partial interface IServerStreamingProxy { IServerStreamingMethodCall<global::plexus.GreetingResponse> ServerStreaming(global::plexus.GreetingRequest request); } public partial interface IClientStreamingProxy { IClientStreamingMethodCall<global::plexus.GreetingRequest, global::plexus.GreetingResponse> ClientStreaming(); } public partial interface IDuplexStreamingProxy { IDuplexStreamingMethodCall<global::plexus.GreetingRequest, global::plexus.GreetingResponse> DuplexStreaming(); } public partial interface IUnaryImpl { Task<global::plexus.GreetingResponse> Unary(global::plexus.GreetingRequest request, MethodCallContext context); } public partial interface IServerStreamingImpl { Task ServerStreaming(global::plexus.GreetingRequest request, IWritableChannel<global::plexus.GreetingResponse> responseStream, MethodCallContext context); } public partial interface IClientStreamingImpl { Task<global::plexus.GreetingResponse> ClientStreaming(IReadableChannel<global::plexus.GreetingRequest> requestStream, MethodCallContext context); } public partial interface IDuplexStreamingImpl { Task DuplexStreaming(IReadableChannel<global::plexus.GreetingRequest> requestStream, IWritableChannel<global::plexus.GreetingResponse> responseStream, MethodCallContext context); } public sealed partial class Descriptor { public UnaryMethod<global::plexus.GreetingRequest, global::plexus.GreetingResponse> UnaryMethod {get; private set; } public ServerStreamingMethod<global::plexus.GreetingRequest, global::plexus.GreetingResponse> ServerStreamingMethod {get; private set; } public ClientStreamingMethod<global::plexus.GreetingRequest, global::plexus.GreetingResponse> ClientStreamingMethod {get; private set; } public DuplexStreamingMethod<global::plexus.GreetingRequest, global::plexus.GreetingResponse> DuplexStreamingMethod {get; private set; } public Descriptor() { UnaryMethod = Method.Unary<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, UnaryMethodId); ServerStreamingMethod = Method.ServerStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, ServerStreamingMethodId); ClientStreamingMethod = Method.ClientStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, ClientStreamingMethodId); DuplexStreamingMethod = Method.DuplexStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, DuplexStreamingMethodId); } public Descriptor(string alias) { UnaryMethod = Method.Unary<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, alias, UnaryMethodId); ServerStreamingMethod = Method.ServerStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, alias, ServerStreamingMethodId); ClientStreamingMethod = Method.ClientStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, alias, ClientStreamingMethodId); DuplexStreamingMethod = Method.DuplexStreaming<global::plexus.GreetingRequest, global::plexus.GreetingResponse>(Id, alias, DuplexStreamingMethodId); } } } } #endregion Designer generated code