You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.9 KiB

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ultracombos.printer.proto
// </auto-generated>
#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<global::UltraCombos.Utility.Image> __Marshaller_UltraCombos_Utility_Image = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Utility.Image.Parser.ParseFrom);
static readonly grpc::Marshaller<global::UltraCombos.Utility.Empty> __Marshaller_UltraCombos_Utility_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Utility.Empty.Parser.ParseFrom);
static readonly grpc::Method<global::UltraCombos.Utility.Image, global::UltraCombos.Utility.Empty> __Method_Print = new grpc::Method<global::UltraCombos.Utility.Image, global::UltraCombos.Utility.Empty>(
grpc::MethodType.Unary,
__ServiceName,
"Print",
__Marshaller_UltraCombos_Utility_Image,
__Marshaller_UltraCombos_Utility_Empty);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::UltraCombos.Utility.UltracombosPrinterReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of Printer</summary>
public abstract partial class PrinterBase
{
public virtual global::System.Threading.Tasks.Task<global::UltraCombos.Utility.Empty> Print(global::UltraCombos.Utility.Image request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for Printer</summary>
public partial class PrinterClient : grpc::ClientBase<PrinterClient>
{
/// <summary>Creates a new client for Printer</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public PrinterClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for Printer that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public PrinterClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected PrinterClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
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<global::UltraCombos.Utility.Empty> 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<global::UltraCombos.Utility.Empty> PrintAsync(global::UltraCombos.Utility.Image request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_Print, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override PrinterClient NewInstance(ClientBaseConfiguration configuration)
{
return new PrinterClient(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>
public static grpc::ServerServiceDefinition BindService(PrinterBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_Print, serviceImpl.Print).Build();
}
}
}
#endregion