summaryrefslogtreecommitdiff
path: root/src/main/java/com/orbekk/protobuf/Data.proto
blob: b018de77f4fe8fabf76db3a8ea1501a9dc4f6824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.orbekk.protobuf;

// Next tag: 6
message Request {
    optional string full_service_name = 1;
    optional string method_name = 2;
    optional bytes request_proto = 3;
    optional int64 request_id = 4;
}

// Next tag: 8
message Response {
    optional bytes response_proto = 1;
    enum RpcError {
        UNKNOWN_SERVICE = 0;
        UNKNOWN_METHOD = 1;
        CANCELED = 2;
        INVALID_PROTOBUF = 3;
    };
    optional RpcError error = 2;
    optional int64 request_id = 5;
    
    // Rpc status
    optional bool hasFailed = 4;
    optional bool canceled = 6;
    optional bool done = 7 [default = true];
    optional string error_text = 3;
}