syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.ninetech.cloud.grpc";
option java_outer_classname = "BitAgentWorker";

service ConnectService {
  rpc ReversalCall(stream ReversalResponse) returns (stream ReversalRequest){}
}

message ReversalRequest {
  string id = 1;
  string body = 2;
}

message ReversalResponse {
  string requestId = 1;
  int32 type = 2; // 0-start, 1-data, 2-end ,-1-ping
  int32 partitionIndex = 3;
  string partitionData = 4;
}