enummessages.proto 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. syntax = "proto3";
  2. package qtprotobufnamespace.tests;
  3. message SimpleEnumMessage {
  4. enum LocalEnum {
  5. LOCAL_ENUM_VALUE0 = 0;
  6. LOCAL_ENUM_VALUE1 = 1;
  7. LOCAL_ENUM_VALUE2 = 2;
  8. LOCAL_ENUM_VALUE3 = 3;
  9. }
  10. LocalEnum localEnum = 1;
  11. }
  12. message RepeatedEnumMessage {
  13. enum LocalEnum {
  14. LOCAL_ENUM_VALUE0 = 0;
  15. LOCAL_ENUM_VALUE1 = 1;
  16. LOCAL_ENUM_VALUE2 = 2;
  17. LOCAL_ENUM_VALUE3 = 3;
  18. }
  19. repeated LocalEnum localEnumList = 1;
  20. }
  21. message SimpleFileEnumMessage {
  22. TestEnum globalEnum = 1;
  23. repeated TestEnum globalEnumList = 2;
  24. }
  25. message StepChildEnumMessage {
  26. SimpleEnumMessage.LocalEnum localStepChildEnum = 1;
  27. repeated SimpleEnumMessage.LocalEnum localStepChildList = 2;
  28. }
  29. enum TestEnum {
  30. TEST_ENUM_VALUE0 = 0;
  31. TEST_ENUM_VALUE1 = 1;
  32. TEST_ENUM_VALUE2 = 2;
  33. TEST_ENUM_VALUE3 = 4;
  34. TEST_ENUM_VALUE4 = 3;
  35. }
  36. enum TestEnumSecondInFile {
  37. TEST_ENUM_SIF_VALUE0 = 0;
  38. TEST_ENUM_SIF_VALUE1 = 1;
  39. TEST_ENUM_SIF_VALUE2 = 2;
  40. }