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

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