[#73] Add JSON field names to storagegroup package

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-10-19 13:07:58 +03:00 committed by Stanislav Bogatyrev
parent b48723bd8c
commit eed8754aaa

View file

@ -13,16 +13,16 @@ import "refs/types.proto";
// contains objects from the same container.
message StorageGroup {
// Total size of the payloads of objects in the storage group
uint64 validation_data_size = 1;
uint64 validation_data_size = 1 [json_name = "validationDataSize"];
// Homomorphic hash from the concatenation of the payloads of the storage
// group members. The order of concatenation is the same as the order of the
// members in the `members` field.
neo.fs.v2.refs.Checksum validation_hash = 2;
neo.fs.v2.refs.Checksum validation_hash = 2 [json_name = "validationHash"];
// Last NeoFS epoch number of the storage group lifetime
uint64 expiration_epoch = 3;
uint64 expiration_epoch = 3 [json_name = "expirationEpoch"];
// Strictly ordered list of storage group member objects
repeated neo.fs.v2.refs.ObjectID members = 4;
repeated neo.fs.v2.refs.ObjectID members = 4 [json_name = "members"];
}