// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: ultracombos.printer.proto // #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace UltraCombos.Utility { public static partial class Printer { static readonly string __ServiceName = "UltraCombos.Utility.Printer"; static readonly grpc::Marshaller __Marshaller_UltraCombos_Utility_Image = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Utility.Image.Parser.ParseFrom); static readonly grpc::Marshaller __Marshaller_UltraCombos_Utility_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Utility.Empty.Parser.ParseFrom); static readonly grpc::Method __Method_Print = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Print", __Marshaller_UltraCombos_Utility_Image, __Marshaller_UltraCombos_Utility_Empty); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::UltraCombos.Utility.UltracombosPrinterReflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of Printer public abstract partial class PrinterBase { public virtual global::System.Threading.Tasks.Task Print(global::UltraCombos.Utility.Image request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for Printer public partial class PrinterClient : grpc::ClientBase { /// Creates a new client for Printer /// The channel to use to make remote calls. public PrinterClient(grpc::Channel channel) : base(channel) { } /// Creates a new client for Printer that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. public PrinterClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. protected PrinterClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. protected PrinterClient(ClientBaseConfiguration configuration) : base(configuration) { } public virtual global::UltraCombos.Utility.Empty Print(global::UltraCombos.Utility.Image request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Print(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual global::UltraCombos.Utility.Empty Print(global::UltraCombos.Utility.Image request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Print, null, options, request); } public virtual grpc::AsyncUnaryCall PrintAsync(global::UltraCombos.Utility.Image request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PrintAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } public virtual grpc::AsyncUnaryCall PrintAsync(global::UltraCombos.Utility.Image request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Print, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. protected override PrinterClient NewInstance(ClientBaseConfiguration configuration) { return new PrinterClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. public static grpc::ServerServiceDefinition BindService(PrinterBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Print, serviceImpl.Print).Build(); } } } #endregion