Evgenii Stratonikov
f517e39491
All checks were successful
DCO action / DCO (pull_request) Successful in 1m18s
Tests and linters / Lint (pull_request) Successful in 1m31s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m39s
Tests and linters / Tests (1.19) (pull_request) Successful in 1m45s
Tests and linters / Tests with -race (pull_request) Successful in 2m21s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
35 lines
695 B
Protocol Buffer
35 lines
695 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package test;
|
|
|
|
option go_package = "util/proto/test";
|
|
|
|
message Primitives {
|
|
bytes field_a = 1;
|
|
string field_b = 2;
|
|
bool field_c = 200;
|
|
int32 field_d = 201;
|
|
uint32 field_e = 202;
|
|
int64 field_f = 203;
|
|
uint64 field_g = 204;
|
|
fixed64 field_i = 205;
|
|
double field_j = 206;
|
|
fixed32 field_k = 207;
|
|
|
|
enum SomeEnum {
|
|
UNKNOWN = 0;
|
|
POSITIVE = 1;
|
|
NEGATIVE = -1;
|
|
}
|
|
SomeEnum field_h = 300;
|
|
}
|
|
|
|
message RepPrimitives {
|
|
repeated bytes field_a = 1;
|
|
repeated string field_b = 2;
|
|
repeated int32 field_c = 3;
|
|
repeated uint32 field_d = 4;
|
|
repeated int64 field_e = 5;
|
|
repeated uint64 field_f = 6;
|
|
repeated uint64 field_fu = 7 [ packed = false ];
|
|
}
|