~bigbes/tarantool

tarantool-protobuf

ref: b93adbf01508f9efe23729089e19285dc5c9abd8 tarantool-protobuf/bench/go/proto/proto2_basic.proto -rw-r--r-- 869 bytes
b93adbf0 — Eugene Blikh codec: emit per-descriptor encode body for monomorphic dispatch (21d) 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Bench-only subset of test/proto/proto2_basic.proto with go_package set.
// Same field numbers and wire format as the Lua-tested version.
syntax = "proto2";

package proto2_basic;

option go_package = "github.com/tarantool-protobuf/bench/go/pb/proto2pb;proto2pb";

message BenchPayload {
  required int32 id            = 1;
  optional string name         = 2 [default = "anonymous"];
  optional int32 retries       = 3 [default = 3];
  repeated int32 lucky_numbers = 4 [packed = true];
  repeated string tags         = 5;
  optional Inner inner         = 6;
  optional group Stats = 7 {
    optional int32 latency_ns = 8;
    optional int32 attempts   = 9;
  }

  message Inner {
    required string key = 1;
    optional int32 weight = 2;
  }

  extensions 100 to 199;
}

extend BenchPayload {
  optional int32  ext_count = 100;
  optional string ext_label = 101;
}