xref: /Universal-ctags/Units/parser-protobuf.r/syntax-proto3.d/input.proto (revision 13522841e1c87a92fc8902d8f98c564d5edc1c77)
1// Taken from https://developers.google.com/protocol-buffers/docs/reference/proto3-spec
2syntax = "proto3";
3import public "other.proto";
4option java_package = "com.example.foo";
5enum EnumAllowingAlias {
6  option allow_alias = true;
7  UNKNOWN = 0;
8  STARTED = 1;
9  RUNNING = 2 [(custom_option) = "hello world"];
10}
11message outer {
12  option (my_option).a = true;
13  message inner {   // Level 2
14    int64 ival = 1;
15  }
16  repeated inner inner_message = 2;
17  EnumAllowingAlias enum_field =3;
18  map<int32, string> my_map = 4;
19}
20