2020-08-14 10:57:19 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package test;
|
|
|
|
|
2020-10-19 19:12:43 +00:00
|
|
|
option go_package = "util/proto/test";
|
|
|
|
|
2020-08-14 10:57:19 +00:00
|
|
|
message Primitives {
|
2020-08-14 12:53:57 +00:00
|
|
|
bytes field_a = 1;
|
2020-08-14 12:29:48 +00:00
|
|
|
string field_b = 2;
|
2020-08-14 12:53:57 +00:00
|
|
|
bool field_c = 200;
|
2020-08-14 13:32:19 +00:00
|
|
|
int32 field_d = 201;
|
|
|
|
uint32 field_e = 202;
|
|
|
|
int64 field_f = 203;
|
|
|
|
uint64 field_g = 204;
|
2020-12-21 07:51:04 +00:00
|
|
|
fixed64 field_i = 205;
|
2021-03-24 07:10:30 +00:00
|
|
|
double field_j = 206;
|
2020-08-14 14:10:15 +00:00
|
|
|
|
|
|
|
enum SomeEnum {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
POSITIVE = 1;
|
|
|
|
NEGATIVE = -1;
|
|
|
|
}
|
|
|
|
SomeEnum field_h = 300;
|
2020-08-14 14:22:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2020-08-14 10:57:19 +00:00
|
|
|
}
|