forked from TrueCloudLab/frostfs-api
4bdd05ade8
This commit makes ObjectID field of refs.Address message to use dedicated message for object identifier ObjectID. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
25 lines
No EOL
773 B
Protocol Buffer
25 lines
No EOL
773 B
Protocol Buffer
syntax = "proto3";
|
|
package refs;
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/refs";
|
|
option csharp_namespace = "NeoFS.API.Refs";
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.stable_marshaler_all) = true;
|
|
|
|
option (gogoproto.stringer_all) = false;
|
|
option (gogoproto.goproto_stringer_all) = false;
|
|
|
|
// Address of object (container id + object id)
|
|
message Address {
|
|
// ObjectID carries object identifier.
|
|
ObjectID ObjectID = 1;
|
|
// CID is container identifier
|
|
bytes CID = 2[(gogoproto.customtype) = "CID", (gogoproto.nullable) = false];
|
|
}
|
|
|
|
// ObjectID groups information about the NeoFS object identifier.
|
|
message ObjectID {
|
|
// Value carries the object identifier in a binary format.
|
|
bytes Value = 1;
|
|
} |