~bigbes/tarantool

tarantool-protobuf

ref: 2df86386f587e8b84867c9f144bd76a801c3a9d6 tarantool-protobuf/bench/go/proto/hello.proto -rw-r--r-- 764 bytes
2df86386 — Eugene Blikh beads: close drm (encode/decode B/op floor investigation) 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;
}