uenum.proto 362 B

12345678910111213141516171819202122232425262728
  1. syntax = "proto2";
  2. enum my_enum {
  3. E0 = 0;
  4. E240 = 240;
  5. E1 = -1;
  6. }
  7. enum my_uenum {
  8. U0 = 0;
  9. U240 = 240;
  10. }
  11. message my_message_regular {
  12. required my_enum MyEnum = 1;
  13. required my_uenum MyUEnum = 2;
  14. }
  15. message my_message_oneof {
  16. required uint32 Data1 = 1;
  17. oneof Data {
  18. bool null = 2;
  19. my_enum MyEnum = 3;
  20. my_uenum MyUEnum = 4;
  21. }
  22. }