github.com/hoveychen/protoreflect@v1.4.7-0.20221103114119-0b4b3385ec76/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 go_package = "github.com/hoveychen/protoreflect/internal/testprotos";
    12  
    13  message Frobnitz {
    14     optional TestMessage a = 1;
    15  
    16     optional AnotherTestMessage b = 2;
    17  
    18     oneof abc {
    19        TestMessage.NestedMessage c1 = 3;
    20  
    21        TestMessage.NestedEnum c2 = 4;
    22     }
    23  
    24  
    25     optional TestMessage.NestedMessage d = 5;
    26  
    27     optional TestMessage.NestedEnum e = 6 [default = VALUE2];
    28  
    29     repeated string f = 7 [deprecated = true];
    30  
    31     oneof def {
    32        int32 g1 = 8;
    33  
    34        sint32 g2 = 9;
    35  
    36        uint32 g3 = 10;
    37     }
    38  
    39  
    40  }
    41  
    42  message Whatchamacallit {
    43     required hoveychen.protoreflect.desc.Foo foos = 1;
    44  }
    45  
    46  message Whatzit {
    47     repeated hoveychen.protoreflect.desc.Bar gyzmeau = 1;
    48  }
    49  
    50  extend TopLevel {
    51     optional TopLevel otl = 100;
    52  
    53     optional group GroupX = 104 {
    54        optional int64 groupxi = 1041;
    55  
    56        optional string groupxs = 1042;
    57     }
    58  }