OLD | NEW |
(Empty) | |
| 1 syntax = "proto2"; |
| 2 |
| 3 package remote_api; |
| 4 |
| 5 message Request { |
| 6 required string service_name = 2; |
| 7 required string method = 3; |
| 8 required bytes request = 4; |
| 9 optional string request_id = 5; |
| 10 } |
| 11 |
| 12 message ApplicationError { |
| 13 required int32 code = 1; |
| 14 required string detail = 2; |
| 15 } |
| 16 |
| 17 message RpcError { |
| 18 enum ErrorCode { |
| 19 UNKNOWN = 0; |
| 20 CALL_NOT_FOUND = 1; |
| 21 PARSE_ERROR = 2; |
| 22 SECURITY_VIOLATION = 3; |
| 23 OVER_QUOTA = 4; |
| 24 REQUEST_TOO_LARGE = 5; |
| 25 CAPABILITY_DISABLED = 6; |
| 26 FEATURE_DISABLED = 7; |
| 27 BAD_REQUEST = 8; |
| 28 RESPONSE_TOO_LARGE = 9; |
| 29 CANCELLED = 10; |
| 30 REPLAY_ERROR = 11; |
| 31 DEADLINE_EXCEEDED = 12; |
| 32 } |
| 33 required int32 code = 1; |
| 34 optional string detail = 2; |
| 35 } |
| 36 |
| 37 message Response { |
| 38 optional bytes response = 1; |
| 39 optional bytes exception = 2; |
| 40 optional ApplicationError application_error = 3; |
| 41 optional bytes java_exception = 4; |
| 42 optional RpcError rpc_error = 5; |
| 43 } |
OLD | NEW |