Stephan Herhut | 3f026d3 | 2017-08-07 14:58:13 +0200 | [diff] [blame] | 1 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| 2 | // // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // // BSD-style license that can be found in the LICENSE file. |
| 4 | syntax = "proto2"; |
| 5 | package enumproto; |
| 6 | |
| 7 | option java_outer_classname = "GeneratedEnumProto"; |
| 8 | |
| 9 | message Enum { |
| 10 | required int32 id = 1; |
| 11 | enum DaEnum { |
| 12 | UNKOWN = 0; |
| 13 | KNOWN = 1; |
| 14 | BELIEF = 2; |
| 15 | } |
| 16 | optional DaEnum enum = 2; |
| 17 | enum OtherEnum { |
| 18 | BLACK = 0; |
| 19 | RED = 1; |
| 20 | GREEN = 2; |
| 21 | OKALALALA = 3; |
| 22 | } |
| 23 | optional OtherEnum other = 3; |
| 24 | } |
| 25 | |