mirror of
https://github.com/google/pebble.git
synced 2025-08-18 12:26:33 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
27
third_party/nanopb/tests/cyclic_messages/cyclic.proto
vendored
Normal file
27
third_party/nanopb/tests/cyclic_messages/cyclic.proto
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Test structures with cyclic references.
|
||||
// These can only be handled in pointer/callback mode,
|
||||
// see associated .options files.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
message TreeNode
|
||||
{
|
||||
optional int32 leaf = 1;
|
||||
optional TreeNode left = 2;
|
||||
optional TreeNode right = 3;
|
||||
}
|
||||
|
||||
message Dictionary
|
||||
{
|
||||
repeated KeyValuePair dictItem = 1;
|
||||
}
|
||||
|
||||
message KeyValuePair
|
||||
{
|
||||
required string key = 1;
|
||||
optional string stringValue = 2;
|
||||
optional int32 intValue = 3;
|
||||
optional Dictionary dictValue = 4;
|
||||
optional TreeNode treeValue = 5;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue