From a05e6f9a5c74d304946320adc11ed51a3ef3544b Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 17 Nov 2021 15:08:28 +0300 Subject: [PATCH] [#183] subnet: Define subnet information message Signed-off-by: Pavel Karpy --- subnet/types.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 subnet/types.proto diff --git a/subnet/types.proto b/subnet/types.proto new file mode 100644 index 0000000..aa69bba --- /dev/null +++ b/subnet/types.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package neo.fs.v2.subnet; + +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/subnet/grpc;subnet"; +option csharp_namespace = "Neo.FileStorage.API.Subnet"; + +import "refs/types.proto"; + +// NeoFS subnetwork description +message SubnetInfo { + // Unique subnet identifier. Missing ID is + // equivalent to zero (default subnetwork) ID. + neo.fs.v2.refs.SubnetID id = 1; + + // Identifier of the subnetwork owner + neo.fs.v2.refs.OwnerID owner = 2; +}