github.com/Zenithar/prototool@v1.3.0/internal/cmd/testdata/format/proto2/foo/foo_proto2.proto.golden (about)

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