From 46fe7b93cd73faeb5d7d47760ec4800a774c4d0c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 6 Aug 2020 01:23:57 +0300 Subject: [PATCH] refs: Tidy up the format Signed-off-by: Leonard Lyubich --- proto-docs/refs.md | 2 +- refs/types.proto | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/proto-docs/refs.md b/proto-docs/refs.md index bf57211..99d2151 100644 --- a/proto-docs/refs.md +++ b/proto-docs/refs.md @@ -33,8 +33,8 @@ Address of object (container id + object id) | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ObjectID | [ObjectID](#refs.ObjectID) | | ObjectID carries object identifier. | | ContainerID | [ContainerID](#refs.ContainerID) | | ContainerID carries container identifier. | +| ObjectID | [ObjectID](#refs.ObjectID) | | ObjectID carries object identifier. | diff --git a/refs/types.proto b/refs/types.proto index 2fdaef4..0dda985 100644 --- a/refs/types.proto +++ b/refs/types.proto @@ -1,14 +1,17 @@ syntax = "proto3"; + package refs; + option go_package = "github.com/nspcc-dev/neofs-api-go/refs"; option csharp_namespace = "NeoFS.API.Refs"; // Address of object (container id + object id) message Address { - // ObjectID carries object identifier. - ObjectID ObjectID = 1; // ContainerID carries container identifier. - ContainerID ContainerID = 2; + ContainerID ContainerID = 1; + + // ObjectID carries object identifier. + ObjectID ObjectID = 2; } // ObjectID groups information about the NeoFS object identifier.