multifile2.proto 497 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto2";
  2. package subdir;
  3. import "multifile1.proto";
  4. message Callback2Message {
  5. required TestMessage tstmsg = 1;
  6. required SubMessage submsg = 2;
  7. }
  8. message SmallMessage {
  9. required bool dummy = 1;
  10. }
  11. message OneofMessage {
  12. oneof msgs {
  13. StaticMessage tstmsg = 1;
  14. SmallMessage msg2 = 2;
  15. }
  16. }
  17. message Enums {
  18. required SignedEnum senum = 1;
  19. required UnsignedEnum uenum = 2;
  20. }
  21. message SubdirMessage {
  22. required int32 foo = 1 [default = 15];
  23. }