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

#include "keyapis/ad/v1/keyapis_ad_system_v1.pb.h"
#include "keyapis/ad/v1/keyapis_ad_system_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 ad {
namespace v1 {

static const char* SystemService_method_names[] = {
  "/keyapis.ad.v1.SystemService/GetSystemStatus",
};

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

SystemService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
  : channel_(channel), rpcmethod_GetSystemStatus_(SystemService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
  {}

::grpc::Status SystemService::Stub::GetSystemStatus(::grpc::ClientContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest& request, ::keyapis::ad::v1::GetSystemStatusResponse* response) {
  return ::grpc::internal::BlockingUnaryCall< ::keyapis::ad::v1::GetSystemStatusRequest, ::keyapis::ad::v1::GetSystemStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSystemStatus_, context, request, response);
}

void SystemService::Stub::async::GetSystemStatus(::grpc::ClientContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest* request, ::keyapis::ad::v1::GetSystemStatusResponse* response, std::function<void(::grpc::Status)> f) {
  ::grpc::internal::CallbackUnaryCall< ::keyapis::ad::v1::GetSystemStatusRequest, ::keyapis::ad::v1::GetSystemStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSystemStatus_, context, request, response, std::move(f));
}

void SystemService::Stub::async::GetSystemStatus(::grpc::ClientContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest* request, ::keyapis::ad::v1::GetSystemStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
  ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSystemStatus_, context, request, response, reactor);
}

::grpc::ClientAsyncResponseReader< ::keyapis::ad::v1::GetSystemStatusResponse>* SystemService::Stub::PrepareAsyncGetSystemStatusRaw(::grpc::ClientContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest& request, ::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::keyapis::ad::v1::GetSystemStatusResponse, ::keyapis::ad::v1::GetSystemStatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSystemStatus_, context, request);
}

::grpc::ClientAsyncResponseReader< ::keyapis::ad::v1::GetSystemStatusResponse>* SystemService::Stub::AsyncGetSystemStatusRaw(::grpc::ClientContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest& request, ::grpc::CompletionQueue* cq) {
  auto* result =
    this->PrepareAsyncGetSystemStatusRaw(context, request, cq);
  result->StartCall();
  return result;
}

SystemService::Service::Service() {
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      SystemService_method_names[0],
      ::grpc::internal::RpcMethod::NORMAL_RPC,
      new ::grpc::internal::RpcMethodHandler< SystemService::Service, ::keyapis::ad::v1::GetSystemStatusRequest, ::keyapis::ad::v1::GetSystemStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
          [](SystemService::Service* service,
             ::grpc::ServerContext* ctx,
             const ::keyapis::ad::v1::GetSystemStatusRequest* req,
             ::keyapis::ad::v1::GetSystemStatusResponse* resp) {
               return service->GetSystemStatus(ctx, req, resp);
             }, this)));
}

SystemService::Service::~Service() {
}

::grpc::Status SystemService::Service::GetSystemStatus(::grpc::ServerContext* context, const ::keyapis::ad::v1::GetSystemStatusRequest* request, ::keyapis::ad::v1::GetSystemStatusResponse* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}


}  // namespace keyapis
}  // namespace ad
}  // namespace v1

