enums.proto 238 B

123456789101112131415161718
  1. syntax = "proto2";
  2. enum SignedEnum {
  3. SE_MIN = -1;
  4. SE_MAX = 255;
  5. }
  6. enum UnsignedEnum {
  7. UE_MAX = 65536;
  8. }
  9. message SignedMsg {
  10. required SignedEnum value = 1;
  11. }
  12. message UnsignedMsg {
  13. required UnsignedEnum value = 1;
  14. }