From c35dff758d5d13f608c730e2ee182fbc0452a6f0 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 2 Dec 2021 15:56:04 +0300 Subject: [PATCH] [#361] Return proto file for stable marshal tests Signed-off-by: Alex Vanin --- util/proto/test/test.proto | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 util/proto/test/test.proto diff --git a/util/proto/test/test.proto b/util/proto/test/test.proto new file mode 100644 index 00000000..65e350f2 --- /dev/null +++ b/util/proto/test/test.proto @@ -0,0 +1,34 @@ +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; +}