From 2c3717bdeeef5580717b1d52f0491c02b3442632 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 13:04:45 +0300 Subject: [PATCH] [#26] object: Rename Header to ExtendedHeader The naming Header obscures its semantic meaning precisely as a subclass of the general object header. To clarify the layers of typing object headers, this commit renames the message to ExtendedHeader. As a result, the Headers field in the Object has been renamed to ExtendedHeaders. Signed-off-by: Leonard Lyubich --- object/types.proto | 6 +++--- proto-docs/object.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/object/types.proto b/object/types.proto index fe14a57..37d80a4 100644 --- a/object/types.proto +++ b/object/types.proto @@ -16,7 +16,7 @@ message Attribute { string Value = 2; } -message Header { +message ExtendedHeader { oneof Value { // Link to other objects Link Link = 1; @@ -112,8 +112,8 @@ message Transform { message Object { // SystemHeader describes system header SystemHeader SystemHeader = 1; - // Headers describes a set of an extended headers - repeated Header Headers = 2; + // ExtendedHeaders describes a set of an extended headers + repeated ExtendedHeader ExtendedHeaders = 2; // Payload is an object's payload bytes Payload = 3; } diff --git a/proto-docs/object.md b/proto-docs/object.md index 2f0c482..fdc2275 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -31,7 +31,7 @@ - Messages - [Attribute](#object.Attribute) - [CreationPoint](#object.CreationPoint) - - [Header](#object.Header) + - [ExtendedHeader](#object.ExtendedHeader) - [IntegrityHeader](#object.IntegrityHeader) - [Link](#object.Link) - [Object](#object.Object) @@ -385,9 +385,9 @@ Attribute groups the parameters of the object attributes. | Epoch | [uint64](#uint64) | | Epoch is a date of creation in NeoFS epochs | - + -### Message Header +### Message ExtendedHeader @@ -439,7 +439,7 @@ Attribute groups the parameters of the object attributes. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | SystemHeader | [SystemHeader](#object.SystemHeader) | | SystemHeader describes system header | -| Headers | [Header](#object.Header) | repeated | Headers describes a set of an extended headers | +| ExtendedHeaders | [ExtendedHeader](#object.ExtendedHeader) | repeated | ExtendedHeaders describes a set of an extended headers | | Payload | [bytes](#bytes) | | Payload is an object's payload |