-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeline_sensor_data.proto
More file actions
69 lines (59 loc) · 1.57 KB
/
Copy pathtimeline_sensor_data.proto
File metadata and controls
69 lines (59 loc) · 1.57 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
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
//package hello;
option java_package = "com.hello.alg.api";
option java_outer_classname = "TimelineSensorDataProtos";
message TrackerMotion {
required int64 timestamp = 1;
required int32 svm_mag = 2;
required int32 on_duration = 3;
optional int64 bitmask = 4;
optional int32 tz_offset = 5;
}
enum EventType {
IN_BED = 1;
SLEEP = 2;
WAKE_UP = 3;
OUT_OF_BED = 4;
}
message Event {
optional EventType event_type = 1;
optional int64 timestamp = 2;
optional int32 tz_offset = 3;
}
enum HardwareType {
SENSE_1 = 1;
SENSE_1p5 = 2;
}
enum DeviceColor {
COTTON = 1;
CHARCOAL = 2;
}
enum Gender {
OTHER = 1;
MALE = 2;
FEMALE = 3;
}
message UserInfo {
optional int32 weight_grams = 1;
optional int32 height_cm = 2;
optional string date_of_birth = 3;
optional Gender gender = 4;
}
message OneDaysSensorData {
optional int64 account_id = 1;
optional string date_of_night = 2;
repeated TrackerMotion my_motion = 3;
repeated TrackerMotion partner_motion = 4;
repeated int64 sense_timestamps = 5;
repeated int32 sense_tz_offsets = 6;
repeated float light_lux = 7;
repeated float waves = 8;
repeated float audio_peak_disturbance_db = 9;
repeated float audio_num_disturbances_db = 10;
repeated float audio_peak_energy = 11;
optional UserInfo user_info = 21;
repeated Event timeline_feedback = 22;
optional HardwareType hardware_type = 23;
optional DeviceColor device_color = 24;
optional string sunrise_time = 25;
optional string sunset_time = 26;
}