[#26] object: Change field order in Header

This commit changes field order in ExtendedHeader message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-04 19:48:15 +03:00 committed by Stanislav Bogatyrev
parent a3a0de01b3
commit 72edea28db
2 changed files with 15 additions and 15 deletions

View file

@ -17,20 +17,20 @@ message Attribute {
}
message ExtendedHeader {
// Attributes carries list of the object attributes in a string key-value format.
repeated Attribute Attributes = 3;
// Split carries the position of the object in the split hierarchy.
SplitHeader SplitHeader = 4;
// Tombstone header that set up in deleted objects
Tombstone Tombstone = 5;
// HomoHash is a homomorphic hash of original object payload
bytes HomoHash = 7;
// Integrity header with checksum of all above headers in the object
IntegrityHeader Integrity = 9;
// StorageGroup contains meta information for the data audit
storagegroup.StorageGroup StorageGroup = 10;
IntegrityHeader Integrity = 1;
// Attributes carries list of the object attributes in a string key-value format.
repeated Attribute Attributes = 2;
// CreationEpoch carries number of NeoFS epoch on which the object was created.
uint64 CreationEpoch = 11;
uint64 CreationEpoch = 3;
// Tombstone header that set up in deleted objects
Tombstone Tombstone = 4;
// HomoHash is a homomorphic hash of original object payload
bytes HomoHash = 5;
// StorageGroup contains meta information for the data audit
storagegroup.StorageGroup StorageGroup = 6;
// Split carries the position of the object in the split hierarchy.
SplitHeader SplitHeader = 7;
}
message Tombstone {}

View file

@ -379,13 +379,13 @@ Attribute groups the parameters of the object attributes.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| Integrity | [IntegrityHeader](#object.IntegrityHeader) | | Integrity header with checksum of all above headers in the object |
| Attributes | [Attribute](#object.Attribute) | repeated | Attributes carries list of the object attributes in a string key-value format. |
| SplitHeader | [SplitHeader](#object.SplitHeader) | | Split carries the position of the object in the split hierarchy. |
| CreationEpoch | [uint64](#uint64) | | CreationEpoch carries number of NeoFS epoch on which the object was created. |
| Tombstone | [Tombstone](#object.Tombstone) | | Tombstone header that set up in deleted objects |
| HomoHash | [bytes](#bytes) | | HomoHash is a homomorphic hash of original object payload |
| Integrity | [IntegrityHeader](#object.IntegrityHeader) | | Integrity header with checksum of all above headers in the object |
| StorageGroup | [storagegroup.StorageGroup](#storagegroup.StorageGroup) | | StorageGroup contains meta information for the data audit |
| CreationEpoch | [uint64](#uint64) | | CreationEpoch carries number of NeoFS epoch on which the object was created. |
| SplitHeader | [SplitHeader](#object.SplitHeader) | | Split carries the position of the object in the split hierarchy. |
<a name="object.Header"></a>