-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotocol.proto
More file actions
43 lines (30 loc) · 1.05 KB
/
protocol.proto
File metadata and controls
43 lines (30 loc) · 1.05 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax = "proto3";
message main {
//Buffer containing authentication information
bytes auth = 10;
// Device identity information
bytes deviceId = 11;
bytes deviceTypeName = 12;
// The receiver replaces its existing state with objAll
// obj objAll = 20;
// The receiver adds all values to the existing state. Creates or updates values depending on the situation. All containing objects/structs are created.
// obj objSync = 21;
// First, the receiver removes all VALUES that are PRESENT here, then it removes all empty objects/structs
// objBool objDelete = 22;
// RPC object for sending requests.
map <uint32, rpcCall> reqRpc = 41;
map <uint32, rpcCall> reqRpcOrdered = 42;
map <uint32, rpcCall> resRpc = 51;
repeated bytes events = 61;
repeated bytes eventsOrdered = 62;
uint32 code = 101;
repeated uint32 codes = 102;
string reason = 103;
}
message rpcCall {
bytes args = 1;
bytes returns = 2;
// is added at runtime
// enum method = 3;
bool isError = 4;
}