github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/desc_test2-sorted.proto (about)

     1  syntax = "proto2";
     2  
     3  package testprotos;
     4  
     5  import "desc_test1.proto";
     6  
     7  import "nopkg/desc_test_nopkg.proto";
     8  
     9  import "pkg/desc_test_pkg.proto";
    10  
    11  option cc_enable_arenas = true;
    12  
    13  option csharp_namespace = "jhump.protoreflect.testprotos";
    14  
    15  option go_package = "github.com/jhump/protoreflect/internal/testprotos";
    16  
    17  option java_generate_equals_and_hash = true;
    18  
    19  option java_multiple_files = true;
    20  
    21  option java_package = "com.github.jhump.protoreflect.internal.testprotos";
    22  
    23  option ruby_package = "protoreflect-testprotos";
    24  
    25  message Frobnitz {
    26     optional TestMessage a = 1;
    27  
    28     optional AnotherTestMessage b = 2;
    29  
    30     oneof abc {
    31        TestMessage.NestedMessage c1 = 3;
    32  
    33        TestMessage.NestedEnum c2 = 4;
    34     }
    35  
    36     optional TestMessage.NestedMessage d = 5;
    37  
    38     optional TestMessage.NestedEnum e = 6 [default = VALUE2];
    39  
    40     repeated string f = 7 [deprecated = true];
    41  
    42     oneof def {
    43        int32 g1 = 8;
    44  
    45        sint32 g2 = 9;
    46  
    47        uint32 g3 = 10;
    48     }
    49  }
    50  
    51  message Whatchamacallit {
    52     required jhump.protoreflect.desc.Foo foos = 1;
    53  }
    54  
    55  message Whatzit {
    56     repeated jhump.protoreflect.desc.Bar gyzmeau = 1;
    57  }
    58  
    59  extend TopLevel {
    60     optional TopLevel otl = 100;
    61  
    62     optional group GroupX = 104 {
    63        optional int64 groupxi = 1041;
    64  
    65        optional string groupxs = 1042;
    66     }
    67  }