From 94b9e13431dee18a7ba6c1265a868d5e6363b7e2 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 5 May 2022 11:20:23 +0300 Subject: [PATCH] [#1328] services/tree: Fix proto field numbers Signed-off-by: Evgenii Stratonikov --- pkg/services/tree/service.pb.go | 6 ++++-- pkg/services/tree/service_grpc.pb.go | 2 +- pkg/services/tree/types.pb.go | 14 +++++++------- pkg/services/tree/types.proto | 6 +++--- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/pkg/services/tree/service.pb.go b/pkg/services/tree/service.pb.go index 5f0afdb9a..6a58fd550 100644 --- a/pkg/services/tree/service.pb.go +++ b/pkg/services/tree/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.19.4 +// protoc v3.20.1 // source: pkg/services/tree/service.proto package tree @@ -1474,7 +1474,9 @@ type GetSubTreeRequest_Body struct { ContainerId []byte `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` TreeId string `protobuf:"bytes,2,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` RootId uint64 `protobuf:"varint,3,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"` - Depth uint32 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"` + // Optional depth of the traversal. Zero means return only root. + // Maximum depth is 10. + Depth uint32 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"` } func (x *GetSubTreeRequest_Body) Reset() { diff --git a/pkg/services/tree/service_grpc.pb.go b/pkg/services/tree/service_grpc.pb.go index dc6fe4fd1..e6c82b070 100644 --- a/pkg/services/tree/service_grpc.pb.go +++ b/pkg/services/tree/service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.4 +// - protoc v3.20.1 // source: pkg/services/tree/service.proto package tree diff --git a/pkg/services/tree/types.pb.go b/pkg/services/tree/types.pb.go index d72370c65..0a2dfb087 100644 --- a/pkg/services/tree/types.pb.go +++ b/pkg/services/tree/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.19.4 +// protoc v3.20.1 // source: pkg/services/tree/types.proto package tree @@ -83,11 +83,11 @@ type LogMove struct { unknownFields protoimpl.UnknownFields // ID of the parent node. - ParentId uint64 `protobuf:"varint,2,opt,name=parent_id,json=parentID,proto3" json:"parent_id,omitempty"` + ParentId uint64 `protobuf:"varint,1,opt,name=parent_id,json=parentID,proto3" json:"parent_id,omitempty"` // Node meta information, including operation timestamp. - Meta []byte `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + Meta []byte `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // ID of the node to move. - ChildId uint64 `protobuf:"varint,4,opt,name=child_id,json=childID,proto3" json:"child_id,omitempty"` + ChildId uint64 `protobuf:"varint,3,opt,name=child_id,json=childID,proto3" json:"child_id,omitempty"` } func (x *LogMove) Reset() { @@ -209,10 +209,10 @@ var file_pkg_services_tree_types_proto_rawDesc = []byte{ 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x55, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x76, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, - 0x44, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, + 0x44, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, 0x44, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, 0x44, 0x22, 0x36, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, diff --git a/pkg/services/tree/types.proto b/pkg/services/tree/types.proto index 420fa4dfa..546985c0c 100644 --- a/pkg/services/tree/types.proto +++ b/pkg/services/tree/types.proto @@ -13,11 +13,11 @@ message KeyValue { // LogMove represents log-entry for a single move operation. message LogMove { // ID of the parent node. - uint64 parent_id = 2 [json_name = "parentID"]; + uint64 parent_id = 1 [json_name = "parentID"]; // Node meta information, including operation timestamp. - bytes meta = 3 [json_name = "meta"]; + bytes meta = 2 [json_name = "meta"]; // ID of the node to move. - uint64 child_id = 4 [json_name = "childID"]; + uint64 child_id = 3 [json_name = "childID"]; } // Signature of a message.