mirror of
https://github.com/google/pebble.git
synced 2025-03-20 11:01:20 +00:00
26 lines
375 B
Protocol Buffer
26 lines
375 B
Protocol Buffer
|
syntax = "proto2"; // must be "proto2", proto3 requires enums starting with 0.
|
||
|
|
||
|
enum Enum
|
||
|
{
|
||
|
enumerand = 1; // must be non-zero
|
||
|
}
|
||
|
|
||
|
message Outer1
|
||
|
{
|
||
|
message Inner
|
||
|
{
|
||
|
optional Enum enum1 = 1; // can also be "required"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
message Outer2
|
||
|
{
|
||
|
message Inner
|
||
|
{
|
||
|
// further trouble of this is also named "enum1"
|
||
|
optional Enum enum2 = 1; // can also be "required"
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|