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

#include "keyapis/omnichat/v1/keyapis_omnichat_credentials_v1.pb.h"
#include "keyapis/omnichat/v1/keyapis_omnichat_credentials_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 omnichat {
namespace v1 {

static const char* CredentialsService_method_names[] = {
  "/keyapis.omnichat.v1.CredentialsService/PostCredentials",
};

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

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

::grpc::Status CredentialsService::Stub::PostCredentials(::grpc::ClientContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest& request, ::keyapis::omnichat::v1::PostCredentialsResponse* response) {
  return ::grpc::internal::BlockingUnaryCall< ::keyapis::omnichat::v1::PostCredentialsRequest, ::keyapis::omnichat::v1::PostCredentialsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PostCredentials_, context, request, response);
}

void CredentialsService::Stub::async::PostCredentials(::grpc::ClientContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest* request, ::keyapis::omnichat::v1::PostCredentialsResponse* response, std::function<void(::grpc::Status)> f) {
  ::grpc::internal::CallbackUnaryCall< ::keyapis::omnichat::v1::PostCredentialsRequest, ::keyapis::omnichat::v1::PostCredentialsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCredentials_, context, request, response, std::move(f));
}

void CredentialsService::Stub::async::PostCredentials(::grpc::ClientContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest* request, ::keyapis::omnichat::v1::PostCredentialsResponse* response, ::grpc::ClientUnaryReactor* reactor) {
  ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PostCredentials_, context, request, response, reactor);
}

::grpc::ClientAsyncResponseReader< ::keyapis::omnichat::v1::PostCredentialsResponse>* CredentialsService::Stub::PrepareAsyncPostCredentialsRaw(::grpc::ClientContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest& request, ::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::keyapis::omnichat::v1::PostCredentialsResponse, ::keyapis::omnichat::v1::PostCredentialsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PostCredentials_, context, request);
}

::grpc::ClientAsyncResponseReader< ::keyapis::omnichat::v1::PostCredentialsResponse>* CredentialsService::Stub::AsyncPostCredentialsRaw(::grpc::ClientContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest& request, ::grpc::CompletionQueue* cq) {
  auto* result =
    this->PrepareAsyncPostCredentialsRaw(context, request, cq);
  result->StartCall();
  return result;
}

CredentialsService::Service::Service() {
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      CredentialsService_method_names[0],
      ::grpc::internal::RpcMethod::NORMAL_RPC,
      new ::grpc::internal::RpcMethodHandler< CredentialsService::Service, ::keyapis::omnichat::v1::PostCredentialsRequest, ::keyapis::omnichat::v1::PostCredentialsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
          [](CredentialsService::Service* service,
             ::grpc::ServerContext* ctx,
             const ::keyapis::omnichat::v1::PostCredentialsRequest* req,
             ::keyapis::omnichat::v1::PostCredentialsResponse* resp) {
               return service->PostCredentials(ctx, req, resp);
             }, this)));
}

CredentialsService::Service::~Service() {
}

::grpc::Status CredentialsService::Service::PostCredentials(::grpc::ServerContext* context, const ::keyapis::omnichat::v1::PostCredentialsRequest* request, ::keyapis::omnichat::v1::PostCredentialsResponse* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}


}  // namespace keyapis
}  // namespace omnichat
}  // namespace v1

