-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcooking.proto
45 lines (35 loc) · 932 Bytes
/
cooking.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
package zns;
message Ingredient {
optional double amount_low = 1;
optional double amount_high = 2;
optional string unit = 3;
optional string name = 4;
optional string prep_note = 5;
optional uint64 iden = 6;
}
message Recipe {
optional string name = 1;
optional int64 prep_time_min = 2;
optional int64 cook_time_min = 3;
optional double serves_low = 4;
optional double serves_high = 5;
optional string serves_unit = 6;
repeated string categories = 7;
repeated Ingredient ingredients = 8;
repeated string instructions = 9;
optional uint64 iden = 10;
}
message IngredientList {
repeated Ingredient entries = 1;
}
message RecipeList {
repeated Recipe entries = 1;
}
message RecipeMetadata {
optional uint64 iden = 1;
repeated string ingredient_vocab = 2;
repeated string category_vocab = 3;
}
message CookbookMetadata {
repeated RecipeMetadata recipes = 1;
}