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