-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrpc.proto
73 lines (55 loc) · 1.11 KB
/
rpc.proto
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
syntax = "proto3";
package Holoholo.Rpc;
import public "holoholo_shared.proto";
import public "remaining.proto";
message MapFieldEntry {
Holoholo.Rpc.Method key = 1;
bytes value = 2;
}
enum Direction {
UNKNOWN = 0;
RESPONSE = 1;
REQUEST = 2;
}
message Thing {
bytes start = 1;
uint64 timestamp = 2;
bytes end = 3;
}
message RpcRequestEnvelopeProto {
message AuthInfo {
string provider = 1;
JWT token = 2;
message JWT {
string contents = 1;
}
}
Direction direction = 1;
uint64 request_id = 3;
repeated MapFieldEntry parameter = 4;
bytes footer = 6;
double lat = 7;
double long = 8;
double altitude = 9;
AuthInfo auth = 10;
Thing thing = 11;
int32 unknown12 = 12;
}
message RpcResponseEnvelopeProto {
Direction direction = 1;
uint64 response_id = 2;
string api_url = 3;
bytes footer = 6;
Unknown7 unknown7 = 7;
double lat = 8;
double long = 9;
double altitude = 10;
Thing thing = 11;
int32 unknown12 = 12;
repeated bytes returns = 100;
message Unknown7 {
bytes unknown71 = 1;
int64 unknown72 = 2;
bytes unknown73 = 3;
}
}