~bigbes/tarantool

tarantool-protobuf

ref: a5ba47c793d7f1177e823122c06ce8c290fa4603 tarantool-protobuf/test/proto/c_nested.proto -rw-r--r-- 514 bytes
a5ba47c7 — Eugene Blikh docs: document int64_as_number flag (5y9) 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
syntax = "proto3";

package c_nested;

// 5-level chain of singular sub-messages. Used by the bd-hwe (ra6 3d)
// C-runtime tests to verify recursion across non-trivial depth. Each
// level carries an int32 so the encoded body at each level is
// non-empty (catches off-by-one bugs in the length-prefix path).
message L1 { L2 next = 1; int32 v = 2; }
message L2 { L3 next = 1; int32 v = 2; }
message L3 { L4 next = 1; int32 v = 2; }
message L4 { L5 next = 1; int32 v = 2; }
message L5 {              int32 v = 2; }