Lower required CMake version in example
[apps/agl-service-can-low-level.git] / tests / cyclic_messages / cyclic.proto
1 // Test structures with cyclic references.
2 // These can only be handled in pointer/callback mode,
3 // see associated .options files.
4
5 message TreeNode
6 {
7     optional int32 leaf = 1;
8     optional TreeNode left = 2;
9     optional TreeNode right = 3;
10 }
11
12 message Dictionary
13 {
14     repeated KeyValuePair dictItem = 1;
15 }
16
17 message KeyValuePair
18 {
19     required string key = 1;
20     optional string stringValue = 2;
21     optional int32 intValue = 3;
22     optional Dictionary dictValue = 4;
23     optional TreeNode treeValue = 5;
24 }
25