2020-10-16 03:25:52 -04:00
|
|
|
syntax = "proto2";
|
2018-04-19 15:03:49 -04:00
|
|
|
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
|
|
|
|
|
|
|
package TestEnum;
|
|
|
|
|
|
|
|
enum Color {
|
|
|
|
BLACK = 0;
|
|
|
|
RED = 1;
|
|
|
|
GREEN = 2;
|
|
|
|
BLUE = 3;
|
|
|
|
MAX = 2147483646;
|
|
|
|
NEG = -1;
|
|
|
|
|
|
|
|
// Older versions (before 2.6.0) of the google protobuf compiler have a
|
|
|
|
// bug and don't allow the real minimum of -2147483648, so we are testing
|
|
|
|
// with this.
|
|
|
|
MIN = -2147483647;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Test {
|
|
|
|
|
|
|
|
required Color color = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|