github.com/ovsinc/prototool@v1.3.0/internal/cmd/testdata/format/proto2/foo/foo_proto2.proto (about) 1 // foo 2 3 // bar 4 5 syntax = "proto2"; // inline comment1 6 7 // baz 8 9 // comment3 10 package foo; // inline comment3 11 12 // bat 13 // ban 14 15 // comment2 16 import weak "foo/bar/bar_proto2.proto"; // inline comment2 17 18 19 20 // comment11 21 option java_multiple_files = true; //inline comment11 22 // comment12 23 option java_package = "com.foo"; // inline comment23 24 // comment4 25 option go_package = "foopb"; // inline comment4 26 // comment5 27 option java_outer_classname = "FooProto2Proto"; // inline comment5 28 // comment7 29 option (bar.file_option_proto2) = true; //inline comment7 30 31 // FooProto2 is a foo proto2. 32 message FooProto2 { 33 extensions 10 to 20; 34 extensions 100 to 200, 2000 to 2500; 35 extensions 2700 to 2800, 3000 to max; 36 37 optional int64 hello = 1; 38 39 // comment20 40 optional group Group = 2 { 41 required int64 bar = 3; 42 optional int64 bar2 = 4; 43 } 44 } 45 46 message FooSomething {} 47 48 // SomeService is a service. 49 service SomeService { 50 rpc Echo(FooSomething) returns (FooProto2) {} 51 }