PathPlanning.grpc.pb.cc 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Generated by the gRPC C++ plugin.
  2. // If you make any local change, they will be lost.
  3. // source: PathPlanning.proto
  4. #include "PathPlanning.pb.h"
  5. #include "PathPlanning.grpc.pb.h"
  6. #include <grpcpp/impl/codegen/async_stream.h>
  7. #include <grpcpp/impl/codegen/async_unary_call.h>
  8. #include <grpcpp/impl/codegen/channel_interface.h>
  9. #include <grpcpp/impl/codegen/client_unary_call.h>
  10. #include <grpcpp/impl/codegen/method_handler_impl.h>
  11. #include <grpcpp/impl/codegen/rpc_service_method.h>
  12. #include <grpcpp/impl/codegen/service_type.h>
  13. #include <grpcpp/impl/codegen/sync_stream.h>
  14. namespace pathplanning {
  15. static const char* CPathPlanning_method_names[] = {
  16. "/pathplanning.CPathPlanning/CalPath",
  17. };
  18. std::unique_ptr< CPathPlanning::Stub> CPathPlanning::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
  19. (void)options;
  20. std::unique_ptr< CPathPlanning::Stub> stub(new CPathPlanning::Stub(channel));
  21. return stub;
  22. }
  23. CPathPlanning::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
  24. : channel_(channel), rpcmethod_CalPath_(CPathPlanning_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
  25. {}
  26. ::grpc::Status CPathPlanning::Stub::CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) {
  27. return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CalPath_, context, request, response);
  28. }
  29. ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* CPathPlanning::Stub::AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  30. return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pathplanning::PathPlanningReply>::Create(channel_.get(), cq, rpcmethod_CalPath_, context, request, true);
  31. }
  32. ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* CPathPlanning::Stub::PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  33. return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pathplanning::PathPlanningReply>::Create(channel_.get(), cq, rpcmethod_CalPath_, context, request, false);
  34. }
  35. CPathPlanning::Service::Service() {
  36. AddMethod(new ::grpc::internal::RpcServiceMethod(
  37. CPathPlanning_method_names[0],
  38. ::grpc::internal::RpcMethod::NORMAL_RPC,
  39. new ::grpc::internal::RpcMethodHandler< CPathPlanning::Service, ::pathplanning::PathPlanningRequest, ::pathplanning::PathPlanningReply>(
  40. std::mem_fn(&CPathPlanning::Service::CalPath), this)));
  41. }
  42. CPathPlanning::Service::~Service() {
  43. }
  44. ::grpc::Status CPathPlanning::Service::CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) {
  45. (void) context;
  46. (void) request;
  47. (void) response;
  48. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  49. }
  50. } // namespace pathplanning