9bd4934373
Define OwnerID message in refs package. In the future, this structure can be ported into messages in place of the owner identifier field to maintain format uniformity. Also, storing the identifier in a dedicated message will allow, if necessary, to expand it with additional information without losing backward compatibility within one version of the API. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
37 lines
No EOL
1.1 KiB
Protocol Buffer
37 lines
No EOL
1.1 KiB
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;
|
|
// ContainerID carries container identifier.
|
|
ContainerID ContainerID = 2;
|
|
}
|
|
|
|
// ObjectID groups information about the NeoFS object identifier.
|
|
message ObjectID {
|
|
// Value carries the object identifier in a binary format.
|
|
bytes Value = 1;
|
|
}
|
|
|
|
// ContainerID groups information about the NeoFS container identifier.
|
|
message ContainerID {
|
|
// Value carries the container identifier in a binary format.
|
|
bytes Value = 1;
|
|
}
|
|
|
|
// OwnerID group information about the owner of the NeoFS container.
|
|
message OwnerID {
|
|
// Value carries the identifier of the container owner in a binary format.
|
|
bytes Value = 1;
|
|
} |