Warning, /frameworks/syntax-highlighting/autotests/input/highlight.proto is written in an unsupported language. File is not indexed.
0001 syntax = "proto2";
0002
0003 package example;
0004
0005 message Object {
0006 required string name = 1;
0007 required int32 identifier = 2;
0008 optional string address = 3;
0009
0010 enum ObjectType {
0011 LOCAL = 0;
0012 REMOTE = 1;
0013 NEITHER = 2;
0014 }
0015
0016 message ObjectData {
0017 required string number = 1;
0018 optional ObjectType type = 2 [default = NEITHER];
0019 }
0020
0021 repeated ObjectData dataList = 4;
0022 }
0023
0024 message ObjectList {
0025 repeated Object object = 1;
0026 }