~bigbes/tarantool

tarantool-protobuf

ref: b09c7213874b18bd0f8d1c4d60d3ec8253f1be6d tarantool-protobuf/bench/go/proto/hello.proto -rw-r--r-- 764 bytes
b09c7213 — Eugene Blikh codegen: inline 1-byte LEN fast path for string/bytes decode 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
33
34
35
// Bench-only subset of examples/proto/hello.proto with go_package set.
// Field numbers and wire format match the Lua version exactly so encoded
// bytes are interchangeable between runtimes.
syntax = "proto3";

package hello;

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

enum Status {
  UNKNOWN = 0;
  OK = 1;
  ERROR = 2;
}

message Address {
  string street = 1;
  string city = 2;
  int32 zip = 3;
  optional string apartment = 4;
}

message Person {
  string name = 1;
  int32 age = 2;
  repeated string emails = 3;
  Status status = 4;
  Address address = 5;
  repeated Person friends = 6;
  repeated int32 lucky_numbers = 7;
  bytes avatar = 8;
  fixed64 user_id = 9;
  sint32 balance = 10;
  double weight_kg = 11;
}