github.com/cloudwego/hertz@v0.9.3/pkg/common/testdata/proto/test.proto (about)

     1  syntax = "proto2";
     2  package protoexample;
     3  option go_package = "./proto";
     4  
     5  enum FOO {X=17;};
     6  
     7  message Test {
     8     required string label = 1;
     9     optional int32 type = 2[default=77];
    10     repeated int64 reps = 3;
    11     optional group OptionalGroup = 4{
    12        required string RequiredField = 5;
    13     }
    14  }
    15  
    16  message TestStruct {
    17     optional bytes body = 1;
    18  }