text: //
  // Created by Ivan Kishchenko on 04.07.2021.
  //
  
  #ifndef ROVER_GREETERSERVICE_H
  #define ROVER_GREETERSERVICE_H
  
  #include <grpcpp/grpcpp.h>
  #include "helloworld.pb.h"
  #include "helloworld.grpc.pb.h"
  
  using grpc::Server;
  using grpc::ServerBuilder;
  using grpc::ServerContext;
  using grpc::Status;
  using helloworld::Greeter;
  using helloworld::HelloReply;
  using helloworld::HelloRequest;
  
  class GreeterService : public helloworld::Greeter::Service {
  public:
      Status SayHello(ServerContext* context, const HelloRequest* request,
                      HelloReply* reply) override {
          std::string prefix("Hello ");
          reply->set_message(prefix + request->name());
          return Status::OK;
      }
  };
  
  #endif //ROVER_GREETERSERVICE_H
  