github.com/psrajat/prototool@v1.3.0/internal/cmd/testdata/format/proto3/foo/bar/bar.proto (about)

     1  syntax = "proto3";
     2  
     3  import "google/protobuf/descriptor.proto";
     4  
     5  package bar;
     6  
     7  option go_package = "barpb";
     8  option java_multiple_files = true;
     9  option java_outer_classname = "BarProto";
    10  option java_package = "com.bar";
    11  
    12  // Dep is a dep.
    13  message Dep {
    14    int64 hello = 1;
    15    int64 bar = 2;
    16    Dep recursive = 3;
    17    repeated int64 repeated_bar = 4;
    18    repeated Dep repeated_dep = 5;
    19  }
    20  
    21  extend google.protobuf.MessageOptions {
    22    bool message_option = 80001;
    23    Dep message_dep_option = 80003;
    24  }
    25  
    26  extend google.protobuf.FileOptions {
    27    bool file_option = 80002;
    28    Dep file_dep_option = 80004;
    29  }
    30  
    31  extend google.protobuf.FieldOptions {
    32    bool field_option = 80006;
    33    Dep field_dep_option = 80007;
    34    repeated int64 repeated_field_option = 80017;
    35    repeated Dep repeated_field_dep_option = 80018;
    36  }
    37  
    38  extend google.protobuf.OneofOptions {
    39    bool oneof_option = 80008;
    40    Dep oneof_dep_option = 80009;
    41  }
    42  
    43  extend google.protobuf.MethodOptions {
    44    bool method_option = 80010;
    45    Dep method_dep_option = 80011;
    46  }
    47  
    48  extend google.protobuf.EnumOptions {
    49    bool enum_option = 80012;
    50    Dep enum_dep_option = 80014;
    51  }
    52  
    53  extend google.protobuf.EnumValueOptions {
    54    bool enum_value_option = 80015;
    55    Dep enum_value_dep_option = 80016;
    56  }
    57  
    58  extend google.protobuf.ServiceOptions {
    59    bool service_option = 80012;
    60    Dep service_dep_option = 80014;
    61  }