46 bool do_one(std::string arg1)
override;
47 bool do_one_client_stream(std::vector<std::string> arg1)
override;
48 std::vector<bool> do_one_server_stream(std::string arg1)
override;
49 std::vector<bool> do_one_bidi_stream(std::vector<std::string> arg1)
override;
50 std::string do_two(
bool arg1)
override;
53 using StubType = GizmoService::StubInterface;
54 std::unique_ptr<StubType> stub_;
55 std::shared_ptr<grpc::Channel> channel_;
62 using service_type = GizmoService;
63 explicit GizmoServer(std::shared_ptr<ResourceManager> manager);
65 grpc::Status DoOne(grpc::ServerContext* context,
66 const DoOneRequest* request,
67 DoOneResponse* response)
override;
69 grpc::Status DoOneClientStream(grpc::ServerContext* context,
70 grpc::ServerReader<DoOneClientStreamRequest>* reader,
71 DoOneClientStreamResponse* response)
override;
73 grpc::Status DoOneServerStream(grpc::ServerContext* context,
74 const DoOneServerStreamRequest* request,
75 grpc::ServerWriter<DoOneServerStreamResponse>* writer)
override;
77 grpc::Status DoOneBiDiStream(
78 grpc::ServerContext* context,
79 grpc::ServerReaderWriter<DoOneBiDiStreamResponse, DoOneBiDiStreamRequest>* stream)
override;
81 grpc::Status DoTwo(grpc::ServerContext* context,
82 const DoTwoRequest* request,
83 DoTwoResponse* response)
override;