+ void process(bool ok) final {
+ if (status == Status::INIT) {
+ service_->RequestDispatchValues(&context_, &reader_, cq_, cq_, this);
+ status = Status::CALL;
+ } else if (status == Status::CALL) {
+ reader_.Read(&request_, this);
+ status = Status::READ;
+ } else if (status == Status::READ && ok) {
+ (void) DispatchValue(&context_, request_, &response_);
+
+ reader_.Read(&request_, this);
+ } else if (status == Status::READ) {
+ response_.Clear();
+
+ status = Status::DONE;
+ } else if (status == Status::DONE) {
+ new DispatchValuesCallData(service_, cq_);
+ delete this;
+ } else {
+ ERROR("grpc: DispatchValuesCallData: invalid state");
+ }
+ }