[#26] object: Remove gogoproto from object 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 object.Object message and all related types. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7ea4d475a0
commit
c2b5b6b6ae
1 changed files with 8 additions and 13 deletions
|
@ -6,9 +6,6 @@ option csharp_namespace = "NeoFS.API.Object";
|
||||||
import "refs/types.proto";
|
import "refs/types.proto";
|
||||||
import "service/verify.proto";
|
import "service/verify.proto";
|
||||||
import "storagegroup/types.proto";
|
import "storagegroup/types.proto";
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
||||||
|
|
||||||
option (gogoproto.stable_marshaler_all) = true;
|
|
||||||
|
|
||||||
message UserHeader {
|
message UserHeader {
|
||||||
// Key of the user's header
|
// Key of the user's header
|
||||||
|
@ -32,7 +29,7 @@ message Header {
|
||||||
// Token header contains token of the session within which the object was created
|
// Token header contains token of the session within which the object was created
|
||||||
service.Token Token = 6;
|
service.Token Token = 6;
|
||||||
// HomoHash is a homomorphic hash of original object payload
|
// HomoHash is a homomorphic hash of original object payload
|
||||||
bytes HomoHash = 7 [(gogoproto.customtype) = "Hash"];
|
bytes HomoHash = 7;
|
||||||
// PayloadChecksum of actual object's payload
|
// PayloadChecksum of actual object's payload
|
||||||
bytes PayloadChecksum = 8;
|
bytes PayloadChecksum = 8;
|
||||||
// Integrity header with checksum of all above headers in the object
|
// Integrity header with checksum of all above headers in the object
|
||||||
|
@ -53,18 +50,16 @@ message SystemHeader {
|
||||||
uint64 PayloadLength = 2;
|
uint64 PayloadLength = 2;
|
||||||
|
|
||||||
// ID is an object identifier, is a valid UUIDv4
|
// ID is an object identifier, is a valid UUIDv4
|
||||||
bytes ID = 3 [(gogoproto.customtype) = "ID", (gogoproto.nullable) = false];
|
bytes ID = 3;
|
||||||
// OwnerID is a wallet address
|
// OwnerID is a wallet address
|
||||||
bytes OwnerID = 4 [(gogoproto.customtype) = "OwnerID", (gogoproto.nullable) = false];
|
bytes OwnerID = 4;
|
||||||
// CID is a SHA256 hash of the container structure (container identifier)
|
// CID is a SHA256 hash of the container structure (container identifier)
|
||||||
bytes CID = 5 [(gogoproto.customtype) = "CID", (gogoproto.nullable) = false];
|
bytes CID = 5;
|
||||||
// CreatedAt is a timestamp of object creation
|
// CreatedAt is a timestamp of object creation
|
||||||
CreationPoint CreatedAt = 6 [(gogoproto.nullable) = false];
|
CreationPoint CreatedAt = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreationPoint {
|
message CreationPoint {
|
||||||
option (gogoproto.goproto_stringer) = false;
|
|
||||||
|
|
||||||
// UnixTime is a date of creation in unixtime format
|
// UnixTime is a date of creation in unixtime format
|
||||||
int64 UnixTime = 1;
|
int64 UnixTime = 1;
|
||||||
// Epoch is a date of creation in NeoFS epochs
|
// Epoch is a date of creation in NeoFS epochs
|
||||||
|
@ -95,7 +90,7 @@ message Link {
|
||||||
// Type of link
|
// Type of link
|
||||||
Type type = 1;
|
Type type = 1;
|
||||||
// ID is an object identifier, is a valid UUIDv4
|
// ID is an object identifier, is a valid UUIDv4
|
||||||
bytes ID = 2 [(gogoproto.customtype) = "ID", (gogoproto.nullable) = false];
|
bytes ID = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Transform {
|
message Transform {
|
||||||
|
@ -114,9 +109,9 @@ message Transform {
|
||||||
|
|
||||||
message Object {
|
message Object {
|
||||||
// SystemHeader describes system header
|
// SystemHeader describes system header
|
||||||
SystemHeader SystemHeader = 1 [(gogoproto.nullable) = false];
|
SystemHeader SystemHeader = 1;
|
||||||
// Headers describes a set of an extended headers
|
// Headers describes a set of an extended headers
|
||||||
repeated Header Headers = 2 [(gogoproto.nullable) = false];
|
repeated Header Headers = 2;
|
||||||
// Payload is an object's payload
|
// Payload is an object's payload
|
||||||
bytes Payload = 3;
|
bytes Payload = 3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue