File: enum_testcase.proto

package info (click to toggle)
protozero 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,548 kB
  • sloc: cpp: 20,364; sh: 18; makefile: 14
file content (26 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
syntax = "proto2";

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;

}