From 248a91b3294d55a23ddcaca4c46598b24b2748ff Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 5 Aug 2020 11:32:49 +0300 Subject: [PATCH] [#28] storagegroup: Remove gogoproto from typedef As mentioned in #32, there is a need to remove gogoproto usage from NeoFS API since this plugin is not cross-language. This commit removes usage from StorageGroup message and all related types Signed-off-by: Leonard Lyubich --- storagegroup/types.proto | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/storagegroup/types.proto b/storagegroup/types.proto index 711d72c..98604e6 100644 --- a/storagegroup/types.proto +++ b/storagegroup/types.proto @@ -3,18 +3,13 @@ package storagegroup; option go_package = "github.com/nspcc-dev/neofs-api-go/storagegroup"; option csharp_namespace = "NeoFS.API.StorageGroup"; -import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "refs/types.proto"; -option (gogoproto.stable_marshaler_all) = true; - message StorageGroup { - option (gogoproto.goproto_stringer) = false; - // ValidationDataSize is size of the all object's payloads included into storage group uint64 ValidationDataSize = 1; // ValidationHash is homomorphic hash of all object's payloads included into storage group - bytes ValidationHash = 2 [(gogoproto.customtype) = "Hash", (gogoproto.nullable) = false]; + bytes ValidationHash = 2; message Lifetime { enum Unit { @@ -27,13 +22,13 @@ message StorageGroup { } // Unit is lifetime type - Unit unit = 1 [(gogoproto.customname) = "Unit"]; + Unit unit = 1; // Value for lifetime int64 Value = 2; } // Lifetime is time until storage group is valid - Lifetime lifetime = 3 [(gogoproto.customname) = "Lifetime"]; + Lifetime lifetime = 3; // Members carries the list of identifiers of the object storage group members. // The list is strictly ordered.