syntax = "proto3";

package rpc;

option go_package = "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc;rpc";

message Request {
    bytes Payload = 1;
}

message Response {
    bytes Payload = 1;
}


enum ChunkedDataType {
    Error = 0;
    EOF = 1;
    NewPart = 2;
    Data = 3;
}

message ChunkedData {
    ChunkedDataType Type = 1;
    bytes Data = 2;
}

message CodeError {
    string Code = 1;
    string Message = 2;
}