



#pragma warning disable 0414, 1591
#region Designer generated code

using grpc = global::Grpc.Core;

namespace Rpcscanning {
  public static partial class RpcScanner
  {
    static readonly string __ServiceName = "rpcscanning.RpcScanner";

    static readonly grpc::Marshaller<global::Rpcscanning.ScannerConfiguration> __Marshaller_rpcscanning_ScannerConfiguration = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Rpcscanning.ScannerConfiguration.Parser.ParseFrom);
    static readonly grpc::Marshaller<global::Rpcscanning.Empty> __Marshaller_rpcscanning_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Rpcscanning.Empty.Parser.ParseFrom);
    static readonly grpc::Marshaller<global::Rpcscanning.RpcMessage> __Marshaller_rpcscanning_RpcMessage = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Rpcscanning.RpcMessage.Parser.ParseFrom);
    static readonly grpc::Marshaller<global::Rpcscanning.ScannerModelNames> __Marshaller_rpcscanning_ScannerModelNames = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Rpcscanning.ScannerModelNames.Parser.ParseFrom);
    static readonly grpc::Marshaller<global::Rpcscanning.Hwnd> __Marshaller_rpcscanning_Hwnd = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Rpcscanning.Hwnd.Parser.ParseFrom);

    static readonly grpc::Method<global::Rpcscanning.ScannerConfiguration, global::Rpcscanning.Empty> __Method_InitializeScanner = new grpc::Method<global::Rpcscanning.ScannerConfiguration, global::Rpcscanning.Empty>(
        grpc::MethodType.Unary,
        __ServiceName,
        "InitializeScanner",
        __Marshaller_rpcscanning_ScannerConfiguration,
        __Marshaller_rpcscanning_Empty);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.RpcMessage> __Method_Scan = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.RpcMessage>(
        grpc::MethodType.ServerStreaming,
        __ServiceName,
        "Scan",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_RpcMessage);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty> __Method_StopScanning = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty>(
        grpc::MethodType.Unary,
        __ServiceName,
        "StopScanning",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_Empty);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty> __Method_ReleaseScanner = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty>(
        grpc::MethodType.Unary,
        __ServiceName,
        "ReleaseScanner",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_Empty);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty> __Method_BatchAborted = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.Empty>(
        grpc::MethodType.ServerStreaming,
        __ServiceName,
        "BatchAborted",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_Empty);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.ScannerModelNames> __Method_GetConnectedScanners = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.ScannerModelNames>(
        grpc::MethodType.Unary,
        __ServiceName,
        "GetConnectedScanners",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_ScannerModelNames);

    static readonly grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.ScannerModelNames> __Method_GetInstalledScanners = new grpc::Method<global::Rpcscanning.Empty, global::Rpcscanning.ScannerModelNames>(
        grpc::MethodType.Unary,
        __ServiceName,
        "GetInstalledScanners",
        __Marshaller_rpcscanning_Empty,
        __Marshaller_rpcscanning_ScannerModelNames);

    static readonly grpc::Method<global::Rpcscanning.Hwnd, global::Rpcscanning.Empty> __Method_ConfigureViaGui = new grpc::Method<global::Rpcscanning.Hwnd, global::Rpcscanning.Empty>(
        grpc::MethodType.Unary,
        __ServiceName,
        "ConfigureViaGui",
        __Marshaller_rpcscanning_Hwnd,
        __Marshaller_rpcscanning_Empty);

    
    public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
    {
      get { return global::Rpcscanning.RpcscannerReflection.Descriptor.Services[0]; }
    }

    
    public abstract partial class RpcScannerBase
    {
      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.Empty> InitializeScanner(global::Rpcscanning.ScannerConfiguration request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      
      
      
      
      
      
      
      public virtual global::System.Threading.Tasks.Task Scan(global::Rpcscanning.Empty request, grpc::IServerStreamWriter<global::Rpcscanning.RpcMessage> responseStream, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.Empty> StopScanning(global::Rpcscanning.Empty request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.Empty> ReleaseScanner(global::Rpcscanning.Empty request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      
      
      
      
      
      
      
      public virtual global::System.Threading.Tasks.Task BatchAborted(global::Rpcscanning.Empty request, grpc::IServerStreamWriter<global::Rpcscanning.Empty> responseStream, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      
      
      
      
      
      
      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.ScannerModelNames> GetConnectedScanners(global::Rpcscanning.Empty request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.ScannerModelNames> GetInstalledScanners(global::Rpcscanning.Empty request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

      public virtual global::System.Threading.Tasks.Task<global::Rpcscanning.Empty> ConfigureViaGui(global::Rpcscanning.Hwnd request, grpc::ServerCallContext context)
      {
        throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
      }

    }

    
    public partial class RpcScannerClient : grpc::ClientBase<RpcScannerClient>
    {
      
      
      public RpcScannerClient(grpc::Channel channel) : base(channel)
      {
      }
      
      
      public RpcScannerClient(grpc::CallInvoker callInvoker) : base(callInvoker)
      {
      }
      
      protected RpcScannerClient() : base()
      {
      }
      
      
      protected RpcScannerClient(ClientBaseConfiguration configuration) : base(configuration)
      {
      }

      public virtual global::Rpcscanning.Empty InitializeScanner(global::Rpcscanning.ScannerConfiguration request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return InitializeScanner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual global::Rpcscanning.Empty InitializeScanner(global::Rpcscanning.ScannerConfiguration request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_InitializeScanner, null, options, request);
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> InitializeScannerAsync(global::Rpcscanning.ScannerConfiguration request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return InitializeScannerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> InitializeScannerAsync(global::Rpcscanning.ScannerConfiguration request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_InitializeScanner, null, options, request);
      }
      
      
      
      
      
      
      
      
      public virtual grpc::AsyncServerStreamingCall<global::Rpcscanning.RpcMessage> Scan(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return Scan(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      
      
      
      
      
      
      public virtual grpc::AsyncServerStreamingCall<global::Rpcscanning.RpcMessage> Scan(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncServerStreamingCall(__Method_Scan, null, options, request);
      }
      public virtual global::Rpcscanning.Empty StopScanning(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return StopScanning(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual global::Rpcscanning.Empty StopScanning(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_StopScanning, null, options, request);
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> StopScanningAsync(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return StopScanningAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> StopScanningAsync(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_StopScanning, null, options, request);
      }
      public virtual global::Rpcscanning.Empty ReleaseScanner(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return ReleaseScanner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual global::Rpcscanning.Empty ReleaseScanner(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_ReleaseScanner, null, options, request);
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> ReleaseScannerAsync(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return ReleaseScannerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> ReleaseScannerAsync(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_ReleaseScanner, null, options, request);
      }
      
      
      
      
      
      
      
      
      public virtual grpc::AsyncServerStreamingCall<global::Rpcscanning.Empty> BatchAborted(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return BatchAborted(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      
      
      
      
      
      
      public virtual grpc::AsyncServerStreamingCall<global::Rpcscanning.Empty> BatchAborted(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncServerStreamingCall(__Method_BatchAborted, null, options, request);
      }
      
      
      
      
      
      
      
      
      public virtual global::Rpcscanning.ScannerModelNames GetConnectedScanners(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return GetConnectedScanners(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      
      
      
      
      
      
      public virtual global::Rpcscanning.ScannerModelNames GetConnectedScanners(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_GetConnectedScanners, null, options, request);
      }
      
      
      
      
      
      
      
      
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.ScannerModelNames> GetConnectedScannersAsync(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return GetConnectedScannersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      
      
      
      
      
      
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.ScannerModelNames> GetConnectedScannersAsync(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_GetConnectedScanners, null, options, request);
      }
      public virtual global::Rpcscanning.ScannerModelNames GetInstalledScanners(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return GetInstalledScanners(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual global::Rpcscanning.ScannerModelNames GetInstalledScanners(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_GetInstalledScanners, null, options, request);
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.ScannerModelNames> GetInstalledScannersAsync(global::Rpcscanning.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return GetInstalledScannersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.ScannerModelNames> GetInstalledScannersAsync(global::Rpcscanning.Empty request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_GetInstalledScanners, null, options, request);
      }
      public virtual global::Rpcscanning.Empty ConfigureViaGui(global::Rpcscanning.Hwnd request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return ConfigureViaGui(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual global::Rpcscanning.Empty ConfigureViaGui(global::Rpcscanning.Hwnd request, grpc::CallOptions options)
      {
        return CallInvoker.BlockingUnaryCall(__Method_ConfigureViaGui, null, options, request);
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> ConfigureViaGuiAsync(global::Rpcscanning.Hwnd request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
      {
        return ConfigureViaGuiAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
      }
      public virtual grpc::AsyncUnaryCall<global::Rpcscanning.Empty> ConfigureViaGuiAsync(global::Rpcscanning.Hwnd request, grpc::CallOptions options)
      {
        return CallInvoker.AsyncUnaryCall(__Method_ConfigureViaGui, null, options, request);
      }
      
      protected override RpcScannerClient NewInstance(ClientBaseConfiguration configuration)
      {
        return new RpcScannerClient(configuration);
      }
    }

    
    
    public static grpc::ServerServiceDefinition BindService(RpcScannerBase serviceImpl)
    {
      return grpc::ServerServiceDefinition.CreateBuilder()
          .AddMethod(__Method_InitializeScanner, serviceImpl.InitializeScanner)
          .AddMethod(__Method_Scan, serviceImpl.Scan)
          .AddMethod(__Method_StopScanning, serviceImpl.StopScanning)
          .AddMethod(__Method_ReleaseScanner, serviceImpl.ReleaseScanner)
          .AddMethod(__Method_BatchAborted, serviceImpl.BatchAborted)
          .AddMethod(__Method_GetConnectedScanners, serviceImpl.GetConnectedScanners)
          .AddMethod(__Method_GetInstalledScanners, serviceImpl.GetInstalledScanners)
          .AddMethod(__Method_ConfigureViaGui, serviceImpl.ConfigureViaGui).Build();
    }

    
    
    
    
    public static void BindService(grpc::ServiceBinderBase serviceBinder, RpcScannerBase serviceImpl)
    {
      serviceBinder.AddMethod(__Method_InitializeScanner, serviceImpl.InitializeScanner);
      serviceBinder.AddMethod(__Method_Scan, serviceImpl.Scan);
      serviceBinder.AddMethod(__Method_StopScanning, serviceImpl.StopScanning);
      serviceBinder.AddMethod(__Method_ReleaseScanner, serviceImpl.ReleaseScanner);
      serviceBinder.AddMethod(__Method_BatchAborted, serviceImpl.BatchAborted);
      serviceBinder.AddMethod(__Method_GetConnectedScanners, serviceImpl.GetConnectedScanners);
      serviceBinder.AddMethod(__Method_GetInstalledScanners, serviceImpl.GetInstalledScanners);
      serviceBinder.AddMethod(__Method_ConfigureViaGui, serviceImpl.ConfigureViaGui);
    }

  }
}
#endregion

