-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserialization.proto
44 lines (34 loc) · 947 Bytes
/
serialization.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
syntax = "proto2";
package serialization;
option java_package = "org.bverify.serialization";
option java_outer_classname = "BverifySerialization";
message NumericalAttributes {
repeated int32 attributes = 1;
}
message CategoricalAttributes {
required bytes attributes = 1;
required int32 size = 2;
}
message RecordAggregation {
required NumericalAttributes numericalAttributes = 1;
required CategoricalAttributes categoricalAttributes = 2;
required bytes hash = 3;
}
message Record {
required NumericalAttributes numericalAttributes = 1;
required CategoricalAttributes categoricalAttributes = 2;
required int64 dateCreated = 3;
// unfortuantely this
// has to be hard coded in for now
// since it is required to figure out
// which class of record it is
enum Type {
SIMPLE_RECORD = 0;
DEPOSIT = 1;
WITHDRAWAL = 2;
TRANSFER = 3;
OTHER = 4;
}
required Type recordType = 4;
optional bytes otherData = 5;
}