~bigbes/tarantool

tarantool-protobuf

ref: 3235f34af486e3ef0043f8cb9d9230e29b919980 tarantool-protobuf/test/proto/c_nested.proto -rw-r--r-- 514 bytes
3235f34a — Eugene Blikh c_runtime: proto2 — required, defaults, groups, extensions (ra6 3i) 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; }