diff options
Diffstat (limited to 'src/main/java/com/orbekk/protobuf/Data.proto')
-rw-r--r-- | src/main/java/com/orbekk/protobuf/Data.proto | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/com/orbekk/protobuf/Data.proto b/src/main/java/com/orbekk/protobuf/Data.proto new file mode 100644 index 0000000..168ef29 --- /dev/null +++ b/src/main/java/com/orbekk/protobuf/Data.proto @@ -0,0 +1,27 @@ +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; + }; + 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; +} |