fixed_count.proto 491 B

123456789101112131415161718192021
  1. /* Test nanopb fixed count option. */
  2. syntax = "proto2";
  3. import "nanopb.proto";
  4. message Message1
  5. {
  6. repeated int32 data = 1 [(nanopb).max_count = 3, (nanopb).fixed_count = true];
  7. }
  8. message Message2
  9. {
  10. repeated Message1 data = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
  11. }
  12. message Message3
  13. {
  14. repeated Message2 data1 = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
  15. repeated Message2 data2 = 2 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
  16. }