test.proto 318 B

12345678910111213141516171819
  1. syntax = "proto3";
  2. import "nanopb.proto";
  3. message MyMessage
  4. {
  5. SubMessage submessage = 1 [(nanopb).proto3_singular_msgs = true];
  6. }
  7. message SubMessage
  8. {
  9. string somestring = 1 [(nanopb).type = FT_POINTER];
  10. SubMessage2 submsg2 = 2 [(nanopb).type = FT_POINTER];
  11. }
  12. message SubMessage2
  13. {
  14. uint32 foo = 1;
  15. }