// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: keyapis/dial/v1/keyapis_dial_call_v1.proto

#include "keyapis/dial/v1/keyapis_dial_call_v1.pb.h"
#include "keyapis/dial/v1/keyapis_dial_call_v1.grpc.pb.h"

#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channel_interface.h>
#include <grpcpp/impl/codegen/client_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/message_allocator.h>
#include <grpcpp/impl/codegen/method_handler.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/server_callback_handlers.h>
#include <grpcpp/impl/codegen/server_context.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace keyapis {
namespace dial {
namespace v1 {

static const char* CallService_method_names[] = {
  "/keyapis.dial.v1.CallService/PostCall",
  "/keyapis.dial.v1.CallService/PostCallCancel",
};

std::unique_ptr< CallService::Stub> CallService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
  (void)options;
  std::unique_ptr< CallService::Stub> stub(new CallService::Stub(channel, options));
  return stub;
}

CallService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
  : channel_(channel), rpcmethod_PostCall_(CallService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
  , rpcmethod_PostCallCancel_(CallService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
  {}

::grpc::Status CallService::Stub::PostCall(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallRequest& request, ::keyapis::dial::v1::PostCallResponse* response) {
  return ::grpc::internal::BlockingUnaryCall< ::keyapis::dial::v1::PostCallRequest, ::keyapis::dial::v1::PostCallResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PostCall_, context, request, response);
}

void CallService::Stub::async::PostCall(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallRequest* request, ::keyapis::dial::v1::PostCallResponse* response, std::function<void(::grpc::Status)> f) {
  ::grpc::internal::CallbackUnaryCall< ::keyapis::dial::v1::PostCallRequest, ::keyapis::dial::v1::PostCallResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCall_, context, request, response, std::move(f));
}

void CallService::Stub::async::PostCall(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallRequest* request, ::keyapis::dial::v1::PostCallResponse* response, ::grpc::ClientUnaryReactor* reactor) {
  ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCall_, context, request, response, reactor);
}

::grpc::ClientAsyncResponseReader< ::keyapis::dial::v1::PostCallResponse>* CallService::Stub::PrepareAsyncPostCallRaw(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallRequest& request, ::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::keyapis::dial::v1::PostCallResponse, ::keyapis::dial::v1::PostCallRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PostCall_, context, request);
}

::grpc::ClientAsyncResponseReader< ::keyapis::dial::v1::PostCallResponse>* CallService::Stub::AsyncPostCallRaw(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallRequest& request, ::grpc::CompletionQueue* cq) {
  auto* result =
    this->PrepareAsyncPostCallRaw(context, request, cq);
  result->StartCall();
  return result;
}

::grpc::Status CallService::Stub::PostCallCancel(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallCancelRequest& request, ::keyapis::dial::v1::PostCallCancelResponse* response) {
  return ::grpc::internal::BlockingUnaryCall< ::keyapis::dial::v1::PostCallCancelRequest, ::keyapis::dial::v1::PostCallCancelResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PostCallCancel_, context, request, response);
}

void CallService::Stub::async::PostCallCancel(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallCancelRequest* request, ::keyapis::dial::v1::PostCallCancelResponse* response, std::function<void(::grpc::Status)> f) {
  ::grpc::internal::CallbackUnaryCall< ::keyapis::dial::v1::PostCallCancelRequest, ::keyapis::dial::v1::PostCallCancelResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCallCancel_, context, request, response, std::move(f));
}

void CallService::Stub::async::PostCallCancel(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallCancelRequest* request, ::keyapis::dial::v1::PostCallCancelResponse* response, ::grpc::ClientUnaryReactor* reactor) {
  ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCallCancel_, context, request, response, reactor);
}

::grpc::ClientAsyncResponseReader< ::keyapis::dial::v1::PostCallCancelResponse>* CallService::Stub::PrepareAsyncPostCallCancelRaw(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallCancelRequest& request, ::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::keyapis::dial::v1::PostCallCancelResponse, ::keyapis::dial::v1::PostCallCancelRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PostCallCancel_, context, request);
}

::grpc::ClientAsyncResponseReader< ::keyapis::dial::v1::PostCallCancelResponse>* CallService::Stub::AsyncPostCallCancelRaw(::grpc::ClientContext* context, const ::keyapis::dial::v1::PostCallCancelRequest& request, ::grpc::CompletionQueue* cq) {
  auto* result =
    this->PrepareAsyncPostCallCancelRaw(context, request, cq);
  result->StartCall();
  return result;
}

CallService::Service::Service() {
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      CallService_method_names[0],
      ::grpc::internal::RpcMethod::NORMAL_RPC,
      new ::grpc::internal::RpcMethodHandler< CallService::Service, ::keyapis::dial::v1::PostCallRequest, ::keyapis::dial::v1::PostCallResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
          [](CallService::Service* service,
             ::grpc::ServerContext* ctx,
             const ::keyapis::dial::v1::PostCallRequest* req,
             ::keyapis::dial::v1::PostCallResponse* resp) {
               return service->PostCall(ctx, req, resp);
             }, this)));
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      CallService_method_names[1],
      ::grpc::internal::RpcMethod::NORMAL_RPC,
      new ::grpc::internal::RpcMethodHandler< CallService::Service, ::keyapis::dial::v1::PostCallCancelRequest, ::keyapis::dial::v1::PostCallCancelResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
          [](CallService::Service* service,
             ::grpc::ServerContext* ctx,
             const ::keyapis::dial::v1::PostCallCancelRequest* req,
             ::keyapis::dial::v1::PostCallCancelResponse* resp) {
               return service->PostCallCancel(ctx, req, resp);
             }, this)));
}

CallService::Service::~Service() {
}

::grpc::Status CallService::Service::PostCall(::grpc::ServerContext* context, const ::keyapis::dial::v1::PostCallRequest* request, ::keyapis::dial::v1::PostCallResponse* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}

::grpc::Status CallService::Service::PostCallCancel(::grpc::ServerContext* context, const ::keyapis::dial::v1::PostCallCancelRequest* request, ::keyapis::dial::v1::PostCallCancelResponse* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}


}  // namespace keyapis
}  // namespace dial
}  // namespace v1

