github.com/RomiChan/protobuf@v0.1.1-0.20230204044148-2ed269a2e54d/internal/benchmark/bench.proto (about)

     1  syntax = "proto2";
     2  
     3  package pb;
     4  
     5  option go_package = "./;benchmark";
     6  
     7  message BenchSmall {
     8    optional string action = 1;
     9    optional bytes key = 2;
    10  }
    11  
    12  message BenchMedium {
    13    optional string name = 1;
    14    optional int64 age = 2;
    15    optional float height = 3;
    16    optional double weight = 4;
    17    optional bool alive = 5;
    18    optional bytes desc = 6;
    19  }
    20  
    21  message BenchLarge {
    22    optional string name = 1;
    23    optional int64 age = 2;
    24    optional float height = 3;
    25    optional double weight = 4;
    26    optional bool alive = 5;
    27    optional bytes desc = 6;
    28    optional string nickname = 7;
    29    optional int64 num = 8;
    30    optional float flt = 9;
    31    optional double dbl = 10;
    32    optional bool tru = 11;
    33    optional bytes data = 12;
    34  }
    35  
    36  message BenchNested {
    37    optional BenchSmall small = 1;
    38    optional BenchMedium medium = 2;
    39    optional BenchLarge large = 3;
    40  }